Skip to content

Conversation

@ibrahimmunir14
Copy link
Contributor

Refactored/rewrote/tidied up DateValidator, DateInputVC, and WelcomeEmail. Date input errors are now model state errors, compatible with error summary and treated in a similar way to normal text input errors. Errors are identified and indicated correctly. Error messages are more appropriate and correct.

  • Run the formatter and made sure there are no IDE errors.
  • Written tests for the changes (controller, data services, services, view models etc) and manually tested my work with and without JavaScript.
  • Updated my Jira ticket with information about other parts of the system that were touched as part of the MR and have to be sanity tested to ensure nothing’s broken.
  • Scanned over my own MR to ensure everything is as expected.

…validation in WelcomeEmail VM

New DateValidator class will replace existing DateValidator class
Keep this helper class around for existing usage in Learning Portal (to be refactored later in 560)
… dates

Also remove an unneeded year check which resulted in a potentially confusing error message
Copy link
Contributor

@DanBloxham-sw DanBloxham-sw left a comment

Choose a reason for hiding this comment

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

Few minor comments, but pretty good overall.

Copy link
Contributor

@stellake stellake left a comment

Choose a reason for hiding this comment

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

Would be good to share this at knowledge sharing next week so the team is aware of the existence of this component 👍

Copy link
Contributor

@stellake stellake left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

@stellake stellake merged commit 210a193 into master Jul 23, 2021
stellake added a commit that referenced this pull request Jul 23, 2021
…S-553-date-input-validation"

This reverts commit 210a193.
ibrahimmunir14 pushed a commit that referenced this pull request Jul 26, 2021
…ng/HEEDLS-553-date-input-validation""

This reverts commit 8753fb7.
@stellake stellake deleted the HEEDLS-553-date-input-validation branch July 27, 2021 13:04
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.

4 participants