Page MenuHomePhabricator

[identity] Implemet attribute conversions for DeviceList row
ClosedPublic

Authored by bartek on Dec 7 2023, 12:05 AM.
Tags
None
Referenced Files
F2151271: D10215.id35269.diff
Sun, Jun 30, 12:25 PM
Unknown Object (File)
Thu, Jun 27, 1:40 PM
Unknown Object (File)
Wed, Jun 26, 3:33 PM
Unknown Object (File)
Tue, Jun 25, 12:53 PM
Unknown Object (File)
Tue, Jun 25, 12:53 PM
Unknown Object (File)
Tue, Jun 25, 12:53 PM
Unknown Object (File)
Tue, Jun 25, 12:52 PM
Unknown Object (File)
Tue, Jun 25, 12:52 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

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