Skip to content

LG-12370: success_status to check if pii exists#10077

Merged
amirbey merged 2 commits intomainfrom
amirbey/LG-12370-dcr-success-status
Feb 13, 2024
Merged

LG-12370: success_status to check if pii exists#10077
amirbey merged 2 commits intomainfrom
amirbey/LG-12370-dcr-success-status

Conversation

@amirbey
Copy link
Contributor

@amirbey amirbey commented Feb 13, 2024

🎫 Ticket

Link to the relevant ticket:
LG-12370

🛠 Summary of changes

success_status to check if pii exists

📜 Testing Plan

  • Complete steps prior to Doc Auth
  • Submit a yaml file with invalid pii and with Barcode Attention
  • Click Continue
  • Verify current page is document capture

@amirbey amirbey changed the title LG-12370: DocumentCaptureSesionResult#success_status to check if pii exists LG-12370: success_status to check if pii exists Feb 13, 2024
@amirbey amirbey self-assigned this Feb 13, 2024
@amirbey
Copy link
Contributor Author

amirbey commented Feb 13, 2024

Created ticket to address the errored document capture page that appears after PII fails. This issue already existed:

Screenshot 2024-02-12 at 8 49 05 PM

@amirbey amirbey marked this pull request as ready for review February 13, 2024 02:17
@amirbey amirbey force-pushed the amirbey/LG-12370-dcr-success-status branch from ebb6f13 to 7bf7059 Compare February 13, 2024 03:50
def success_status
# doc_auth_success : including document, attention_with_barcode and id type verification
!!doc_auth_success && selfie_status != :fail
!!doc_auth_success && selfie_status != :fail && !!pii
Copy link
Contributor

Choose a reason for hiding this comment

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

This does check pii completely not available but not partially pii failure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pii doesn't exist if it's not valid

Copy link
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.

Really want to get to the bottom of it, but dont think it makes things worse and does provide fix for some scenarios.

@amirbey amirbey merged commit 44e502d into main Feb 13, 2024
@amirbey amirbey deleted the amirbey/LG-12370-dcr-success-status branch February 13, 2024 14:39
solipet pushed a commit that referenced this pull request Feb 13, 2024
* document capture success status to check if pii exists

[skip changelog]

* happy linting
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