Page MenuHomePhabricator

[identity] Forbid duplicated devices in device lists
ClosedPublic

Authored by bartek on Jul 25 2024, 10:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 11, 3:55 AM
Unknown Object (File)
Fri, Nov 29, 11:54 PM
Unknown Object (File)
Fri, Nov 29, 1:05 AM
Unknown Object (File)
Thu, Nov 28, 7:06 PM
Unknown Object (File)
Tue, Nov 26, 8:30 PM
Unknown Object (File)
Tue, Nov 26, 3:06 PM
Unknown Object (File)
Nov 14 2024, 6:54 PM
Unknown Object (File)
Nov 8 2024, 10:36 PM
Subscribers

Details

Summary

Addresses ENG-8898.
Added a condition to check if the device list udpate contains duplicates.

Test Plan

Added unit test

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.Jul 25 2024, 10:27 PM
bartek added inline comments.
services/identity/src/device_list.rs
331–332 ↗(On Diff #42795)

copied() is only needed to convert &&str into &str. It's cheap

This revision is now accepted and ready to land.Jul 26 2024, 8:14 AM
This revision was landed with ongoing or failed builds.Jul 29 2024, 12:16 AM
This revision was automatically updated to reflect the committed changes.