Page MenuHomePhabricator

Introduce 'msgBackup' field to 'OrderedBackupItem' and 'LatestBackupIDResponse'
ClosedPublic

Authored by marcin on Apr 23 2024, 3:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 7:00 PM
Unknown Object (File)
Thu, Nov 21, 6:25 PM
Unknown Object (File)
Wed, Nov 6, 9:48 AM
Unknown Object (File)
Sun, Nov 3, 6:30 AM
Unknown Object (File)
Thu, Oct 31, 2:57 PM
Unknown Object (File)
Oct 18 2024, 7:22 AM
Unknown Object (File)
Oct 12 2024, 5:23 PM
Unknown Object (File)
Oct 12 2024, 5:23 PM
Subscribers

Details

Summary

This differential introduces backup message field to OrderedBackupItem so that backup message can be fetched from dynamodb.

Test Plan

For now ensure that backup functionality remains unbroken. Very next diff will enable testing with simple button click.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Logic looks good, just some code-style comments

services/backup/src/database/backup_item.rs
217–226 ↗(On Diff #39391)

Same comment as in https://phab.comm.dev/D11713#inline-70320 - this could be simplified

shared/comm-lib/src/backup/mod.rs
4–11 ↗(On Diff #39391)

We have a convention of preferring rename_all over field-level directives.
backupID is an exception because it'd be renamed to backupId (lowercase d).

This revision is now accepted and ready to land.Apr 24 2024, 2:04 AM
  1. Rename msg_backup to siwe_backup_msg
  2. Simplify code.