-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix(profile): Make usernames case insensitive #216
Conversation
This is done by using the citext extensions. Once we have imported all the users from auth0 we will remove the uuid trigger function and only have the DB reject duplicate names
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
The function was not able to find the uuid_generate_v4 function
These test check some beahaviour in the schema - adding uuid to username on duplicates (needed 4 migration from auth0) - cascading removal of users data from the database - change of username on trees_watered on change of username in profile
@julizet @raphael-arce @dnsos Maybe you see something that I missed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍 It's pretty nice that you added these tests, especially.
I don't know the codebase too well, so I don't want to explicitly approve, but at least nothing caught my eye that looks off. Great job!
This PR
This is done by using the citext extensions.
Once we have imported all the users from auth0 we will remove the
uuid trigger function and only have the DB reject duplicate names
The trigger function that adds an uuid to the username if we have duplicates did throw an error when executed by adding a user with the same name as an existing one. This still will be removed when we are migrated.
Test
This surfaced some errors we had in the schema. Like you can see in the fixes above