Skip to content

LG-7446 Create "Cancel" Links and Supporting Cancellation Code for Identity Proofing Process (2 of n)#7140

Closed
gangelo wants to merge 5 commits intomainfrom
"lg-7446-create-cancel-links-2-of-n"

Hidden character warning

The head ref may contain hidden characters: ""lg-7446-create-cancel-links-2-of-n""
Closed

LG-7446 Create "Cancel" Links and Supporting Cancellation Code for Identity Proofing Process (2 of n)#7140
gangelo wants to merge 5 commits intomainfrom
"lg-7446-create-cancel-links-2-of-n"

Conversation

@gangelo
Copy link
Contributor

@gangelo gangelo commented Oct 13, 2022

See PR LG-7446 Create "Cancel" Links and Supporting Cancellation Code for Identity Proofing Process (1 of n)

🎫 Ticket

LG-7446

🛠 Summary of changes

NOTE: This is feature branch 2 of what most likely be (at most) several feature branches.

In this feature branch:

  • Implement InheritedProofingCancellationsController #new, #update actions (#destroy action to be implemented in subsequent feature branch(es)).
  • Create specs for the aforementioned controller actions.
  • Create "Cancel" links on appropriate views to implement cancellation logic ("Start Over" button/logic to be implemented in subsequent feature branch(es)).

In subsequent feature branch(es):

  • Implement InheritedProofingCancellationsController #destroy action.
  • Create specs for the aforementioned controller actions.
  • Implement "Start Over" links on appropriate view to implement "Start Over" cancellation logic.
  • Create InheritedProofingSessionsController controller to handle Inherited Proofing (IP) session clean up.
  • Create routes for InheritedProofingSessionsController controller actions.
  • Implement app/views/idv/inherited_proofing_cancellations/new.html.erb view "Start Over" button that uses the InheritedProofingSessionsController controller to clean up IP session.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Automated tests (in subsequent feature branch).
  • Manual testing via Sinatra app (when feature branches completed).

👀 Screenshots

TODO

🚀 Notes for Deployment

See PR LG-7446 Create "Cancel" Links and Supporting Cancellation Code for Identity Proofing Process (1 of n)

The IdentityConfig.store.inherited_proofing_enabled returns false in
preparation for use in the Inherited Proofing (IP) cancellations controller
that needs to be created. Eventually, this code may get thrown away
once IP goes live; however, this makes for less lines of code that
need to be removed once/if it does.

changelog: Improvements, Upcoming Features, LG-7446 Create Inherited Proofing Cancellation Links and Process
Specs to be added in subsequent PR when controller actions
are fleshed out.
Specifically, the "Render path contains parameter value" violation.

This commit whitelists the flow steps expected and raises an error
if params[:step] is not found in the whitelist.

Confidence: Weak
Category: Dynamic Render Path
Check: Render
Message: Render path contains parameter value
Code: render(action => ButtonComponent.new(:action =>
  (lambda do  button_to(idv_inherited_proofing_cancel_path(:step => params[:step]),
  { **tag_options }, &block)  end), :method => :put, :big => true, :wide => true,
  :outline => true).with_content(t("inherited_proofing.cancel.actions.keep_going")), {})
File: app/views/idv/inherited_proofing_cancellations/new.html.erb
Line: 23

Confidence: Weak
Category: Dynamic Render Path
Check: Render
Message: Render path contains parameter value
Code: render(action => SpinnerButtonComponent.new(:action =>
  (lambda do  button_to(idv_inherited_proofing_cancel_path(:step => params[:step],
  :location => "cancel"), { **tag_options }, &block)  end), :method => :delete,
  :big => true, :wide => true, :outline => true,
  :form => ({ :data => ({ :form_steps_wait => "" }) }))
  .with_content(CancellationsPresenter.new(:sp_name =>
  decorated_session.sp_name, :url_options => url_options).exit_action_text), {})
File: app/views/idv/inherited_proofing_cancellations/new.html.erb
Line: 44
@gangelo gangelo self-assigned this Oct 13, 2022
@gangelo gangelo added the inherited proofing Pull Requests for the Inherited Proofing feature label Oct 13, 2022
@gangelo gangelo closed this Oct 13, 2022
@gangelo gangelo deleted the "lg-7446-create-cancel-links-2-of-n" branch October 13, 2022 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inherited proofing Pull Requests for the Inherited Proofing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant