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

namepace update from CentralMail to BenefitsIntake #19595

Merged
merged 9 commits into from
Dec 27, 2024

Conversation

mreed101
Copy link
Contributor

CentralMail namespaces within the 686 submission workflow have been updated to BenefitsIntake.

Summary

  • This work is behind a feature toggle (flipper): NO
  • CentralMail for for 686 has been renamed to BenefitsIntake to clear up confusion as we use lighthouse for handling submissions
  • BenefitsIntake is more consistent and allows us to change service later on without the need to rename services or modules again
  • VA Benefits and Claims
  • (If introducing a flipper, what is the success criteria being targeted?)

Related issue(s)

Testing done

  • New code is covered by unit tests
  • The apps behavior does not change
  • Describe the steps required to verify your changes are working as expected. Exclusively stating 'Specs run' is NOT acceptable as appropriate testing
  • This is not a new feature

Screenshots

Note: Optional

What areas of the site does it impact?

Impacts are possible to form 686c submissions

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

We should throughly test the 686c workflow to ensure that all forms are being submitted properly and that logging is still accurate.

Copy link

github-actions bot commented Nov 25, 2024

1 Error
🚫 This PR changes 559 LoC (not counting whitespace/newlines).

In order to ensure each PR receives the proper attention it deserves, those exceeding
500 will not be reviewed, nor will they be allowed to merge. Please break this PR up into
smaller ones.

If you have reason to believe that this PR should be granted an exception, please see the
Submitting pull requests for approval - FAQ.

File Summary

Files

  • .github/CODEOWNERS (+2/-2)

  • app/controllers/claims_base_controller.rb (+1/-1)

  • app/serializers/{central_mail_submission_serializer.rb => benefits_intake_submission_serializer.rb} (+1/-1)

  • app/services/bgs/dependent_service.rb (+5/-3)

  • app/sidekiq/bgs/submit_form674_job.rb (+14/-5)

  • app/sidekiq/bgs/submit_form686c_job.rb (+5/-3)

  • app/sidekiq/central_mail/submit_central_form686c_job.rb (+0/-228)

  • app/sidekiq/lighthouse/benefits_intake/delete_old_claims.rb (+18/-0)

  • app/sidekiq/lighthouse/benefits_intake/submit_central_form686c_job.rb (+233/-0)

  • app/sidekiq/lighthouse/income_and_assets_intake_job.rb (+2/-2)

  • lib/dependents/monitor.rb (+2/-1)

  • spec/lib/dependents/monitor_spec.rb (+4/-2)

  • spec/serializers/{central_mail_submission_serializer_spec.rb => benefits_intake_submission_serializer_spec.rb} (+1/-1)

  • spec/sidekiq/{central_mail => lighthouse/benefits_intake}/submit_central_form686c_job_spec.rb (+13/-9)

    Note: We exclude files matching the following when considering PR size:

    *.csv, *.json, *.tsv, *.txt, *.md, Gemfile.lock, app/swagger, modules/mobile/docs, spec/fixtures/, spec/support/vcr_cassettes/, modules/mobile/spec/support/vcr_cassettes/, db/seeds, modules/vaos/app/docs, modules/meb_api/app/docs, modules/appeals_api/app/swagger/, *.bru, *.pdf
    

Big PRs are difficult to review, often become stale, and cause delays.

Generated by 🚫 Danger

@mreed101
Copy link
Contributor Author

1 Error
🚫 This PR changes 531 LoC (not counting whitespace/newlines).
In order to ensure each PR receives the proper attention it deserves, those exceeding 500 will not be reviewed, nor will they be allowed to merge. Please break this PR up into smaller ones.

If you have reason to believe that this PR should be granted an exception, please see the Submitting pull requests for approval - FAQ.

File Summary
Big PRs are difficult to review, often become stale, and cause delays.

Generated by 🚫 Danger

A file was deleted from a previous folder and moved to a different one. The file in question was already over LoC which is leading to this error.

Copy link
Contributor

@evansmith evansmith left a comment

Choose a reason for hiding this comment

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

