-
Notifications
You must be signed in to change notification settings - Fork 69
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-45450-bug-fix-request-index #21103
base: master
Are you sure you want to change the base?
Conversation
* When the page size param is 1 BGS returns and object not an array. This updates to always return an array from that call modified: modules/claims_api/app/services/claims_api/power_of_attorney_request_service/index.rb new file: modules/claims_api/spec/services/power_of_attorney_request_service/index_spec.rb
it 'does not return an error when page_size is 1' do | ||
expect do | ||
subject.get_poa_list | ||
end.not_to raise_error(TypeError) |
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.
Let's remove the specific type check (in both places). We don't care what kind of error was being thrown, we need to ensure sure it doesn't throw errors at all; doing so means that this won't blindly go green if some edit in the future throws a NoMethodError or the like.
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.
Will do,
bb6c77e
|
||
context 'when page size is over 1 and less then the max allowed' do | ||
before do | ||
@page_size = 1 |
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.
This is not over 1. 😉
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.
Summary
.pluck
to get the procID was breaking. This fix is designed to mae sure that value coming back is always an arrayRelated issue(s)
API-45450
Testing done
Screenshots
Note: Optional
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?