Skip to content

LG-12427: selfie image metadata#10120

Merged
amirbey merged 2 commits intomainfrom
amirbey/LG-12427-selfie-metadata
Feb 26, 2024
Merged

LG-12427: selfie image metadata#10120
amirbey merged 2 commits intomainfrom
amirbey/LG-12427-selfie-metadata

Conversation

@amirbey
Copy link
Contributor

@amirbey amirbey commented Feb 20, 2024

🎫 Ticket

LG-12427

🛠 Summary of changes

Create an analyticsImagePayload for selfie when adding image similar to when other images are added by the user.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Complete DocAuth with selfie on a mobile device
  • Verify analytics that the "IdV: doc auth image upload vendor submitted" event contains selfie metadata (ie: mimeType, source, etc)

@amirbey amirbey self-assigned this Feb 20, 2024
@amirbey amirbey force-pushed the amirbey/LG-12427-selfie-metadata branch from fc62e56 to 8196430 Compare February 21, 2024 15:30
@amirbey amirbey marked this pull request as ready for review February 21, 2024 15:30
@amirbey amirbey changed the title LG-12427: selfie metadata LG-12427: selfie image metadata Feb 21, 2024
Copy link
Contributor

@eileen-nava eileen-nava left a comment

Choose a reason for hiding this comment

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

Could you add a test for this change? My mistake, I typed this too fast. We don't have automated tests for the acuant sdk, as Amir reminded me via slack. 👍🏻


function onSelfieCaptureSuccess({ image }: { image: string }) {
const analyticsPayload: ImageAnalyticsPayload = getAddAttemptAnalyticsPayload({
width: null,
Copy link
Contributor

Choose a reason for hiding this comment

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

Since width, height, and fingerprint are all null, why not omit those params from getAddAttemptAnalyticsPayload?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since width, height, and fingerprint are all null, why not omit those params from getAddAttemptAnalyticsPayload?

@eileen-nava - TS will get angry if I don't include them. how about making those fields optional? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

@amirbey I'm good with making the fields optional. 👍🏻

Copy link
Contributor Author

@amirbey amirbey Feb 23, 2024

Choose a reason for hiding this comment

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

@eileen-nava , done ✅

@amirbey amirbey requested a review from eileen-nava February 23, 2024 22:14
Copy link
Contributor

@eileen-nava eileen-nava left a comment

Choose a reason for hiding this comment

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

Approved. 👍🏻

@amirbey amirbey force-pushed the amirbey/LG-12427-selfie-metadata branch from b729570 to 620fc20 Compare February 26, 2024 16:26
changelog: Internal, Document Authentication, Selfie image provides metadata upon submission to image uploader
@amirbey amirbey force-pushed the amirbey/LG-12427-selfie-metadata branch from 620fc20 to 5644f35 Compare February 26, 2024 17:26
@amirbey
Copy link
Contributor Author

amirbey commented Feb 26, 2024

Screenshot 2024-02-26 at 1 21 14 PM

@amirbey amirbey merged commit 530b304 into main Feb 26, 2024
@amirbey amirbey deleted the amirbey/LG-12427-selfie-metadata branch February 26, 2024 18:21
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