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)
Fri, Jun 21, 2:00 AM
Unknown Object (File)
Thu, Jun 20, 7:38 PM
Unknown Object (File)
Wed, Jun 19, 2:43 PM
Unknown Object (File)
Tue, Jun 18, 9:40 PM
Unknown Object (File)
Fri, Jun 14, 3:11 AM
Unknown Object (File)
Sun, May 26, 9:23 AM
Unknown Object (File)
May 19 2024, 9:09 AM
Unknown Object (File)
May 19 2024, 9:09 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #30474)

opposite operations to those in D8993

native/backup/conversion-utils.js
9 ↗(On Diff #30474)
native/backup/conversion-utils.js
9 ↗(On Diff #30474)

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 ↗(On Diff #30474)

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