Skip to content

Remove add_cost and add_costs method from Idv::Steps::DocAuthBaseStep#10448

Merged
jmhooper merged 1 commit intomainfrom
jmhooper-remove-add-cost-method
Apr 16, 2024
Merged

Remove add_cost and add_costs method from Idv::Steps::DocAuthBaseStep#10448
jmhooper merged 1 commit intomainfrom
jmhooper-remove-add-cost-method

Conversation

@jmhooper
Copy link
Contributor

@jmhooper jmhooper commented Apr 16, 2024

The add_cost and add_costs methods both create SpCost records for FlowStateMachine steps that inherit from Idv::Steps::DocAuthBaseStep.

We removed the FlowStateMachine from all paths that lead to the creation of an SpCost record about a year ago. The FlowStateMachine and associated Idv::Steps::DocAuthBaseStep remain, however, to support the in-person flow. The in-person flow does not create SpCost records in the FlowStateMachine.

These methods, like many methods in FlowStateMachine relics, are unused. We left these unused methods because it was assumed that the FlowStateMachine would be entirely removed from the in-person flow shortly after it was removed from the unsupervised flow. That has not been the case so this commit does some cleanup to remove them.

…eStep`

The `add_cost` and `add_costs` methods both create `SpCost` records for FlowStateMachine steps the inherit from `Idv::Steps::DocAuthBaseStep`.

We [removed the `FlowStateMachine`](#8705) from all paths that lead to the creation of an `SpCost` record about a year ago. The [`FlowStateMachine`](https://github.com/18F/identity-idp/blob/main/app/services/flow/flow_state_machine.rb) and associated [`Idv::Steps::DocAuthBaseStep`](https://github.com/18F/identity-idp/blob/main/app/services/idv/steps/doc_auth_base_step.rb) remain, however, to support the in-person flow. The in-person flow does not create `SpCost` records in the `FlowStateMachine`.

These methods, like many methods in `FlowStateMachine` relics are unused. We left these unused methods because it was assumed that the `FlowStateMachine` would be removed from the in-person flow shortly after it was removed from the unsupervised flow. That has not been the case so this commit does some cleanup to remove them.

[skip changelog]
@jmhooper jmhooper requested a review from matthinz April 16, 2024 19:10
@jmhooper jmhooper changed the title Remove add_cost and add_costs method from `Idv::Steps::DocAuthBaseStep Remove add_cost and add_costs method from Idv::Steps::DocAuthBaseStep Apr 16, 2024
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

🔥 🔥 🔥 🔥

@jmhooper jmhooper merged commit c4a0cc0 into main Apr 16, 2024
@jmhooper jmhooper deleted the jmhooper-remove-add-cost-method branch April 16, 2024 20:21
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.

3 participants