-
Notifications
You must be signed in to change notification settings - Fork 73
POA decline email #20918
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
POA decline email #20918
Conversation
…cation-in-va-notify-staging
A new rubocop rule has been introduced recently that requires hash key-values where the key and the value match like:a notification_type: notification_type, to be condensed to: notification_type:,
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.
LGTM
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.
Nice check on verifying no potential for PII exposure.
…cation-in-va-notify-staging
@nihil2501 @rjohnson2011 When you two have a chance can you take another look? I had to fix a merge conflict and that dismissed your reviews. |
…cation-in-va-notify-staging
…cation-in-va-notify-staging
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.
LGTM
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.
Excellent work!
* [WIP] * Schema changes * [WIP] email job * [WIP] foreign key fix * Working migration for notifications * rename type to avoid convention mismatch * Redo association * Make va notify notification optional * Fix linting error A new rubocop rule has been introduced recently that requires hash key-values where the key and the value match like:a notification_type: notification_type, to be condensed to: notification_type:, * [WIP] email job spec * Fix tests for POA email job * [WIP] tests for notification class * Fix POA request notification tests * Remove unused traits * notification_type -> type * Remove migration * Add decline email template_id to settings * Email job now accepts notification and personalisation * Make email job take existing notification record We're going to start creating the POA request notification record before enqueing the email job. That way we can track when it doesn't have a notification_id that ties it to a VANotify::Notification record. * Enqueue decline email within decisions controller * Add tests for sending decline emails * Add POA request notification tracking to digital submit confirmation email * Create notification record after guard * Don't send email address as a sidekiq arg We can look it up from the POA request notification record. * Update tests
Summary
Related issue(s)
Testing done
Screenshots
Note: Optional
What areas of the site does it impact?
(Describe what parts of the site are impacted andifcode touched other areas) Most of the changes are in the
AccreditedRepresentativePortal
module. There are a few changes toSettings
for sending the email, and a small change to theRepresentationManagement
module to track the submit confirmation email.Acceptance criteria