HomePhabricator
Diffusion Comm 8ddfc51b06e2

[backup] Update dynamodb

Description

[backup] Update dynamodb

Summary:
ENG-4497

Two changes:

  • we remove recoveryData from backup items because backup_id can be merged with it more context here
  • add userKeys to projected attributes because it will need to be available to fetch as "latest backup"
    • also possible: do two fetches to the db, one for backup_id and second one (from the main table) for the user_keys

Depends on D8953

Test Plan: yarn reset-local-stack, tested with future diffs

Reviewers: bartek, patryk, kamil, jon

Reviewed By: bartek

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8954

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Aug 23 2023, 7:17 AM
Reviewer
bartek
Differential Revision
D8954: [backup] Update dynamodb
Parents
rCOMM0969a32f4c4c: [backup] Split database module
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM8ddfc51b06e2: [backup] Update dynamodb (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Aug 30 2023, 1:25 AM