-
Notifications
You must be signed in to change notification settings - Fork 66
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-45023-recache-mpi-after-icn #20798
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* WIP * re caches MPI data once we have the ICN * adds method to enable re fetching the cache on MPI data Changes to be committed: modified: modules/claims_api/app/controllers/claims_api/v1/application_controller.rb modified: modules/claims_api/app/models/claims_api/veteran.rb
* Adds call to recache MPI data when building from headers after we have the ICN * Adds test that new method is called * Clean up Cleans up a comment line from another file that was not necessary modified: modules/claims_api/app/controllers/claims_api/v1/application_controller.rb new file: modules/claims_api/spec/controllers/v1/application_controller_spec.rb modified: modules/claims_api/spec/controllers/v1/disability_compensation_controller_spec.rb
* Adds flipper for `add_person_proxy` update * Adjusts related tests modified: config/features.yml modified: modules/claims_api/app/controllers/claims_api/v1/application_controller.rb modified: modules/claims_api/spec/controllers/v1/application_controller_spec.rb modified: modules/claims_api/spec/requests/v1/forms/2122_spec.rb modified: modules/claims_api/spec/requests/v1/forms/526_spec.rb
stiehlrod
approved these changes
Feb 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saw the redis cache before and after the new re-cache method. LGTM
stevenjcumming
approved these changes
Feb 18, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
add_person_proxy
update*. Adjusts related tests
Related issue(s)
API-45023
Testing done
Testing Notes
veteran_from_headers
method beforerecache_mpi_data
is calledKEYS *
=>mpi-profile-response:796127677
, where796127677
is the SSN of your test veteranrecache_mpi_data
gets called you should have a new key in Redis for the same test veteran in the headers but this one should have the ICN as its keyKEYS *
=>mpi-profile-response:1012861229V078999
add_person_proxy
gets called and is successful.add_person_proxy
participant_id
from it.GET mpi-profile-response:1012861229V078999
participant_id
removedSET mpi-profile-response:1012861229V078999 <object with participant_id removed pasted here>
recache_mpi_data
gets called make sure to verify the Redis cache is still missing the participant ID, if it has it just re set it again without it.validate_veteran_identifiers
you should be able to see it get to line 88.What areas of the site does it impact?
Acceptance criteria
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?