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-39890-updates-some-valdations-for-change-of-address #18337

Conversation

rockwellwindsor-va
Copy link
Contributor

@rockwellwindsor-va rockwellwindsor-va commented Sep 5, 2024

Summary

  • Updates/adds conditional validation for:
    • typeOfAddressChange
    • addressLine1
    • city
    • country
  • Updates documentation description to reflect conditionally required attributes
  • Adds tests

Related issue(s)

API-39890

Testing done

  • New code is covered by unit tests

Testing Notes

  • Example changeOfAddress block to add to the 526 submission (I suggest sync or validate endpoint)
      "changeOfAddress": {
        "typeOfAddressChange": "TEMPORARY",
        "addressLine1": "10 Peach St",
        "addressLine2": "Unit 4",
        "addressLine3": "Room 1",
        "city": "Atlanta",
        "state": "GA",
        "country": "USA",
        "zipFirstFive": "42220",
        "zipLastFour": "9897",
        "dates": {
          "beginDate": "2023-06-04",
          "endDate": "2023-12-04"
        }
      },
  • comment out typeOfAddressChange
  • comment out addressLine1
  • comment out city
  • comment out country

Screenshots

Screenshot 2024-09-05 at 2 58 09 PM

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/app/swagger/claims_api/v2/production/swagger.json
modified:   modules/claims_api/config/schemas/v2/526.json
modified:   modules/claims_api/spec/lib/claims_api/v2/disability_compensation_validation_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 (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

Requested Feedback

(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?

* Updates/adds validation for:
	* typeOfAddressChange
	* addressLine1
	* city
	* state
* Updates documentation description to reflect conditionally required attributes
* Adds tests
 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/app/swagger/claims_api/v2/production/swagger.json
	modified:   modules/claims_api/config/schemas/v2/526.json
	modified:   modules/claims_api/spec/lib/claims_api/v2/disability_compensation_validation_spec.rb
@va-vfs-bot va-vfs-bot temporarily deployed to API-39890-updates-some-valdations-for-change-of-address/main/main September 5, 2024 20:35 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-39890-updates-some-valdations-for-change-of-address/main/main September 5, 2024 20:51 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to API-39890-updates-some-valdations-for-change-of-address/main/main September 5, 2024 21:03 Inactive
mchristiansonVA
mchristiansonVA previously approved these changes Sep 6, 2024
Copy link
Contributor

@mchristiansonVA mchristiansonVA left a comment

Choose a reason for hiding this comment

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

Tested locally and confirmed validations working as expected with appropriate error messages. Looks good to me!

@va-vfs-bot va-vfs-bot temporarily deployed to API-39890-updates-some-valdations-for-change-of-address/main/main September 6, 2024 18:07 Inactive
@rockwellwindsor-va rockwellwindsor-va marked this pull request as draft September 9, 2024 20:59
@rockwellwindsor-va rockwellwindsor-va marked this pull request as ready for review September 9, 2024 20:59
@va-vfs-bot va-vfs-bot temporarily deployed to API-39890-updates-some-valdations-for-change-of-address/main/main September 9, 2024 23:34 Inactive
stiehlrod
stiehlrod previously approved these changes Sep 10, 2024
Copy link

Backend-review-group approval confirmed.

@rockwellwindsor-va rockwellwindsor-va merged commit e03ff99 into master Sep 11, 2024
26 of 27 checks passed
@rockwellwindsor-va rockwellwindsor-va deleted the API-39890-updates-some-valdations-for-change-of-address branch September 11, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants