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)
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
Unknown Object (File)
Sun, Jun 9, 9:04 AM
Unknown Object (File)
Fri, Jun 7, 7:21 PM
Unknown Object (File)
Fri, May 31, 6:24 AM
Unknown Object (File)
May 23 2024, 5:42 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
Lint Not Applicable
Unit
Tests Not Applicable

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