Page MenuHomePhabricator

[identity] Implemet attribute conversions for DeviceList row
ClosedPublic

Authored by bartek on Dec 7 2023, 12:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 12:52 AM
Unknown Object (File)
Oct 18 2024, 4:34 AM
Unknown Object (File)
Oct 18 2024, 4:34 AM
Unknown Object (File)
Oct 18 2024, 4:34 AM
Unknown Object (File)
Oct 18 2024, 4:33 AM
Unknown Object (File)
Oct 18 2024, 4:33 AM
Unknown Object (File)
Oct 17 2024, 2:59 PM
Unknown Object (File)
Oct 1 2024, 8:56 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 ↗(On Diff #34365)

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