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 2 v2 #12790

Conversation

rockwellwindsor-va
Copy link
Contributor

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

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

Summary

  • Adds RSpec tests for validating service information elements for AC points 10 - 21
  • Adds methods in validation file for validating service information elements
  • Updates 526 schema, and related JSON files, updates with regex for unit numbers (phone, area code)

Related issue(s)

API-24833 - Part 1, AC points 10 - 21

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

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 383 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 (+62/-0)

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

@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 24, 2023 14:28 Inactive
@rockwellwindsor-va rockwellwindsor-va marked this pull request as ready for review May 24, 2023 14:29
@rockwellwindsor-va rockwellwindsor-va requested review from a team as code owners May 24, 2023 14:29
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 24, 2023 20:21 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 24, 2023 20:22 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 25, 2023 12:27 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 25, 2023 12:28 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 25, 2023 13:03 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 25, 2023 16:25 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 25, 2023 16:36 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 25, 2023 18:16 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 25, 2023 18:22 Inactive
ryan-mcneil
ryan-mcneil previously approved these changes May 25, 2023
Copy link
Contributor

@ryan-mcneil ryan-mcneil left a comment

Choose a reason for hiding this comment

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

LGTM

@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 26, 2023 12:51 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 26, 2023 12:51 Inactive
stiehlrod
stiehlrod previously approved these changes May 26, 2023
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 30, 2023 14:12 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 30, 2023 14:12 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 30, 2023 14:52 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 30, 2023 14:53 Inactive
@rockwellwindsor-va rockwellwindsor-va dismissed stale reviews from ryan-mcneil and stiehlrod via 38452b2 May 30, 2023 15:27
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 30, 2023 15:28 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 30, 2023 15:28 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 30, 2023 15:59 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 30, 2023 16:00 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 11:51 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 11:51 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 13:45 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 13:46 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 18:26 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 18:26 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 19:03 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 19:04 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 19:31 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 19:39 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 21:34 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 21:34 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 22:00 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 22:01 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 22:11 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main May 31, 2023 22:11 Inactive
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main June 1, 2023 12:28 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main June 1, 2023 12:28 Inactive
stiehlrod
stiehlrod previously approved these changes Jun 1, 2023
@va-vsp-bot va-vsp-bot requested a deployment to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main June 1, 2023 13:35 In progress
@va-vfs-bot va-vfs-bot temporarily deployed to API-24833-526-v2-section-6-service-info-validation-part-2-v2/main/main June 1, 2023 13:35 Inactive
@stiehlrod stiehlrod added the Lighthouse lighthouse label Jun 1, 2023
@rockwellwindsor-va rockwellwindsor-va merged commit 589af8f into master Jun 1, 2023
@rockwellwindsor-va rockwellwindsor-va deleted the API-24833-526-v2-section-6-service-info-validation-part-2-v2 branch June 1, 2023 13:42
ryan-mcneil pushed a commit that referenced this pull request Dec 11, 2023
* Service Information validation - Part 1
API-24833 - Part 1 AC points 9 - 21
* Adds RSpec tests for validating service information elements for AC points 9 - 21
* Adds methods in validation file for validating service information elements
* Updates 526 schema, and related JSON files, with unitPhone regex patterns and updated example with alternate name values
 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 2
API-24833 - Part 1 AC points 10 - 21
Alters the AC points covered, now part 2 covers 10 - 21 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

* Making sure to update swagger dev file with any merges

* Merges master and fixes tests

* Removes ensured newline at save that was added into 526_json_api file
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.

6 participants