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)
Sun, Dec 15, 6:25 AM
Unknown Object (File)
Tue, Nov 26, 1:14 PM
Unknown Object (File)
Tue, Nov 26, 7:12 AM
Unknown Object (File)
Nov 22 2024, 4:10 PM
Unknown Object (File)
Nov 22 2024, 11:56 AM
Unknown Object (File)
Nov 21 2024, 4:35 PM
Unknown Object (File)
Oct 29 2024, 8:54 AM
Unknown Object (File)
Oct 27 2024, 4:09 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
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