VaNotify - Migrate representation_management next_steps_email_controller.rb to use v2 email job#27800
Merged
nathanbwright merged 1 commit intomasterfrom Apr 20, 2026
Merged
Conversation
…ion_management/v0/next_steps_email_controller.rb to use v2 email job
sarahwcodes
approved these changes
Apr 16, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates RepresentationManagement::V0::NextStepsEmailController to optionally enqueue emails via VANotify::V2::QueueEmailJob behind a new Flipper flag, while retaining the existing VANotify::EmailJob path when the flag is off.
Changes:
- Add
va_notify_v2_next_steps_emailfeature flag. - Update the controller to enqueue via VANotify v2 when the flag is enabled.
- Expand request specs to cover Flipper enabled/disabled behavior.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| modules/representation_management/app/controllers/representation_management/v0/next_steps_email_controller.rb | Adds Flipper-gated v2 enqueue path and extracts enqueue logic into a private method. |
| modules/representation_management/spec/requests/v0/next_steps_email_spec.rb | Adds Flipper stubbing and new contexts for v1 vs v2 job assertions. |
| config/features.yml | Defines new va_notify_v2_next_steps_email Flipper flag. |
Contributor
|
@nathanbwright can you take a look at Copilot's comments? |
rmtolmach
approved these changes
Apr 20, 2026
balexandr
pushed a commit
that referenced
this pull request
Apr 21, 2026
…ion_management/v0/next_steps_email_controller.rb to use v2 email job (#27800)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keep your PR as a Draft until it's ready for Platform review. A PR is ready for Platform review when it has a teammate approval and tests, linting, and settings checks pass CI. See these tips on how to avoid common delays in getting your PR merged.
Summary
VANotify::V2::QueueEmailJob.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)
Acceptance criteria
Requested Feedback
(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?