-
Notifications
You must be signed in to change notification settings - Fork 43
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
Duplicate concept answers breaks concepts page #1060
Comments
concept page breaks. Added it to 5.1.0 since was raised by Vedant once, came as ticket and multiple discussions. To reduce the tickets added it to 5.1.0. |
I see in the database we have concepts with '&' and various other special characters also. check using the following queries What special characters are currently being supported/not supported? What is the basis of this? This change seems to have been done in the last few releases but couldn't find any relevant issue except this avniproject/avni-server#449 or release notes (Haven't checked code) |
@mahalakshme I think I read the acceptance criteria wrong. Is there a need to remove these characters from concept answers? |
@vinayvenu @arjunk I think as part of security fixes, this change might have occured. But special characters are not allowed even after turning off enhanced validations in prod. We will need to check what has caused this change. |
moved the character issue to separate card: #1058 |
Mockups - we can show the duplicates if possible? |
@himeshr I created a concept with ASH and ash it is accepting the value not showing the error. is it valid or not.? |
@AchalaBelokar, In Avni, Concept names are case-sensitive, we allow users to create concepts with same name but with different case, which are used in different forms.. this is pretty common. Now for Concept Answers, the only usecase i can think of, where concept answers with same name but different case might be needed, is when there is an external integration system, which accepts different case answers in different conditions. So i would say that in principle, we should not error in-case there is more than 1 concept-answer with same name but different case. @mahalakshme pls confirm if the duplicates check should ignore case and trailing whitespaces. |
@himeshr I will think and update |
@AchalaBelokar it does make sense to make the concepts to be considered duplicate independent of the case, but considering we have allowed it so far, it is now complex to correct the existing data. So we need not fix it as part of 10.1.0, will add it to a different release. |
QA Reference video : |
Handled additional test-cases:
|
We don't have any check on server for duplicate concepts. we should add a database constraint. |
QA Reference : |
Need:
Some coded concepts have more than 15 answers and all are added at the same time. Hence the user sometimes by mistake adds the same concept answer twice. When it doesn't show a valid error, it is raised as a ticket.
Current scenario:
env: staging, prod
Video to understand the issue:
https://github.com/avniproject/avni-webapp/assets/10369963/674a69cf-aa27-4c4f-8e5c-39f8cd4db465
Expected:
Old: ignore
Expected:
The text was updated successfully, but these errors were encountered: