Skip to content

LG-12428: extract_pii_from_doc refactor#10069

Merged
amirbey merged 6 commits intomainfrom
amirbey/LG-12370-extract-pii-from-doc-cleanup
Feb 15, 2024
Merged

LG-12428: extract_pii_from_doc refactor#10069
amirbey merged 6 commits intomainfrom
amirbey/LG-12370-extract-pii-from-doc-cleanup

Conversation

@amirbey
Copy link
Copy Markdown
Contributor

@amirbey amirbey commented Feb 9, 2024

🎫 Ticket

Link to the relevant ticket:
LG-12428

Background
DocumentCaptureConcern#extract_pii_from_doc is a bit misleading. it declares response in it's signature as if it receives a DocAuth::Response when in fact the argument passed is a DocumentCaptureSessionResult which does not need to be passed as an argument.

🛠 Summary of changes

  1. remove the confusing and unnecessary response argument from the extract_pii_from_doc method
  2. remove DocumentCaptureController#document_capture_session_result method that was used to fetch the argument passed in to extract_pii_from_doc

@amirbey amirbey self-assigned this Feb 10, 2024
@amirbey amirbey force-pushed the amirbey/LG-12370-extract-pii-from-doc-cleanup branch from 7ea232b to 247370d Compare February 12, 2024 20:30
@amirbey amirbey changed the title LG-12370: extract_pii_from_doc fix (WIP) LG-12370: extract_pii_from_doc refactor Feb 12, 2024
@amirbey amirbey marked this pull request as ready for review February 12, 2024 20:41
@amirbey amirbey requested a review from dawei-nava February 12, 2024 21:31
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was confused about referring to a DocumentCaptureSessionResult object as a response, thanks for changing that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will remove the misleading info. 👍

@amirbey amirbey requested a review from eileen-nava February 13, 2024 19:04
@amirbey amirbey changed the title LG-12370: extract_pii_from_doc refactor LG-12428: extract_pii_from_doc refactor Feb 13, 2024
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

double checked that the store_result is fetched by the IdvSessionConcern as the old code. 👍

Copy link
Copy Markdown
Contributor

@dawei-nava dawei-nava left a comment

Choose a reason for hiding this comment

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

LGTM.

@amirbey amirbey force-pushed the amirbey/LG-12370-extract-pii-from-doc-cleanup branch from 247370d to e0f8ee6 Compare February 15, 2024 15:03
@amirbey amirbey merged commit 6e130a5 into main Feb 15, 2024
@amirbey amirbey deleted the amirbey/LG-12370-extract-pii-from-doc-cleanup branch February 15, 2024 15:58
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