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

dbex/77177: EVSS Migration - /generatePDF migration: Abstract references to EVSS /getpdf #16080

Merged
merged 4 commits into from
Mar 26, 2024

Conversation

aurora-a-k-a-lightning
Copy link
Contributor

@aurora-a-k-a-lightning aurora-a-k-a-lightning commented Mar 25, 2024

Summary

"The palindrome ticket"

  • This work is behind a feature toggle (flipper): YES
  • FEATURE TOGGLE: disability_compensation_lighthouse_generate_pdf
  • evss generate pdf provider
  • lighthouse generate pdf provider stub
  • unit tests

Related issue(s)

Testing done

  • New code is covered by unit tests
  • Abstracts calls to EVSS /getPdf endpoint
  • stubbed out Lighthouse /generatePdf provider
  • backup process is still going through EVSS /getPdf endpoint

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 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

- FEATURE TOGGLE: disability_compensation_lighthouse_generate_pdf
- evss
- lighthouse stub(s)
- unit tests
Copy link

github-actions bot commented Mar 25, 2024

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

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

  • lib/disability_compensation/factories/api_provider_factory.rb (+26/-1)

  • lib/disability_compensation/providers/generate_pdf/evss_generate_pdf_provider.rb (+22/-0)

  • lib/disability_compensation/providers/generate_pdf/generate_pdf_provider.rb (+7/-0)

  • lib/disability_compensation/providers/generate_pdf/lighthouse_generate_pdf_provider.rb (+15/-0)

  • lib/sidekiq/form526_backup_submission_process/processor.rb (+21/-2)

  • spec/lib/disability_compensation/factories/api_provider_factory_spec.rb (+34/-0)

  • spec/lib/disability_compensation/providers/generate_pdf/evss_generate_pdf_provider_spec.rb (+48/-0)

  • spec/lib/disability_compensation/providers/generate_pdf/generate_pdf_provider_spec.rb (+12/-0)

  • spec/lib/disability_compensation/providers/generate_pdf/lighthouse_generate_pdf_provider_spec.rb (+31/-0)

  • spec/lib/sidekiq/form526_backup_submission_process/submit_spec.rb (+2/-0)

  • spec/lib/sidekiq/form526_job_status_tracker/job_tracker_spec.rb (+4/-0)

  • spec/support/disability_compensation_form/shared_examples/generate_pdf_service_provider.rb (+10/-0)

    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/, *.bru
    

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

Generated by 🚫 Danger

- fix linting and unit test
- fix linting and unit test
- added a unit test for evss service class checking
Copy link
Contributor

@SamStuckey SamStuckey left a comment

Choose a reason for hiding this comment

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

lgtm

@aurora-a-k-a-lightning aurora-a-k-a-lightning marked this pull request as ready for review March 26, 2024 15:50
@aurora-a-k-a-lightning aurora-a-k-a-lightning requested review from a team as code owners March 26, 2024 15:50
def generate_pdf_service_provider
case api_provider
when API_PROVIDER[:evss]
if @options[:auth_headers].nil? || @options[:auth_headers]&.empty?
Copy link
Contributor

Choose a reason for hiding this comment

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

I think if @options[:auth_headers].blank? will cover both nil and empty scenarios here

