Page MenuHomePhabricator

[identity] Implemet attribute conversions for DeviceList row
ClosedPublic

Authored by bartek on Dec 7 2023, 12:05 AM.
Tags
None
Referenced Files
F6238581: D10215.id34365.diff
Thu, Apr 24, 6:27 PM
F6238578: D10215.id.diff
Thu, Apr 24, 6:27 PM
Unknown Object (File)
Tue, Apr 22, 1:13 PM
Unknown Object (File)
Sun, Apr 20, 7:45 AM
Unknown Object (File)
Sat, Apr 19, 11:28 PM
Unknown Object (File)
Sat, Apr 19, 10:28 PM
Unknown Object (File)
Sat, Apr 19, 7:58 PM
Unknown Object (File)
Sat, Apr 19, 2:32 AM
Subscribers

Details

Summary

Same as D10214 but for DeviceListRow

Depends on D10214

Test Plan

Tested later in the stack. TODO: add unit tests

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Dec 7 2023, 1:05 AM
bartek added inline comments.
services/identity/src/database/device_list.rs
280–287

Note that we use RFC 3339 string for ItemID while the ATTR_TIMESTAMP uses milliseconds number. Generally I use the former everywhere (simpler parsing without NaiveDateTime conversions) but I thought the latter is easier for DDB to sort by (it's used only as index sorting key and not read anywhere else)

This revision is now accepted and ready to land.Dec 7 2023, 9:23 PM