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, Nov 7, 2:01 AM
Unknown Object (File)
Fri, Nov 1, 11:55 PM
Unknown Object (File)
Fri, Nov 1, 11:55 PM
Unknown Object (File)
Fri, Nov 1, 11:53 PM
Unknown Object (File)
Fri, Nov 1, 11:53 PM
Unknown Object (File)
Fri, Nov 1, 11:32 PM
Unknown Object (File)
Oct 15 2024, 6:36 PM
Unknown Object (File)
Oct 15 2024, 6:36 PM
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