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 24833 526 v2 section 6 service info validation part 1 v2 #12789

Conversation

rockwellwindsor-va
Copy link
Contributor

@rockwellwindsor-va rockwellwindsor-va commented May 24, 2023

Service Information validation - Part 1
Adds validations/tests for service information

Summary

  • Adds RSpec tests for validating service information elements for AC points 1 - 9
  • Adds methods in validation file for validating service information elements
  • Updates 526 schema, and related JSON files, for the updated type for confinements

Related issue(s)

API-24833 - Part 1, AC points 1 - 9

Testing done

RSpec

What areas of the site does it impact?

modified: modules/claims_api/app/controllers/concerns/claims_api/v2/disability_compensation_validation.rb
modified: modules/claims_api/app/swagger/claims_api/v2/dev/swagger.json
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/requests/v2/veterans/disability_compensation_request_spec.rb
modified: spec/support/schemas/claims_api/v2/forms/disability/submission.json (brings it up to date with changes from treatments as well since I missed those)

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

@github-actions
Copy link

github-actions bot commented May 24, 2023

1 Warning
⚠️ This PR changes 272 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/concerns/claims_api/v2/disability_compensation_validation.rb (+47/-0)

  • modules/claims_api/spec/requests/v2/veterans/disability_compensation_request_spec.rb (+225/-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/
    

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

Generated by 🚫 Danger

@rockwellwindsor-va rockwellwindsor-va marked this pull request as ready for review May 24, 2023 14:21
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-1-v2/main/main May 24, 2023 16:08 In progress
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-1-v2/main/main May 24, 2023 20:21 In progress
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-1-v2/main/main May 25, 2023 12:27 In progress
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-1-v2/main/main May 25, 2023 16:27 In progress
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-1-v2/main/main May 25, 2023 18:19 In progress
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-1-v2/main/main May 26, 2023 12:48 In progress
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-1-v2/main/main May 30, 2023 14:11 In progress
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-1-v2/main/main May 30, 2023 14:52 In progress
@rockwellwindsor-va rockwellwindsor-va merged commit 21769b3 into master May 30, 2023
@rockwellwindsor-va rockwellwindsor-va deleted the API-24833-526-v2-section-6-service-info-validation-part-1-v2 branch May 30, 2023 15:02
ryan-mcneil pushed a commit that referenced this pull request Dec 11, 2023
* Service Information validation - Part 1
API-24833 - Part 1 AC points 1 - 12
* Adds RSpec tests for validating service information elements for AC points 1 - 12
* Adds methods in validation file for validating service information elements
* Updates 526 schema, and related JSON files, for the updated type for confinements
Changes to be committed:
	modified:   modules/claims_api/app/controllers/concerns/claims_api/v2/disability_compensation_validation.rb
	modified:   modules/claims_api/app/swagger/claims_api/v2/dev/swagger.json
	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/requests/v2/veterans/disability_compensation_request_spec.rb
	modified:   spec/support/schemas/claims_api/v2/forms/disability/submission.json

* Service Information validation - Part 1
API-24833 - Part 1 AC points 1 - 12
Alters the AC points covered, now part 1 covers 1 - 9 and adjusts RSpec and validation file in line with that.
 Changes to be committed:
	modified:   modules/claims_api/app/controllers/concerns/claims_api/v2/disability_compensation_validation.rb
	modified:   modules/claims_api/spec/requests/v2/veterans/disability_compensation_request_spec.rb

* Removes RSpec tests that moved over to part 2

* Fixes my misunderstood structure for confinements

* Removes a log out and gets the brakeman update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants