LG-9971 Add outage before_actions to post-FSM controllers#8517
LG-9971 Add outage before_actions to post-FSM controllers#8517
Conversation
c682769 to
c539312
Compare
changelog: Internal, Identity Verification, add outage actions to post-FSM controllers
c539312 to
461ea2f
Compare
d5b9847 to
56cc025
Compare
| # step and go straight to document upload | ||
| flow_session[:skip_upload_step] = true unless FeatureManagement.idv_allow_hybrid_flow? | ||
|
|
||
| session[:vendor_outage_redirect] = current_step |
There was a problem hiding this comment.
Yay!! love deleting unused session vars!
soniaconnolly
left a comment
There was a problem hiding this comment.
Does OutageConcern need to be added to review_controller and address_controller? Also possibly personal_key_controller although it doesn't include IdvStepConcern (maybe it should).
| include IdvStepConcern | ||
| include OutageConcern |
There was a problem hiding this comment.
We talked about including OutageConcern in IdvStepConcern and putting the before action there. Did something end up blocking that?
There was a problem hiding this comment.
I attempted this suggestion; however, the feature tests kept failing ... perhaps this can be refactored in a future iteration.
| before_action :confirm_step_needed | ||
| before_action :set_idv_form | ||
| # rubocop:disable Rails/LexicallyScopedActionFilter | ||
| before_action :check_for_outage, only: :show |
There was a problem hiding this comment.
Why did rubocop complain about this one and not the others?
👀 #8517 (comment) Co-authored-by: Sonia Connolly <sonia.connolly@gsa.gov>
soniaconnolly
left a comment
There was a problem hiding this comment.
LGMT! Discussed and tested locally.
| include StepUtilitiesConcern | ||
| include Steps::ThreatMetrixStepHelper | ||
| include VerifyInfoConcern | ||
| include OutageConcern |
🎫 Ticket
LG-9971
🛠 Summary of changes
Refactor the doc auth controller outage check into a concern which is used in post-FSM controllers.
📜 Testing Plan
Set these variables in application.yml.