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

API-35477-526-snyc-service-extraction #16778

Merged
merged 17 commits into from
May 22, 2024

Conversation

stiehlrod
Copy link
Contributor

@stiehlrod stiehlrod commented May 16, 2024

Summary

  • Adds service for pdf generation
  • Adds service for docker container uploads
  • Adds private methods needed for a successful response. Tested with Postman.

Related issue(s)

Testing done

  • New code is covered by unit tests
  • Tested with Postman
  1. Settings.evss.mock_claims: false
  2. Settings.claims_api.benefits_documents.use_mocks: false
  3. test users
    • Jerry Brooks, 1012830245V504544, 796148937
    • Chad Barrett, 1012853277V552077, 796263749
    • Jesse Gray, 1012666073V986297, 796378881
    • Jeff Watson, 1012845703V609890, 796246757

What areas of the site does it impact?

modified:   modules/claims_api/app/services/claims_api/disability_compensation/pdf_generation_service.rb
modified:   modules/claims_api/spec/requests/v2/veterans/disability_compensation_request_spec.rb
modified:   modules/claims_api/app/services/claims_api/disability_compensation/docker_container_service.rb
modified:   modules/claims_api/app/services/claims_api/service.rb
modified:   modules/claims_api/app/controllers/claims_api/v2/veterans/disability_compensation_controller.rb
modified:   modules/claims_api/app/controllers/claims_api/v2/application_controller.rb

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

@stiehlrod stiehlrod added the claimsApi modules/claims_api label May 16, 2024
Copy link

github-actions bot commented May 16, 2024

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

  • modules/claims_api/app/controllers/claims_api/v2/veterans/disability_compensation_controller.rb (+44/-2)

  • modules/claims_api/app/services/claims_api/disability_compensation/docker_container_service.rb (+34/-0)

  • modules/claims_api/app/services/claims_api/disability_compensation/pdf_generation_service.rb (+78/-0)

  • modules/claims_api/app/services/claims_api/service.rb (+32/-0)

  • modules/claims_api/lib/custom_error.rb (+1/-1)

  • modules/claims_api/spec/requests/v2/veterans/disability_compensation_request_spec.rb (+0/-2)

  • modules/claims_api/spec/services/disability_compensation/docker_container_service_spec.rb (+43/-0)

  • modules/claims_api/spec/services/disability_compensation/pdf_generation_service_spec.rb (+46/-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

@va-vfs-bot va-vfs-bot temporarily deployed to API-35477-526-snyc-service-extraction/main/main May 16, 2024 17:17 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-35477-526-snyc-service-extraction/main/main May 16, 2024 21:22 Inactive
@stiehlrod stiehlrod marked this pull request as ready for review May 17, 2024 18:46
@stiehlrod stiehlrod requested a review from a team as a code owner May 17, 2024 18:46
@va-vfs-bot va-vfs-bot temporarily deployed to API-35477-526-snyc-service-extraction/main/main May 17, 2024 19:16 Inactive
@stiehlrod stiehlrod marked this pull request as draft May 17, 2024 21:20
@stiehlrod stiehlrod requested a review from FonzMP May 20, 2024 15:28
@va-vfs-bot va-vfs-bot temporarily deployed to API-35477-526-snyc-service-extraction/main/main May 20, 2024 15:33 Inactive
@stiehlrod stiehlrod marked this pull request as ready for review May 20, 2024 17:40
@va-vfs-bot va-vfs-bot temporarily deployed to API-35477-526-snyc-service-extraction/main/main May 20, 2024 18:35 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-35477-526-snyc-service-extraction/main/main May 20, 2024 20:09 Inactive
Copy link
Contributor

@FonzMP FonzMP left a comment

Choose a reason for hiding this comment

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

:shipit:

@stiehlrod stiehlrod merged commit a56cf31 into master May 22, 2024
19 checks passed
@stiehlrod stiehlrod deleted the API-35477-526-snyc-service-extraction branch May 22, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
claimsApi modules/claims_api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants