Page MenuHomePhabricator

[native] enable backup handler for staff
AcceptedPublic

Authored by kamil on Wed, Nov 27, 6:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 27, 3:26 PM
Unknown Object (File)
Wed, Nov 27, 3:26 PM
Unknown Object (File)
Wed, Nov 27, 3:26 PM
Unknown Object (File)
Wed, Nov 27, 3:26 PM
Unknown Object (File)
Wed, Nov 27, 3:26 PM
Unknown Object (File)
Wed, Nov 27, 3:26 PM
Unknown Object (File)
Wed, Nov 27, 3:26 PM
Unknown Object (File)
Wed, Nov 27, 3:26 PM
Subscribers

Details

Reviewers
bartek
tomek
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
Branch
backup-2
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.

add check if device is primary

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

Identification changes later in the stack

native/backup/backup-handler.js
39

Should we only display this alert to staff?

47

Same here

native/backup/backup-handler.js
39

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

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.Fri, Nov 29, 2:55 AM