-
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 41369 remove v1 base method bgs ext #19620
Api 41369 remove v1 base method bgs ext #19620
Conversation
* Adds feature flag modified: config/features.yml
* Adds definition entry modified: modules/claims_api/app/clients/claims_api/bgs_client/definitions.rb
* Adds service file new file: modules/claims_api/lib/bgs_service/standard_data_service.rb
* Adds feature flipper * updates v1 526 validations to use flipper when enabled * Updates related spec tests modified: config/features.yml modified: modules/claims_api/app/controllers/concerns/claims_api/disability_compensation_validations.rb modified: modules/claims_api/lib/bgs_service/standard_data_service.rb modified: modules/claims_api/spec/requests/v1/forms/526_spec.rb
Generated by 🚫 Danger |
module ClaimsApi | ||
class StandardDataService < ClaimsApi::LocalBGS | ||
def bean_name | ||
'StandardDataService' |
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.
Tyler had a similar question on the CorporateUpdateWebService PR: Should this be StandardDataServiceBean/StandardDataService or similar, for consistency with our other services?
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.
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.
@mchristiansonVA I feel like the answer to your question here is 'no' but worth making sure so I'll kick off a thread to discuss
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.
Oh, I think what I was overlooking is that they may both be the same, which is a little confusing to me but maybe StandardDataService/StandardDataService
is what I need here
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.
in line with slack discussion adjusted the bean_name
c3ee1a3
Good callout @mchristiansonVA to help keep these consistent
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.
Tested locally via 526 v1 POST and observed successful call to StandardDataService with flipper enabled when a classificationCode is added to a disability; validation functioned as expected. Looks good, just a minor question on the service bean_name
.
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.
Please update Flipper specs in accordance to VA best practices.
body = Nokogiri::XML::DocumentFragment.parse <<~EOXML | ||
<getContentionClassificationTypeCodeList/> | ||
EOXML |
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.
should we redis cache this? I'm not sure if these change frequent enough for us to need to make this call per request?
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.
Ya that is a good question, it is a lot of data that gets returned. I do not believe we have been doing that previously, I also would want to verify that the data we get there does not need to be specifically 'up-to-date' when it goes back into the sidekiq job. If it does not then we could do that but if it does then I do not think we could but I'm not sure.
I think an investigation ticket may be warranted to determine that, unless there is a more obvious way to know that I am unaware of.
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.
Revisiting this, I got this call confused with one in the other PR I have, I think we probably could benefit from caching this in Redis
…n uniformity across these updates
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.
Tested locally again after rename of bean_name string; working as expected. Local runs of spec tests all run successfully as well. LGTM!
Summary
Related issue(s)
API-41369
Testing done
Testing Notes
Testing the Service
Submission Testing
classificationCode
on a disability or disabilities w/ theclaims_api_526_validations_v1_local_bgs
Flipper enabledWhat 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?