Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card label list + string #140

Open
zgelp opened this issue May 28, 2020 · 1 comment
Open

Card label list + string #140

zgelp opened this issue May 28, 2020 · 1 comment

Comments

@zgelp
Copy link

zgelp commented May 28, 2020

Hello, I am trying to implement List + string feature on the Label side of Lavagna so when you choose label, it gives you option to also input a string, and it all shows up as List label name : Value from list : String from input on the card when it is submitted.

What is the best approach to start this one ? I can see that database is very well designed, I tired changing the value of INT from Label added to card and access it through API but i get SQL PROCEDURE lavagna.RAISE_CHECK_ERROR. Can you guys please point me where should I start with this one ?

Thanks for help and advice.

@syjer
Copy link
Member

syjer commented May 31, 2020

hi @zgelp , first, you need to declare a new value in the LabelType enum.

Then you need to create a new sql migration file to drop and recreate the constraint: EVENT_LABEL_TYPE_VALUE, CARD_LABEL_TYPE_VALUE , CARD_LABEL_VALUE_TYPE_VALUE and CARD_LABEL_VALUE_ENSURE_TYPE (in the case of pgsql/hsql) and the LA_FUN_CARD_LABEL_ENFORCE and LA_FUN_CARD_LABEL_VALUE_ENFORCE functions for mysql with the new enum value.

Then I think it should be quite linear.

Edit: but you will need to modify quite a bit of code, unfortunately. I'm wondering if dropping some part of the constraint would be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants