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)
Sun, Dec 22, 12:43 PM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Sun, Dec 22, 1:01 AM
Unknown Object (File)
Thu, Dec 5, 3:38 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
Lint Not Applicable
Unit
Tests Not Applicable

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.