Skip to content

LG-12038: Update all_passed? to consider selfie success#9937

Merged
night-jellyfish merged 5 commits intomainfrom
brittany/lg-12038-update-all-passed-method
Jan 19, 2024
Merged

LG-12038: Update all_passed? to consider selfie success#9937
night-jellyfish merged 5 commits intomainfrom
brittany/lg-12038-update-all-passed-method

Conversation

@night-jellyfish
Copy link
Contributor

🎫 Ticket

LG-12038

🛠 Summary of changes

Updates the all_passed? method to take selfie success into account.

Also updates testing / fixtures.

@night-jellyfish night-jellyfish force-pushed the brittany/lg-12038-update-all-passed-method branch from 702d7b2 to 947cf1b Compare January 18, 2024 16:45
Copy link
Contributor

@amirbey amirbey 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 self-requested a review January 19, 2024 17:13
Copy link
Contributor

@amirbey amirbey left a comment

Choose a reason for hiding this comment

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

LGTM! 👍🏿

dawei-nava and others added 5 commits January 19, 2024 09:16
Technical notes:

- Since `all_passed?` is a private method, I created tests for the
method that calls it (`successful_result?`).
    - Tests did not yet exist for this method, but rather than backfill
    them I focused on selfie, assuming all other checks passed
- I found the values in `true_id_request_spec.rb` for
`PORTRAIT_MATCH_RESULT` were off - (according to our documentation)[https://drive.google.com/file/d/1MmXMYkFqPsn2VMbsMVYAUyC-amLRHVCp/view],
(pg 228) FaceMatchResult will either return `Pass` or `Fail`.
- Because `selfie_success` can return `nil` if selfie is not performed,
and because we don't want it to affect the outcome even if it somehow
did get a response of `false` when selfie capture was not enabled, we
simply return `true` if `liveness_checking_enabled` is `false`.
@night-jellyfish night-jellyfish force-pushed the brittany/lg-12038-update-all-passed-method branch from 32469c1 to 4c980d8 Compare January 19, 2024 17:16
@night-jellyfish night-jellyfish merged commit 4c17ca2 into main Jan 19, 2024
@night-jellyfish night-jellyfish deleted the brittany/lg-12038-update-all-passed-method branch January 19, 2024 17:34
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