@mreed101 can you go through app/services/bgs/dependent_service.rb, app/sidekiq/bgs/submit_form674_job.rb, and app/sidekiq/bgs/submit_form686c_job.rb to clear out the references to CentralMail::SubmitCentralForm686cJob

Also there are a few logs that link to datadog dashboards that reference CentralMail::SubmitCentralForm686cJob. Should those messages and dashboards be updated?

@mreed101
Copy link
Contributor Author

@mreed101 can you go through app/services/bgs/dependent_service.rb, app/sidekiq/bgs/submit_form674_job.rb, and app/sidekiq/bgs/submit_form686c_job.rb to clear out the references to CentralMail::SubmitCentralForm686cJob

Also there are a few logs that link to datadog dashboards that reference CentralMail::SubmitCentralForm686cJob. Should those messages and dashboards be updated?

Modified in the latest commit.

evansmith
evansmith previously approved these changes Nov 25, 2024
Copy link
Contributor

@evansmith evansmith left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for adding those changes!

@mreed101 mreed101 marked this pull request as ready for review November 25, 2024 19:25
@mreed101 mreed101 requested review from a team as code owners November 25, 2024 19:25
@va-vfs-bot va-vfs-bot temporarily deployed to vabc/jr/rename-central-mail-686/main/main November 25, 2024 20:42 Inactive
rjohnson2011
rjohnson2011 previously approved these changes Nov 26, 2024
@va-vfs-bot va-vfs-bot temporarily deployed to vabc/jr/rename-central-mail-686/main/main December 4, 2024 18:33 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to vabc/jr/rename-central-mail-686/main/main December 12, 2024 16:39 Inactive
@@ -66,7 +66,7 @@
it 'logs sidekiq job exhaustion with failure avoided' do
msg = { 'args' => [claim.id, encrypted_vet_info, encrypted_user], error_message: 'Error!' }

log = "Failed all retries on CentralMail::SubmitCentralForm686cJob, last error: #{msg['error_message']}"
log = "Failed all retries on Lighthouse::BenefitsIntake::SubmitCentralForm686cJob, last error: #{msg['error_message']}" # rubocop:disable Layout/LineLength
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you expand these please?

Suggested change
log = "Failed all retries on Lighthouse::BenefitsIntake::SubmitCentralForm686cJob, last error: #{msg['error_message']}" # rubocop:disable Layout/LineLength
log = 'Failed all retries on Lighthouse::BenefitsIntake::SubmitCentralForm686cJob, ' \
"last error: #{msg['error_message']}"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was modified @ericboehs, please take another look if you get a chance.

@va-vfs-bot va-vfs-bot temporarily deployed to vabc/jr/rename-central-mail-686/main/main December 12, 2024 18:44 Inactive
@@ -38,7 +38,7 @@ def track_submission_exhaustion(msg, email = nil)

StatsD.increment("#{SUBMISSION_STATS_KEY}.exhausted")
Rails.logger.error(
"Failed all retries on CentralMail::SubmitCentralForm686cJob, last error: #{msg['error_message']}"
"Failed all retries on Lighthouse::BenefitsIntake::SubmitCentralForm686cJob, last error: #{msg['error_message']}" # rubocop:disable Layout/LineLength
Copy link
Contributor

Choose a reason for hiding this comment

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

Here's another line that could be split up to avoid skirting the rubocop check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This has been resolved in my latest push @ericboehs

@va-vfs-bot va-vfs-bot temporarily deployed to vabc/jr/rename-central-mail-686/main/main December 16, 2024 17:20 Inactive
@ryan-mcneil ryan-mcneil merged commit 055dac4 into master Dec 27, 2024
20 of 21 checks passed
@ryan-mcneil ryan-mcneil deleted the vabc/jr/rename-central-mail-686 branch December 27, 2024 17:11
derekhouck pushed a commit that referenced this pull request Dec 31, 2024
* namepace update from CentralMail to BenefitsIntake

* updated remaining CentralMail items

* fixed linting

* removes rubocop disable from monitor spec

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

Successfully merging this pull request may close these issues.

6 participants