-
Notifications
You must be signed in to change notification settings - Fork 166
LG-12080: Send selfie_status to FE
#10073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5053ab9
52cd3d2
7b4c047
052f975
a3be2a3
d8dc2a8
334bc49
efd9f5f
cd53477
c96a613
79f849f
2c288be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ def initialize( | |
| pii_from_doc: {}, | ||
| attention_with_barcode: false, | ||
| doc_type_supported: true, | ||
| selfie_status: :not_processed, | ||
| selfie_live: true, | ||
| selfie_quality_good: true | ||
| ) | ||
|
|
@@ -28,6 +29,7 @@ def initialize( | |
| @pii_from_doc = pii_from_doc | ||
| @attention_with_barcode = attention_with_barcode | ||
| @doc_type_supported = doc_type_supported | ||
| @selfie_status = selfie_status | ||
| @selfie_live = selfie_live | ||
| @selfie_quality_good = selfie_quality_good | ||
| end | ||
|
|
@@ -41,6 +43,7 @@ def merge(other) | |
| pii_from_doc: pii_from_doc.merge(other.pii_from_doc), | ||
| attention_with_barcode: attention_with_barcode? || other.attention_with_barcode?, | ||
| doc_type_supported: doc_type_supported? || other.doc_type_supported?, | ||
| selfie_status: selfie_status, | ||
| selfie_live: selfie_live?, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Response to this:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @charleyf, my point is that def show_selfie_failures?
@form_response.extra[:liveness_checking_required] == true
endI think variable name
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I could be wrong, but I think what @dawei-nava is saying in the linked comment is that But, I might not quite be understanding that right. From what I can see the Maybe I'm way off base here though.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh and while I was typing out my response I see Dawei replied! I'm still wrapping my head around it but I think maybe my comment was wrong, and I misunderstood.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this following basically is the contract between the presenter and response(mock or trueid etc). The presenter expects it can fetch def show_selfie_failures?
@form_response.extra[:liveness_checking_required] == true
end
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To clarify what I meant, I just pushed a check to the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you both for clarifying and thanks for adding that test Dawei.
I'm not sure what happened, but I do think that I'm going to address it by changing |
||
| selfie_quality_good: selfie_quality_good?, | ||
| ) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.