-
Notifications
You must be signed in to change notification settings - Fork 1
Heedls 557 email length consistency #508
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
Conversation
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.
The change itself looks fine, but question for @stellake.
I can see that you've decided the centre fields are out of scope for this ticket in the HLD discussion, but now we are in the situation where the Centre manager can have an email that is 255 in the AdminUsers table, but only 250 in the Centres table. Do we have a ticket in the future to fix this? (Centre website email is 100 characters too, but doesn't necessarily match an admin like the CentreManager field should)
DigitalLearningSolutions.Data.Migrations/202107221605_ChangeEmailMaxLengthOnAdminUsers.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Migrations/202107221605_ChangeEmailMaxLengthOnAdminUsers.cs
Show resolved
Hide resolved
DigitalLearningSolutions.Data.Migrations/202107221605_ChangeEmailMaxLengthOnAdminUsers.cs
Show resolved
Hide resolved
The centre manager details are completely independent of the admin user that has centre manager permissions. The reason we're changing the email lengths of the users is that it affects the logins/core functionality/how we've combined these users into one account. The centre manager details are there as additional contact details display for centre, so we're good to leave it (and this way we don't need to introduce extra risk or spend unnecessary budget either). I suspect in reality, no one's going to specify their centre contact details as something with 200+ characters :) |
6600605 to
60640dd
Compare
…rsonalInformationViewModel
60640dd to
55f5cc3
Compare
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! 👍
JIRA link
HEEDLS-557
Description
I created a migration that changed the maximum length of the Email column on AdminUsers table from 250 to 255 characters, so it is consistent with the Candidates table. The migration also deletes and recreates the AdminUsers_Email index accordingly as it depends the Email column.
I also modified two view models so the form input for Email will have the same max length.
I will document these changes in the release notes after merge!