Page MenuHomePhabricator

Use ApplicationTransactions in ApplicationEmail
ClosedPublic

Authored by epriestley on Jun 11 2015, 2:06 PM.
Tags
None
Referenced Files
F13277275: D13246.id32020.diff
Fri, May 31, 10:01 AM
F13275045: D13246.diff
Fri, May 31, 4:21 AM
F13261107: D13246.diff
Mon, May 27, 12:43 AM
F13243631: D13246.diff
Thu, May 23, 4:04 AM
F13222033: D13246.diff
Sun, May 19, 3:17 AM
F13220290: D13246.id32020.diff
Sun, May 19, 12:36 AM
F13208268: D13246.id32028.diff
Thu, May 16, 12:30 PM
F13204633: D13246.diff
Wed, May 15, 12:47 AM
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.