Page MenuHomePhabricator

[services][backup] LogItem size utilities
ClosedPublic

Authored by bartek on Jan 9 2023, 11:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 9:00 PM
Unknown Object (File)
Tue, May 7, 9:00 PM
Unknown Object (File)
Tue, May 7, 9:00 PM
Unknown Object (File)
Wed, May 1, 11:32 PM
Unknown Object (File)
Fri, Apr 26, 3:14 AM
Unknown Object (File)
Apr 2 2024, 12:46 AM
Unknown Object (File)
Apr 2 2024, 12:46 AM
Unknown Object (File)
Apr 2 2024, 12:46 AM
Subscribers

Details

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.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable