Page MenuHomePhabricator

Use ApplicationTransactions in ApplicationEmail
ClosedPublic

Authored by epriestley on Jun 11 2015, 2:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 8:54 AM
Unknown Object (File)
Tue, Apr 9, 7:41 PM
Unknown Object (File)
Mar 4 2024, 8:44 PM
Unknown Object (File)
Feb 29 2024, 11:07 AM
Unknown Object (File)
Feb 29 2024, 10:59 AM
Unknown Object (File)
Feb 18 2024, 4:04 PM
Unknown Object (File)
Feb 12 2024, 9:04 PM
Unknown Object (File)
Feb 12 2024, 4:26 PM
Subscribers

Details

Summary

Ref T8498. I want to add Spaces to these, and the logic for getting Spaces right is a bit tricky, so swap these to ApplicationTransactions.

One new piece of tech: made it easier for Editors to raise DuplicateKeyException as a normal ValidationException, so callers don't have to handle this case specially.

One behavioral change: we no longer require these addresses to be at the auth.email-domains domains -- I think this wasn't quite right in the general case. It's OK to require users to have @mycompany.com addresses but add @phabricator.mycompany-infrastructure.com addresses here if you want.

Test Plan
  • Tried to create a duplicate email.
  • Tried to create an empty email.
  • Tried to create an invalid email.
  • Created a new email.
  • Deleted an email.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Use ApplicationTransactions in ApplicationEmail.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.

One new piece of tech: made it easier for Editors to raise DuplicateKeyException as a normal ValidationException, so callers don't have to handle this case specially.

<3

This revision is now accepted and ready to land.Jun 11 2015, 5:11 PM
This revision was automatically updated to reflect the committed changes.