Page MenuHomePhabricator

Remove an ancient no-op check for duplicated external accounts
ClosedPublic

Authored by epriestley on Feb 21 2020, 12:11 AM.
Tags
None
Referenced Files
F13080296: D21012.diff
Wed, Apr 24, 6:29 AM
Unknown Object (File)
Sat, Apr 20, 5:06 PM
Unknown Object (File)
Feb 13 2024, 6:17 PM
Unknown Object (File)
Feb 7 2024, 10:55 AM
Unknown Object (File)
Feb 3 2024, 11:42 PM
Unknown Object (File)
Jan 25 2024, 2:11 AM
Unknown Object (File)
Jan 22 2024, 11:14 AM
Unknown Object (File)
Jan 21 2024, 4:46 PM
Subscribers
None

Details

Summary

Ref T13493. This check was introduced in D4647, but the condition can never be reached in modern Phabricator because the table has a unique key on <accountType, accountDomain, accountID> -- so no row can ever exist with the same value for that tuple but a different ID.

(I'm not entirely sure if it was reachable in D4647 either.)

Test Plan

Used SHOW CREATE TABLE to look at keys on the table and reasoned that this block can never have any effect.

Diff Detail

Repository
rP Phabricator
Branch
auth4
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23880
Build 32856: Run Core Tests
Build 32855: arc lint + arc unit