Page MenuHomePhabricator

[client-backup] implement API call to get UserKeys
ClosedPublic

Authored by kamil on Aug 29 2023, 2:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 8:54 AM
Unknown Object (File)
Sun, Oct 27, 4:09 PM
Unknown Object (File)
Sep 28 2024, 6:22 AM
Unknown Object (File)
Sep 27 2024, 11:27 PM
Unknown Object (File)
Sep 27 2024, 11:27 PM
Unknown Object (File)
Sep 27 2024, 11:27 PM
Unknown Object (File)
Sep 27 2024, 11:26 PM
Unknown Object (File)
Sep 27 2024, 11:20 PM
Subscribers

Details

Summary

Call to get UserKeys associated with given BackupID

Depends on D8994

Test Plan

Call this with mock data and verify data is correct.

Diff Detail

Repository
rCOMM Comm
Branch
client-backup
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Aug 29 2023, 3:18 AM
kamil added inline comments.
native/backup/conversion-utils.js
9

opposite operations to those in D8993

native/backup/conversion-utils.js
9
native/backup/conversion-utils.js
9

Could this work: https://bun.sh/guides/binary/blob-to-typedarray?

I don't think so - the code you provided is doing the same thing as line 7 (it skips decoding base64).

native/backup/conversion-utils.js
9

Could this work: https://bun.sh/guides/binary/blob-to-typedarray?

Maybe in Bun runtime it works well, but not in React Native: https://linear.app/comm/issue/ENG-3718/improve-fetch-to-arraybuffer-performance-even-more
This is the exact reason I introduced all these utilities

LGTM on the backup api, not accepting because it seems like there is some discussion on react-native side, that I'm not very familiar

This revision is now accepted and ready to land.Aug 30 2023, 11:52 AM