Page MenuHomePhabricator

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

Authored by marcin on Apr 23 2024, 3:51 AM.
Tags
None
Referenced Files
F3358686: D11734.id40003.diff
Sun, Nov 24, 5:47 AM
F3358503: D11734.diff
Sun, Nov 24, 5:11 AM
F3358265: D11734.id39391.diff
Sun, Nov 24, 3:50 AM
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
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.