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

Refactor status check job for decision review forms #19426

Merged
merged 7 commits into from
Nov 18, 2024

Conversation

kayline
Copy link
Contributor

@kayline kayline commented Nov 12, 2024

Summary

  • This work is behind a feature toggle (flipper): NO
  • No behavior changes, just extracting shared code to a base job

Related issue(s)

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

Testing done

  • New code is covered by unit tests
  • Each appeal form had it's own job with most of the code duplicated. There is now a base job for checking the status of appeals forms (and evidence). Each specific form type has a job that inherits from the base job
  • Ensure that status update timestamps continue to increment each time the jobs are run.

What areas of the site does it impact?

No user-facing impact. Refactor of existing code to check status in Lighthouse

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

Copy link

github-actions bot commented Nov 12, 2024

1 Warning
⚠️ This PR changes 415 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/sidekiq/decision_review/hlr_status_updater_job.rb (+30/-0)

  • app/sidekiq/decision_review/nod_status_updater_job.rb (+33/-0)

  • app/sidekiq/decision_review/saved_claim_hlr_status_updater_job.rb (+0/-59)

  • app/sidekiq/decision_review/saved_claim_nod_status_updater_job.rb (+0/-94)

  • app/sidekiq/decision_review/{saved_claim_sc_status_updater_job.rb => saved_claim_status_updater_job.rb} (+81/-50)

  • app/sidekiq/decision_review/sc_status_updater_job.rb (+36/-0)

  • lib/periodic_jobs.rb (+3/-3)

  • spec/sidekiq/decision_review/{saved_claim_hlr_status_updater_job_spec.rb => hlr_status_updater_job_spec.rb} (+5/-1)

  • spec/sidekiq/decision_review/{saved_claim_nod_status_updater_job_spec.rb => nod_status_updater_job_spec.rb} (+9/-1)

  • spec/sidekiq/decision_review/{saved_claim_sc_status_updater_job_spec.rb => sc_status_updater_job_spec.rb} (+9/-1)

    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

@kayline
Copy link
Contributor Author

kayline commented Nov 13, 2024

1 Warning
⚠️ This PR changes 433 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
Big PRs are difficult to review, often become stale, and cause delays.

Generated by 🚫 Danger

Very little new code, just file re-naming and deletion of duplicate code

Copy link
Contributor

@dfong-adh dfong-adh left a comment

Choose a reason for hiding this comment

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

LGTM, just need to update this file to use the new job names. Also I'm assuming we don't need saved_claim_sc_status_updater_job.rb anymore either?

dfong-adh
dfong-adh previously approved these changes Nov 13, 2024
- secondary form handling needs more work
- TODO: shared examples for tests
- now depends on a method in each subclass of the status updater
- add tests for correct statsd increment value
- was renamed, but got resurrected during a merge
Copy link

Backend-review-group approval confirmed.

@kayline kayline merged commit 8421bb4 into master Nov 18, 2024
30 of 31 checks passed
@kayline kayline deleted the DR-refactor-status-checks branch November 18, 2024 17:01
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.

4 participants