HomePhabricator
Diffusion Comm dfb315472665

[services][backup] LogItem size utilities

Description

[services][backup] LogItem size utilities

Summary:
We need a way to determine if given log item doesn't exceed DynamoDB item limit. See C++ counterpart.

This probably isn't the best solution as stated in https://linear.app/comm/issue/ENG-1336/avoid-hardcoding-database-items-fields-names but for now I'm trying to keep parity with the C++ way.

Depends on D6199

Test Plan: These will be tested with the AddAttachments and SendLog endpoints. I'm wondering if adding unit tests is worth doing here.

Reviewers: varun, tomek, jon, max

Reviewed By: tomek

Subscribers: ashoat, atul

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

Details

Provenance
bartekAuthored on Jan 9 2023, 6:28 AM
Reviewer
tomek
Differential Revision
D6203: [services][backup] LogItem size utilities
Parents
rCOMM7b687b35de91: [services][backup] CreateBackup 3/3 - handle chunks and finish
Branches
Unknown
Tags
Unknown