-
Notifications
You must be signed in to change notification settings - Fork 1
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
Can't Update Some Fields Due To case_insensitive Validation #587
Comments
@lagoan, how should we address this? Also, we need to check if |
@aaronskiba, we should check the reason for this new validation. We may not need it or want it since we already have values that have this conflict. |
The case insensitive uniqueness validation constraint has been added for the following (relevant commit d54c68a): Department.name
Org.name
Perm.name
QuestionFormat.title
Region.name Returned results after executing the following SQL query on a prod db dump from Jan 8, 2024: SELECT column
FROM table
WHERE LOWER(column) IN (
SELECT LOWER(column)
FROM table
GROUP BY LOWER(column)
HAVING COUNT(*) > 1
)
GROUP BY column
ORDER BY column; Org.name
(0 rows were returned for all of the others. Department.name includes some duplicates. However, the validation check specifies |
Setting Of all the duplicate orgs listed above, The Organisation dropdown in the Create Account section only lists managed Orgs: presenter = OrgSelectionPresenter.new(orgs: orgs.select{|org| org.managed == true}, selection: default_org) |
Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
Example
case_sensitive: false
, which prevents us from editing either of these orgs, unless we rename them.The text was updated successfully, but these errors were encountered: