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

Feature - call VRO contention classification service for some 526-ez claims #12638

Merged
merged 31 commits into from
May 22, 2023

Conversation

lukey-luke
Copy link
Contributor

Note: Delete the description statements, complete each step. None are optional, but can be justified as to why they cannot be completed as written. Provide known gaps to testing that may raise the risk of merging to production.

Summary

  • For 526-ez VA.gov submission, claims that match ALL of the following criteria, must contact the contention classification service
    • claim is claim for increase
    • claim has single issue
    • claim has single diagnostic code -
  • Contention classification service is called HERE
  • Add feature flag for enable contention classification VRO service
  • Add rspec coverage to ensure contention classification called under proper conditions
  • The flipper flag is to remain off until

Related issue(s)

Testing done

  • VRO Client was used to communicate w/ RRD service which is now slated for removal
  • VRO Client has been repurposed to be used w/ VRO contention classification service
  • Developer can run bundle exec rspec vets-api/spec/jobs/evss/disability_compensation_form/submit_form526_all_claim_spec.rb

Screenshots

Note: Optional

What areas of the site does it impact?

(Describe what parts of the site are impacted andifcode touched other areas)

  • 526 submissions that meet above criteria, but. feature flags are OFF by default.

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 or Grafana (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?

@lukey-luke lukey-luke requested review from a team as code owners May 12, 2023 17:54
@lukey-luke lukey-luke changed the title Feature 27 call cc Feature - call VRO contention classification service for some 526-ez claims May 12, 2023
@github-actions
Copy link

github-actions bot commented May 12, 2023

1 Warning
⚠️ This PR changes 206 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

  • .gitignore (+3/-0)

  • app/models/concerns/form526_rapid_ready_for_decision_concern.rb (+36/-0)

  • app/workers/rapid_ready_for_decision/rrd_processor.rb (+13/-7)

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

  • config/settings.yml (+2/-1)

  • lib/virtual_regional_office/client.rb (+12/-21)

  • lib/virtual_regional_office/configuration.rb (+1/-1)

  • spec/factories/form526_submissions.rb (+6/-0)

  • spec/jobs/evss/disability_compensation_form/submit_form526_all_claim_spec.rb (+38/-0)

  • spec/lib/virtual_regional_office/client_spec.rb (+4/-38)

  • spec/lib/virtual_regional_office/integration/client_spec.rb (+10/-9)

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

    *.csv, *.json, *.tsv, *.txt, 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/
    

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

Generated by 🚫 Danger

@va-vfs-bot va-vfs-bot temporarily deployed to feature-27-call-cc/main/main May 12, 2023 17:55 Inactive
@lukey-luke lukey-luke marked this pull request as draft May 12, 2023 18:18
@va-vsp-bot va-vsp-bot requested a deployment to feature-27-call-cc/main/main May 12, 2023 19:36 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to feature-27-call-cc/main/main May 12, 2023 19:36 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to feature-27-call-cc/main/main May 12, 2023 19:53 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to feature-27-call-cc/main/main May 12, 2023 19:56 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to feature-27-call-cc/main/main May 12, 2023 19:59 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to feature-27-call-cc/main/main May 12, 2023 20:01 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to feature-27-call-cc/main/main May 12, 2023 20:08 In progress
@va-vsp-bot va-vsp-bot requested a deployment to feature-27-call-cc/main/main May 12, 2023 20:09 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to feature-27-call-cc/main/main May 12, 2023 20:11 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to feature-27-call-cc/main/main May 12, 2023 20:11 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to feature-27-call-cc/main/main May 12, 2023 20:16 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to feature-27-call-cc/main/main May 12, 2023 20:28 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to feature-27-call-cc/main/main May 12, 2023 20:29 Inactive
@lukey-luke lukey-luke marked this pull request as ready for review May 12, 2023 20:32
end

def update_form_with_classification(_classification_code)
# TODO: update form[FORM_526] to include the classification code
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the intention of this to (eventually) just overwrite with the correct classification code?
Is it also the intention to overwrite what would come back from the "model"? I would think there could be issues with that if so, but, just checking.

config/settings.yml Show resolved Hide resolved
diagnosticCode: @diagnostic_code,
claimSubmissionId: @claim_submission_id
diagnosticCode: diagnostic_code,
claimSubmissionId: claim_submission_id
}

perform(:post, Settings.virtual_regional_office.health_assessment_path, params.to_json.to_s, headers_hash)
Copy link
Contributor

Choose a reason for hiding this comment

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

params.to_json.to_s 🤔

I know you didnt change this but this could just be params.to_json, it should always return a string (or an error)

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.

LGTM

@lukey-luke lukey-luke merged commit 85d6550 into master May 22, 2023
@lukey-luke lukey-luke deleted the feature-27-call-cc branch May 22, 2023 16:53
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.

8 participants