Skip to content

LG 7255 - Add API call to "we are retrieving" page#7149

Merged
holytoastr merged 18 commits intomainfrom
lg-7255-we-are-retrieving-call
Oct 24, 2022
Merged

LG 7255 - Add API call to "we are retrieving" page#7149
holytoastr merged 18 commits intomainfrom
lg-7255-we-are-retrieving-call

Conversation

@holytoastr
Copy link
Contributor

@holytoastr holytoastr commented Oct 14, 2022

Add API call to "we are retrieving" page (7255)

Why:
Inherited proofing users want a logical place in the flow to retrieve their data

changelog: Internal, Inherited Proofing, We are Retrieving API call

🎫 Ticket

7255

🛠 Summary of changes

  • API call is reimplemented
  • "Retrieval" renamed "verify wait" for consistency
  • Async process added
  • Inherited Proofing-specific spec helpers moved to own file
  • InheritedProofingConcern refactored to lift IP Service Provider-specific API service code and IP Service Provider-specific Form code to their own method modules and Factories. This was done because code that does not have direct access to Session (in order to get the current Service Provider we are working with) still needs to access these services; for example, ActiveJob.

@holytoastr holytoastr self-assigned this Oct 14, 2022
@holytoastr holytoastr added the inherited proofing Pull Requests for the Inherited Proofing feature label Oct 14, 2022
holytoastr and others added 7 commits October 19, 2022 14:57
Why:
Inherited proofing users want a logical place in the flow to retrieve their data

changelog: Internal, Inherited Proofing, We are Retrieving API call

async state doesn't work

async works
saving work

saving work
services

...so that we can obtain Service Provider-agnostic Inherited Proofing
services in request/response-related code and in other code that
does not have direct access to Session.
saving work

saving work

Bug fix and clean up
@holytoastr holytoastr force-pushed the lg-7255-we-are-retrieving-call branch from 3392ffc to 282a50c Compare October 19, 2022 19:09
params.require(:inherited_proofing).permit(:ial2_consent_given)
end

def enqueue_job
Copy link
Contributor

Choose a reason for hiding this comment

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

We may have to deal with the case of a double submit here. Meaning if there is another job in progress we don't want to enqueue another one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would we do that by first checking if the document capture session already exists?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, something like that. Checking to see if there is a uuid in the session already. If there is looking up the job and making sure it is not in-progress

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do. Thanks for the feedback

@gangelo
Copy link
Contributor

gangelo commented Oct 20, 2022

@jmhooper @zachmargolis refactors based on your feedback in this PR; please have a look: #7181
CC @holytoastr

@jmhooper
Copy link
Contributor

Looks like #7181 is merged. I think we should be able to merge main into this one to clean it up

@holytoastr
Copy link
Contributor Author

@jmhooper Merged in. Need to make some adjustments to use the new code.

@holytoastr holytoastr merged commit d3c242c into main Oct 24, 2022
@holytoastr holytoastr deleted the lg-7255-we-are-retrieving-call branch October 24, 2022 16:36
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.

4 participants