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
F18434118: D21012.diff
Sun, Aug 31, 8:54 AM
F18425517: D21012.id50075.diff
Sat, Aug 30, 9:55 PM
F18423396: D21012.diff
Sat, Aug 30, 7:39 PM
F18211202: D21012.id.diff
Tue, Aug 19, 1:51 AM
F18211195: D21012.id50075.diff
Tue, Aug 19, 1:51 AM
F18211194: D21012.id50056.diff
Tue, Aug 19, 1:51 AM
F18211041: D21012.diff
Tue, Aug 19, 1:35 AM
F18100895: D21012.id.diff
Sat, Aug 9, 12:09 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