Page MenuHomePhabricator

[native] Consume `useNativeUpdateUserImageAvatar` in `useSelectFromGalleryAndUpdateUserAvatar`
ClosedPublic

Authored by atul on Jun 27 2023, 12:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 12:15 PM
Unknown Object (File)
Fri, Nov 1, 5:36 PM
Unknown Object (File)
Sun, Oct 27, 10:13 AM
Unknown Object (File)
Oct 14 2024, 4:17 AM
Unknown Object (File)
Oct 14 2024, 4:17 AM
Unknown Object (File)
Oct 14 2024, 4:17 AM
Unknown Object (File)
Oct 14 2024, 4:17 AM
Unknown Object (File)
Oct 14 2024, 4:15 AM
Subscribers

Details

Summary

There is now only one usage of updateImageUserAvatar from *EditUserAvatarProvider and it's in useNativeUpdateUserImageAvatar where the call is wrapped in a try/catch with native-specific "error surfacing" handled in the catch block.


Depends on D8339

Test Plan

selectFromGalleryAndUpdateUserAvatar is used in one place: EditUserAvatar. Specifically the select image from gallery flow.

Similar to D8339, will break update_user_avatar endpoint and ensure that alert surfaces as expected:

8780c8.png (282×584 px, 106 KB)

Will also test "happy case" where the update_user_avatar endpoint is working as expected.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Jun 27 2023, 12:25 PM
atul edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Jun 28 2023, 5:54 PM
atul edited the test plan for this revision. (Show Details)

rebase before landing

This revision was landed with ongoing or failed builds.Jul 28 2023, 12:40 PM
This revision was automatically updated to reflect the committed changes.