-
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 24327 multiple pids #12087
Api 24327 multiple pids #12087
Conversation
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.
Pulled down branch and stepped-through locally with debugger; confirmed multiple participant ids case is handled and HTTP 422 returned as expected.
app/models/mpi_data.rb
Outdated
@@ -236,6 +236,7 @@ def add_ids(response) | |||
profile.birls_id = response.parsed_codes[:birls_id].presence | |||
profile.participant_id = response.parsed_codes[:participant_id].presence | |||
|
|||
profile.participant_ids = profile.participant_ids.push(profile.participant_id).uniq |
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.
Does this line actually do anything? When accessing target_veteran.participant_ids
later, the PID from the ICN lookup isn't in that list (hence the push
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.
I confirmed that we achieve the goal without this addition
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.
what's the decision here? do we need this?
modules/claims_api/app/controllers/claims_api/v1/application_controller.rb
Outdated
Show resolved
Hide resolved
672d14d
to
bdf880d
Compare
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.
LGTM, v2 next?
Summary
Related issue(s)
Testing done
rspec
What areas of the site does it impact?
claims_api/v1
Acceptance criteria
Requested Feedback