Page MenuHomePhabricator

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

Authored by atul on Jun 27 2023, 12:25 PM.
Tags
None
Referenced Files
F2165116: D8340.diff
Tue, Jul 2, 12:57 AM
Unknown Object (File)
Sat, Jun 29, 3:48 PM
Unknown Object (File)
Sat, Jun 29, 5:31 AM
Unknown Object (File)
Mon, Jun 24, 2:50 PM
Unknown Object (File)
Mon, Jun 24, 2:32 PM
Unknown Object (File)
Mon, Jun 24, 11:59 AM
Unknown Object (File)
Mon, Jun 24, 9:04 AM
Unknown Object (File)
Mon, Jun 17, 8:14 PM
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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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.