Skip to content

Add a #verify_info_step_complete? and mark_verify_info_step_complete! methods to Idv::Session#7958

Merged
jmhooper merged 0 commit intomainfrom
jmhooper-new-mark-steps-complete-pattern
Mar 15, 2023
Merged

Add a #verify_info_step_complete? and mark_verify_info_step_complete! methods to Idv::Session#7958
jmhooper merged 0 commit intomainfrom
jmhooper-new-mark-steps-complete-pattern

Conversation

@jmhooper
Copy link
Contributor

@jmhooper jmhooper commented Mar 9, 2023

The IdV Session manages the session variables during proofing and is inspected throughout to determine if a user should be on a particular step. This means the session contains a series of flags or artifacts that determine if steps were completed. The names of these and the impacts of changing them may not be obvious, so in this commit some methods for marking a step complete and checking that a step is complete were added alongside methods for invalidating a step.

This is a pattern we intend to apply to other steps in the proofing flow.

@jmhooper jmhooper changed the title Add a #verify_info_step_complete? and `mark_verify_info_step_comple… Add a #verify_info_step_complete? and mark_verify_info_step_complete! methods to Idv::Session Mar 9, 2023
Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I pulled it down and tried to force redirects and everything behaved as expected.

@jmhooper jmhooper force-pushed the jmhooper-new-mark-steps-complete-pattern branch 2 times, most recently from 65ed799 to fc639fc Compare March 15, 2023 14:56
@jmhooper jmhooper merged commit 67aa4bd into main Mar 15, 2023
@jmhooper jmhooper deleted the jmhooper-new-mark-steps-complete-pattern branch March 15, 2023 15:24
svalexander pushed a commit that referenced this pull request Mar 16, 2023
…te!` methods to `Idv::Session` (#7958)

The IdV Session manages the session variables during proofing and is inspected throughout to determine if a user should be on a particular step. This means the session contains a series of flags or artifacts that determine if steps were completed. The names of these and the impacts of changing them may not be obvious, so in this commit some methods for marking a step complete and checking that a step is complete were added alongside methods for invalidating a step.

This is a pattern we intend to apply to other steps in the proofing flow.

changelog: Improvement, FSM Retirement, Methods were added to the Idv Session class for determining whether the verify info step was completed and for marking the verify info step complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants