Page MenuHomePhabricator

[identity] Make device list transactions more flexible
ClosedPublic

Authored by bartek on Jan 24 2024, 2:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 27, 8:32 PM
Unknown Object (File)
Thu, Jun 27, 1:52 PM
Unknown Object (File)
Thu, Jun 27, 11:44 AM
Unknown Object (File)
Wed, Jun 26, 10:28 AM
Unknown Object (File)
Tue, Jun 25, 2:11 AM
Unknown Object (File)
Sun, Jun 23, 9:54 AM
Unknown Object (File)
Thu, Jun 13, 6:23 PM
Unknown Object (File)
Thu, Jun 13, 4:40 AM
Subscribers

Details

Summary

I need the "transaction wrapper" to:

  • Make the additional DB operation optional
  • Return the resulting device list representation

Depends on D10797

Test Plan

Ran device list integration tests and seen no regressions

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.Jan 29 2024, 4:44 AM
bartek added inline comments.
services/identity/src/database/device_list.rs
1039–1041 ↗(On Diff #36256)

This should've been symmetric_difference from the beginning because we want to detect both kinds of inconsistencies here

This revision is now accepted and ready to land.Jan 29 2024, 7:45 PM