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-26966-526-v2-req-body-updates & API-27054 #12824

Merged
merged 0 commits into from
Jun 5, 2023

Conversation

stiehlrod
Copy link
Contributor

@stiehlrod stiehlrod commented May 26, 2023

Summary

  • Updates 526 Request body's 'Example Value' to align with validation
  • Updates enum for /homeless/riskOfBecomingHomeless/livingSituationOptions
  • Fixes validation errors (caused by example.json not matching form_526_json_api.json)
  • Adds verify access for ticket 27054

Related issue(s)

Testing done

  • rspec
  • Postman

What areas of the site does it impact?

modified:   modules/claims_api/config/schemas/v2/526.json
modified:   modules/claims_api/config/schemas/v2/request_bodies/disability_compensation/example.json
modified:   modules/claims_api/config/schemas/v2/request_bodies/disability_compensation/request.json
modified:   modules/claims_api/spec/fixtures/v2/veterans/disability_compensation/form_526_json_api.json
modified:   modules/claims_api/spec/lib/claims_api/v2/disability_compensation_pdf_mapper_spec.rb
modified:   modules/claims_api/spec/requests/v2/veterans/disability_compensation_request_spec.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 Lighthouse lighthouse claimsApi modules/claims_api labels May 26, 2023
@stiehlrod stiehlrod self-assigned this May 26, 2023
@va-vfs-bot va-vfs-bot temporarily deployed to API-26966-526-v2-req-body-updates/main/main May 26, 2023 18:27 Inactive
@stiehlrod stiehlrod marked this pull request as ready for review May 26, 2023 18:48
@stiehlrod stiehlrod requested review from a team as code owners May 26, 2023 18:48
@va-vsp-bot va-vsp-bot requested a deployment to API-26966-526-v2-req-body-updates/main/main May 26, 2023 18:49 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-26966-526-v2-req-body-updates/main/main May 26, 2023 18:49 Inactive
@FonzMP
Copy link
Contributor

FonzMP commented May 30, 2023

dev/swagger needs updated with this.

@va-vsp-bot va-vsp-bot requested a deployment to API-26966-526-v2-req-body-updates/main/main May 31, 2023 16:21 In progress
@va-vsp-bot va-vsp-bot requested a deployment to API-26966-526-v2-req-body-updates/main/main May 31, 2023 18:47 In progress
@stiehlrod stiehlrod changed the title API-26966-526-v2-req-body-updates API-26966-526-v2-req-body-updates & API-27054 May 31, 2023
@va-vsp-bot va-vsp-bot requested a deployment to API-26966-526-v2-req-body-updates/main/main May 31, 2023 21:56 In progress
@github-actions
Copy link

github-actions bot commented May 31, 2023

1 Warning
⚠️ This PR changes 410 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 (+2/-0)

  • modules/claims_api/lib/claims_api/v2/disability_compensation_pdf_mapper.rb (+2/-1)

  • modules/claims_api/spec/lib/claims_api/v2/disability_compensation_pdf_mapper_spec.rb (+9/-9)

  • modules/claims_api/spec/requests/v2/veterans/disability_compensation_request_spec.rb (+209/-178)

    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-vsp-bot va-vsp-bot requested a deployment to API-26966-526-v2-req-body-updates/main/main June 1, 2023 17:26 In progress
@stiehlrod stiehlrod marked this pull request as draft June 2, 2023 13:06
@va-vsp-bot va-vsp-bot requested a deployment to API-26966-526-v2-req-body-updates/main/main June 2, 2023 19:11 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-26966-526-v2-req-body-updates/main/main June 2, 2023 19:11 Inactive
@stiehlrod stiehlrod marked this pull request as ready for review June 2, 2023 19:19
@va-vsp-bot va-vsp-bot requested a deployment to API-26966-526-v2-req-body-updates/main/main June 5, 2023 13:56 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-26966-526-v2-req-body-updates/main/main June 5, 2023 13:56 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-26966-526-v2-req-body-updates/main/main June 5, 2023 14:03 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-26966-526-v2-req-body-updates/main/main June 5, 2023 14:03 Inactive
Copy link
Contributor

@rockwellwindsor-va rockwellwindsor-va left a comment

Choose a reason for hiding this comment

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

Looks good to us!

@stiehlrod stiehlrod merged commit f562975 into master Jun 5, 2023
@stiehlrod stiehlrod deleted the API-26966-526-v2-req-body-updates branch June 5, 2023 14:45
ryan-mcneil pushed a commit that referenced this pull request Dec 11, 2023
* Changes values in example, request body, form_526, and schema based on PM feedback.

* Adjusts example to match form_526

* Matches example.json to form_526_json_api.json to eliminate validation errors.

* Adds verify access to ticket 27054, and swagger update.

* Adjusts tests to accomodate ccg flow.

* Adds catch for missing treatment section.

* Adds swagger after testing with Postman; and adding tasks to new cleanup ticket.

* Fixes test

* Fixes test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
claimsApi modules/claims_api Lighthouse lighthouse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants