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

SC-150 - Refactor email address validation #2028

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

serenaabbott11
Copy link
Contributor

@serenaabbott11 serenaabbott11 commented Jan 29, 2025

Changes in this PR

  • Refactored email validation for adding evaluators, framework requests, and creating a new case
  • Other similar validation has NOT been changed due to complications with using forms and schemas

Screen-shots or screen-capture of UI changes

@serenaabbott11 serenaabbott11 self-assigned this Jan 29, 2025
Copy link

Test coverage

Line: 87.01%
Branch: 77.15%

@serenaabbott11 serenaabbott11 force-pushed the sc-150-refactor-email-validation branch from 6f44d0d to 66919ae Compare January 30, 2025 12:03
@serenaabbott11 serenaabbott11 changed the title Refactor email address validation SC-150 - Refactor email address validation Jan 30, 2025
@serenaabbott11 serenaabbott11 marked this pull request as ready for review January 30, 2025 16:23
Comment on lines +4 to +5
validates :email, email_address: { format: true }
validates :email, email_address: { school_email: true }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these can be merged into one line:

validates :email, email_address: { format: true, school_email: true }

but don't let it get in the way of getting this finished and merged!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! I tried this and it weirdly didn't work - but it may have been due to the mess of other files i had going on at the time! will try again tomorrow then pass over to QA 👍

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

Successfully merging this pull request may close these issues.

2 participants