LG-15988: Add second DOS health check after post office selection#12112
LG-15988: Add second DOS health check after post office selection#12112eileen-nava wants to merge 3 commits intomainfrom
Conversation
…th check after post office selection
| @@ -0,0 +1,23 @@ | |||
| { | |||
There was a problem hiding this comment.
I'd appreciate feedback on whether this mock failure file looks reasonable.
There was a problem hiding this comment.
I'd appreciate feedback on whether this mock failure file looks reasonable.
overall LGTM 👍🏿 ... I have noticed that the case varies in the downstream systems .. it seems insignificant but it'd be best to mimic the response body as close as possible... here is a good example of that 👀 https://github.com/18F/identity-idp/blob/a602aff859922f350bfb9949b40f714cc50b7d52/spec/fixtures/dos/healthcheck/composite_health_success.json
There was a problem hiding this comment.
Thanks @amirbey, I'll change the case for the downstream systems' status. Any thoughts on what the comments field should be for the downstream systems?
There was a problem hiding this comment.
comments fields should be fine as is 👍🏿
|
|
||
| def index | ||
| if idv_session.in_person_passports_allowed? | ||
| if idv_session.in_person_passports_allowed? && dos_passport_api_healthy?(analytics:) |
There was a problem hiding this comment.
| if idv_session.in_person_passports_allowed? && dos_passport_api_healthy?(analytics:) | |
| if IdentityConfig.store.in_person_passports_enabled && document_capture_session.passport_allowed? |
we expect the the passport api downtime to be an edge case ... the choose your ID type screen performs an api healthcheck and disables the "passport" radio button if the api is down
if helpful, 👀 #12073
There was a problem hiding this comment.
Thanks for taking a look at this. I am fine with changing the code. I am unsure about this suggestion, because the suggested change doesn't meet the AC for LG-15988. I am not sure how to proceed. Do we need to rewrite LG-15988?
Let me know if this would be easier to discuss in a meeting or via slack.
There was a problem hiding this comment.
Amir, Gina, Shane, and I talked about this as a group. I'll make a helper method, in_person_passports_allowed?, which I will place in idv_step_concern. It also sounds like we'll be scrapping this health check, but Amir will double-check with product just in case.
There was a problem hiding this comment.
confirmed with @tahineemay ...
no need to add an add'l healthcheck here. if IdentityConfig.store.in_person_passports_enabled && document_capture_session.passport_allowed?, then we should show the choose your id screen which already performs health check and disables the passport radio button if API is down 👍🏿
There was a problem hiding this comment.
Got it, thank you @amirbey and @tahineemay!
|
Since requirements have changed for the ticket, I'm going to close this PR. I will open a new PR when it's ready for code review. |
🎫 Ticket
LG-15988: Add DoS health check (2nd check) after post office selection
🛠 Summary of changes
📜 Testing Plan
(Shout out to @shanechesnutt-ft, I based a lot of this on your very thorough test plan for PR #12084.)
Scenario: Global passports and In-Person Passports are enabled
The second DOS health check succeeds.
Setup below:
Scenario: Global passports are enabled and in-person passports is disabled
There is no second DOS health check.
Setup below: