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

98361: Update DR engine controllers to use engine jobs #19920

Merged
merged 7 commits into from
Dec 20, 2024

Conversation

dfong-adh
Copy link
Contributor

@dfong-adh dfong-adh commented Dec 17, 2024

Summary

This PR adds two feature flags to switch to the engine versions of the SubmitUpload and Form4142Submit jobs when using the Decision Review engine controllers.

decision_review_new_engine_submit_upload_job
decision_review_new_engine_4142_job

This is owned by Benefits Decision Reviews.

Related issue(s)

department-of-veterans-affairs/va.gov-team#98361

Testing done

Tested locally and via spec tests.

  • New code is covered by unit tests
    The new jobs are called from the new controllers instead of the original jobs when the respective feature flag is enabled.

What areas of the site does it impact?

Controllers for the decision reviews functionality which are duplicated in engine context.

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

shaunburdick
shaunburdick previously approved these changes Dec 17, 2024
Copy link
Contributor

@shaunburdick shaunburdick left a comment

Choose a reason for hiding this comment

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

LGTM!

@dfong-adh dfong-adh marked this pull request as ready for review December 17, 2024 22:25
@dfong-adh dfong-adh requested review from a team as code owners December 17, 2024 22:25
Copy link

github-actions bot commented Dec 19, 2024

1 Warning
⚠️ This PR changes 208 LoC (not counting whitespace/newlines).

In order to ensure each PR receives the proper attention it deserves, we recommend not exceeding
200. Expect some delays getting reviews.

File Summary

Files

  • app/models/appeal_submission.rb (+5/-4)

  • config/features.yml (+6/-0)

  • lib/decision_review_v1/appeals/supplemental_claim_services.rb (+2/-2)

  • lib/decision_review_v1/service.rb (+6/-0)

  • modules/decision_reviews/app/controllers/decision_reviews/v1/notice_of_disagreements_controller.rb (+9/-1)

  • modules/decision_reviews/lib/decision_reviews/v1/service.rb (+14/-0)

  • modules/decision_reviews/spec/requests/v1/notice_of_disagreements_spec.rb (+52/-35)

  • modules/decision_reviews/spec/requests/v1/supplemental_claims_spec.rb (+61/-11)

    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

@ryan-mcneil
Copy link
Contributor

Hi, I must ask if there's a way to break this PR up. It seems to be an unnecessary amount of functionality to add in a single PR. While I understand that some changes require everything to go in at once, this seems like something that can go in piece by piece. We have the 500 LOC rule for a reason - please try to break down.

Copy link
Contributor

@ryan-mcneil ryan-mcneil left a comment

Choose a reason for hiding this comment

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

Please break down into smaller PRs

@dfong-adh
Copy link
Contributor Author

Sorry about that - this PR was waiting for #19789 to be merged, so most of the commits were duplicated off of those. I'll merge and update so it'll make the PR smaller.

@dfong-adh
Copy link
Contributor Author

PR is ready for review.

Copy link
Contributor

@shaunburdick shaunburdick left a comment

Choose a reason for hiding this comment

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

LGTM*

* G = Gooder

@dfong-adh dfong-adh merged commit 2c86d78 into master Dec 20, 2024
29 of 30 checks passed
@dfong-adh dfong-adh deleted the 98361-dr-engine-job-versions branch December 20, 2024 19:02
ojbucao pushed a commit that referenced this pull request Dec 20, 2024
* Duplicate main form endpoints
- also contestable issues endpoints
-v1 and v2

* Fix linting errors

* Duplicate final endpoints
- evidence
- notification callbacks

* Fix shared example constant collision

* 98361: Update DR engine controllers to use engine jobs

---------

Co-authored-by: Molly Trombley-McCann <[email protected]>
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.

5 participants