Skip to content

LG-12332: fix mock client to pass when using real image.#10066

Merged
dawei-nava merged 3 commits intomainfrom
dwang/LG-12332-image-pass-mock
Feb 13, 2024
Merged

LG-12332: fix mock client to pass when using real image.#10066
dawei-nava merged 3 commits intomainfrom
dwang/LG-12332-image-pass-mock

Conversation

@dawei-nava
Copy link
Contributor

🎫 Ticket

Link to the relevant ticket:
LG-12332

🛠 Summary of changes

When selfie image(not yaml) attached, mock client failed to pass in dev mode, due to the fact that we default to :not_processed for selfie_status.

So we changed to return :success if selfie is required and missing portrait_match_results in result_response.

@dawei-nava dawei-nava force-pushed the dwang/LG-12332-image-pass-mock branch 2 times, most recently from b66f282 to c799a35 Compare February 9, 2024 21:43
@dawei-nava dawei-nava marked this pull request as ready for review February 12, 2024 13:46
Copy link
Contributor

@charleyf charleyf left a comment

Choose a reason for hiding this comment

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

Tested this and it allows uploading of a selfie image (using the mock proofer).

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's clearer to use one of these or the other.

I have a slight preference for this: selfie_required: liveness_checking_required,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@charleyf , just is thinking about the same and I think I agree.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good! Did a quick test and the image upload still works.

@dawei-nava dawei-nava force-pushed the dwang/LG-12332-image-pass-mock branch from b9393a7 to 46cd9e9 Compare February 13, 2024 16:05
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 dawei-nava merged commit 436969d into main Feb 13, 2024
@dawei-nava dawei-nava deleted the dwang/LG-12332-image-pass-mock branch February 13, 2024 16:24
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