Skip to content

#2043: Migrate modules/meb_api/app/workers/meb_api/v0/submit_1990meb_form_confirmation.rb to VANotify::V2::QueueEmailJob#27804

Closed
sarahwcodes wants to merge 1 commit intomasterfrom
sw-2043-migrate-1990-meb-form
Closed

#2043: Migrate modules/meb_api/app/workers/meb_api/v0/submit_1990meb_form_confirmation.rb to VANotify::V2::QueueEmailJob#27804
sarahwcodes wants to merge 1 commit intomasterfrom
sw-2043-migrate-1990-meb-form

Conversation

@sarahwcodes
Copy link
Copy Markdown
Contributor

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

  • This work is behind a feature toggle (flipper): YES
  • (Summarize the changes that have been made to the platform) Migrates IVC ChampVA email to use the new VANotify::V2::QueueEmailJob
  • (If bug, how to reproduce)
  • (What is the solution, why is this the solution?) VANotify::V2::QueueEmailJob provides safer handling of personalization data when sending emails through Sidekiq
  • (Which team do you work for, does your team own the maintenance of this component?) VANotify, no
  • (If introducing a flipper, what is the success criteria being targeted?)

Related issue(s)

  • Link to ticket created in va.gov-team repo OR screenshot of Jira ticket if your team uses Jira Strike #2043
  • Link to previous change of the code/bug (if applicable)
  • Link to epic if not included in ticket

Testing done

  • New code is covered by unit tests
  • Describe what the old behavior was prior to the change
  • Describe the steps required to verify your changes are working as expected. Exclusively stating 'Specs run' is NOT acceptable as appropriate testing
  • If this work is behind a flipper:
    • Tests need to be written for both the flipper on and flipper off scenarios. Docs.
    • What is the testing plan for rolling out the feature?

Script for testing:

# === V1 Staging Pre-Test: Submit1990mebFormConfirmation ===
 # Paste this into Argo Rails console on staging.
 # Replace YOUR_EMAIL with your actual email address.

 YOUR_EMAIL = 'your.email@example.com' # <-- CHANGE THIS

 # Test with ELIGIBLE status (uses approved template)
 MebApi::V0::Submit1990mebFormConfirmation.new.perform(
   'ELIGIBLE',
   YOUR_EMAIL,
   'TESTUSER',
   '1234567890V123456'
 )

 puts "Done! Check #{YOUR_EMAIL} for the 1990MEB ELIGIBLE confirmation email."

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

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No error nor warning in the console.
  • Events are being sent to the appropriate logging solution
  • Documentation has been updated (link to documentation)
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • Feature/bug has a monitor built into Datadog (if applicable)
  • If app impacted requires authentication, did you login to a local build and verify all authenticated routes work as expected
  • I added a screenshot of the developed feature

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?

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.

1 participant