Page MenuHomePhabricator

Remove weird integration between Legalpad and the ExternalAccount table
ClosedPublic

Authored by epriestley on Feb 6 2019, 6:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 9:30 PM
Unknown Object (File)
Thu, Nov 21, 6:14 PM
Unknown Object (File)
Tue, Nov 19, 2:44 PM
Unknown Object (File)
Sat, Nov 9, 3:28 PM
Unknown Object (File)
Sat, Nov 9, 3:28 PM
Unknown Object (File)
Sat, Nov 9, 3:28 PM
Unknown Object (File)
Wed, Nov 6, 12:16 AM
Unknown Object (File)
Oct 24 2024, 3:14 AM
Subscribers
Restricted Owners Package

Details

Summary

Depends on D20107. Ref T6703. Legalpad currently inserts "email" records into the external account table, but they're never used for anything and nothing else references them.

They also aren't necessary for anything important to work, and the only effect they have is making the UI say "External Account" instead of "None" under the "Account" column. In particular, the signatures still record the actual email address.

Stop doing this, remove all the references, and destroy all the rows.

(Long ago, Maniphest may also have done this, but no longer does. Nuance/Gatekeeper use a more modern and more suitable "ExternalObject" thing that I initially started adapting here before realizing that Legalpad doesn't actually care about this data.)

Test Plan

Signed documents with an email address, saw signature reflected properly in UI. Grepped for other callsites.

Diff Detail

Repository
rP Phabricator
Branch
welcome11
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21857
Build 29827: Run Core Tests
Build 29826: arc lint + arc unit

Event Timeline

Owners added a subscriber: Restricted Owners Package.Feb 6 2019, 6:49 PM

As a general sanity check on DELETE being safe here, we have 59 of these accounts on this install (since July 2014) and all of them appear to be signatures on L28. Many of them, like Test@example.org, are also most likely not authentic.

This revision is now accepted and ready to land.Feb 7 2019, 6:32 PM
This revision was automatically updated to reflect the committed changes.