@aurora-a-k-a-lightning aurora-a-k-a-lightning merged commit b57cc48 into master Mar 26, 2024
20 checks passed
@aurora-a-k-a-lightning aurora-a-k-a-lightning deleted the dbex/77177 branch March 26, 2024 16:43
agravell047 pushed a commit that referenced this pull request Mar 28, 2024
…ces to EVSS /getpdf (#16080)

* dbex/77177: add GeneratePdfProvider
- FEATURE TOGGLE: disability_compensation_lighthouse_generate_pdf
- evss
- lighthouse stub(s)
- unit tests

* dbex/77177: add GeneratePdfProvider
- fix linting and unit test

* dbex/77177: add GeneratePdfProvider
- fix linting and unit test

* dbex/77177: add GeneratePdfProvider
- added a unit test for evss service class checking
agravell047 added a commit that referenced this pull request Mar 28, 2024
* udpated swagger docs/test

* fixed linter and updated types

* added new yml for rxRfRecord object

* Codespaces native (#15935)

* Add hybrid setup config

* Various fixes

* Improve startup

* Don't try to bring app up in start

* Add mockdata config

* Improve startup

* More QoL improvements

* Improve startup

* Add ruby lsp ext after start

* Create log dir on start

* Improvements

* Change setup to facilitate ruby lsp extension installation

* Remove manual extension installation

* Fix startup script

* More work on deps

* Set user id when starting deps

* More adjustments to startup scripts

* simplify docker deps setup

* Wait for the api to be ready before exiting the startup script

* More QoL improvements

* Change setup order

* Add output for permissions set

* Adjust permissions approach

* One more adjustment

* Belt & suspenders

* More perms adjustment

* Simplify startup

* Add native setup

* Change ruby setup to enable

* Add hardware requirements

* Add test DB config

* Add docs

* Update postgres version

* Update redis version

* Fix foreman output

* Use different redis package

* Minor debug output

* Don't bother with starting the app

* Improve test database config

* Update doc

* Remove host requirements

* Only notify for port forwarding on 3000

* Allow access from localhost and shared github URLs.

* Change ownership

* Remove host header check

This was obviated by the addition of the HostAuthorization middleware in Rails 6

* Add test DB setup to main local settings file

* Update tests

* API-32311 establish poa oas updates (#16005)

* API-32311 establish poa oas updates

* Updates OAS text
* Updates Swagger Docs
	modified:   modules/claims_api/app/swagger/claims_api/description/v2.md
	modified:   modules/claims_api/app/swagger/claims_api/v2/dev/swagger.json
	modified:   modules/claims_api/app/swagger/claims_api/v2/production/swagger.json

* Updates for removed text

* Fixes missed line removal

* Adds missed docs text update

* Adds 2122, 2122a, 212/vallidate, 2122a/validate and power-of-attorney/{id} endpoints to docs

* Add pension specific sentry tag (#16040)

* - Add pension specific sentry tag

* - Add pension specific sentry tag

* - Add pension specific sentry tag

* - Add pension specific sentry tag

---------

Co-authored-by: Scott Gorman <[email protected]>

* dbex/77177: EVSS Migration - /generatePDF migration: Abstract references to EVSS /getpdf (#16080)

* dbex/77177: add GeneratePdfProvider
- FEATURE TOGGLE: disability_compensation_lighthouse_generate_pdf
- evss
- lighthouse stub(s)
- unit tests

* dbex/77177: add GeneratePdfProvider
- fix linting and unit test

* dbex/77177: add GeneratePdfProvider
- fix linting and unit test

* dbex/77177: add GeneratePdfProvider
- added a unit test for evss service class checking

* [Bugfix] Personal health care contacts: Selects only valid contact types (#16062)

* Selects only valid contact types

* Updating version of REDIS to 6.2 in the docker compose files. (#16090)

* Authorized Ping Endpoint for Travel Pay API (#16089)

* Add authorized_ping endpoint to BTSSS API

* Adds specs for authorized ping endpoint, cleanup and bug fixes

* Fixes for rubocop

* Adds line comment

---------

Co-authored-by: Athif Wulandana <[email protected]>

* MBMS-61276 change UUID size and position on pre need form 40-10007 pdf (#16074)

* [#MHV-54372] remove 556 transition feature flags (#15990)

Co-authored-by: Alex Morgun <[email protected]>

* removed cache busting for mobile rx (#16099)

* removed cache busting for mobile rx

* removed failing test for mobile

* fixed gemfile

* Bump json-schema from 4.2.0 to 4.3.0

Bumps [json-schema](https://github.com/voxpupuli/json-schema) from 4.2.0 to 4.3.0.
- [Changelog](https://github.com/voxpupuli/json-schema/blob/master/CHANGELOG.md)
- [Commits](voxpupuli/json-schema@v4.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: json-schema
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* update deprecated code

* Added s3 check to specific appeals endpoint that use  s3 (#16034)

Co-authored-by: Matt Kelly <[email protected]>

* Update Faker::IDNumber to Faker::IdNumber (#16102)

* Api 33483 poa v2 signatures (#15406)

* Make reg num required

* Add sig to PDF

* Add .first test

* Handle duplicate reps by ID

* Require rep_id in builder

* Adding facility_type in CIE Logger util (#16083)

Co-authored-by: kanchanasuriya <[email protected]>

* MHV-56068: Serialize tracking_list as 1-level array (#16056)

* Add serlization for `tracking_list`, tests

* Update/fix test for tracking_list and the first tracking item

* Add trackingList item to openapi schema

* Add separate PrescriptionTrackingItem schema, update PrescriptionDetail
to reference

* Mobile: Remove logs (#16068)

* Remove logs

* rubocop

* Add back logging that is occurring

* Remove logging from tests

---------

Co-authored-by: Tonksthebear <[email protected]>

* Add additional logging in case of Pension errors (#16065)

* Add additional logging in case of Pension errors

* Fix lint errors

* Handle no error message, fix test

* Update codeowwners

* Move logging to separate class

* Update test

* Fix lint

* 76818: Change config for NodEmailLoaderJob to use a hash (#16109)

* 79457 handle ICN for OH data (#16119)

* fixed linter issues

* added changes to openapi_merged.yaml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Adrian Rollett <[email protected]>
Co-authored-by: Rockwell Windsor Rice <[email protected]>
Co-authored-by: Scott <[email protected]>
Co-authored-by: Scott Gorman <[email protected]>
Co-authored-by: Aurora <[email protected]>
Co-authored-by: Richard Davis <[email protected]>
Co-authored-by: Joshua Backfield <[email protected]>
Co-authored-by: Athif Wulandana <[email protected]>
Co-authored-by: Athif Wulandana <[email protected]>
Co-authored-by: Adam Antonioli <[email protected]>
Co-authored-by: Alex Morgun <[email protected]>
Co-authored-by: Alex Morgun <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lindsey Hattamer <[email protected]>
Co-authored-by: Mike <[email protected]>
Co-authored-by: Matt Kelly <[email protected]>
Co-authored-by: stevenjcumming <[email protected]>
Co-authored-by: Austin Covrig <[email protected]>
Co-authored-by: kanchanasuriya <[email protected]>
Co-authored-by: kanchanasuriya <[email protected]>
Co-authored-by: Daniel Cloud <[email protected]>
Co-authored-by: Jason C <[email protected]>
Co-authored-by: Tonksthebear <[email protected]>
Co-authored-by: Tai Wilkin-Corraggio <[email protected]>
Co-authored-by: dfong-adh <[email protected]>
Co-authored-by: Gaurav Gupta <[email protected]>
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.

4 participants