Page MenuHomePhabricator

[native] enable backup handler for staff
ClosedPublic

Authored by kamil on Nov 27 2024, 6:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 31, 7:47 PM
Unknown Object (File)
Sat, Dec 28, 12:41 PM
Unknown Object (File)
Sat, Dec 28, 12:29 PM
Unknown Object (File)
Sat, Dec 28, 12:21 PM
Unknown Object (File)
Thu, Dec 26, 3:37 AM
Unknown Object (File)
Fri, Dec 20, 11:15 PM
Unknown Object (File)
Fri, Dec 20, 10:24 PM
Unknown Object (File)
Mon, Dec 16, 11:38 AM
Subscribers

Details

Summary

Part of ENG-9604 but only for staff.

Starting Rust thread responsible for uploading Backup. Right now it will be used to upload User Keys only, but in the future, it will be used for User Data and logs.

Adding an alert to log if anything went wrong.

Depends on D14048, D14050

Test Plan

Add additional log to make sure if this is started or not, test it with iOS and Android (background/foreground/background).

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.

add check if device is primary

kamil published this revision for review.Nov 27 2024, 10:18 AM
kamil edited the summary of this revision. (Show Details)
kamil added inline comments.
native/backup/backup-handler.js
23–58 ↗(On Diff #46101)

Identification changes later in the stack

native/backup/backup-handler.js
39 ↗(On Diff #46101)

Should we only display this alert to staff?

47 ↗(On Diff #46101)

Same here

native/backup/backup-handler.js
39 ↗(On Diff #46101)

This code won't be ever executed for non-staff users, it's gated on staffCanSee (see line 24). But I can use useStaffAlert here to point out that this is staff-specific

bartek added inline comments.
native/backup/backup-handler.js
39 ↗(On Diff #46101)

By looking at the difference between useStaffCanSee and useIsCurrentUserStaff, the latter has a check for isDev too, and so does the useStaffAlert. Shouldn't we de-dupe them somehow?

This revision is now accepted and ready to land.Nov 29 2024, 2:55 AM
This revision was automatically updated to reflect the committed changes.