Skip to content

Remove DocAuth::Response#merge method#10499

Merged
jmhooper merged 1 commit intomainfrom
jmhooper-remove-doc-auth-response-merge
Apr 24, 2024
Merged

Remove DocAuth::Response#merge method#10499
jmhooper merged 1 commit intomainfrom
jmhooper-remove-doc-auth-response-merge

Conversation

@jmhooper
Copy link
Contributor

This method is extensively tested, but I can’t find anywhere it is used. This part of the tests for the old flow state machine makes me suspect it was used to build a response for the #call method on FSM steps.

This method is extensively tested, but I can’t find anywhere it is used. [This part](https://github.com/18F/identity-idp/blob/5b1b15e8ff5b3a8f406557eacb8a501684e2d9e0/app/services/flow/base_step.rb#L52) of the tests for the old flow state machine makes me suspect it was used to build a response for the `#call` method on FSM steps.

[skip changelog]
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.

LGTM! It was added to combine multiple responses during doc auth (separate calls for image submission from liveness etc), and to be compatible with FormResponse#merge (which maybe we could look into removing too), awesome it is no longer in use!

@jmhooper jmhooper merged commit fbe377b into main Apr 24, 2024
@jmhooper jmhooper deleted the jmhooper-remove-doc-auth-response-merge branch April 24, 2024 16:18
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