Ref T5952. This adds support for a "default author" and deploys it on Maniphest.
Details
- Reviewers
epriestley - Maniphest Tasks
- T5952: Move object creation email address configuration to applications
- Commits
- Restricted Diffusion Commit
rP799dada3ad09: MetaMTA - add support for "Default Author"
used augmented (by this diff) bin/mail receive-test to test creation via an application email with a default author configured and no author specified. a task was created with the author as the default author i configured.
Diff Detail
- Repository
- rP Phabricator
- Branch
- T5952
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 3944 Build 3957: [Placeholder Plan] Wait for 30 Seconds
Event Timeline
src/applications/maniphest/mail/ManiphestCreateMailReceiver.php | ||
---|---|---|
21 | I couldn't figure out an easy way to stick this logic in the base class without rewriting a bunch. I figure this side effect thing is pretty bad but maybe okay. Maybe the best path forward will suss itself out later as I add more applications to this new way of doing things? Open for suggestions now of course. | |
src/applications/metamta/storage/PhabricatorMetaMTAApplicationEmail.php | ||
13 | I will change this constant to CONFIG_DEFAULT_AUTHOR |
src/applications/meta/controller/PhabricatorApplicationEditEmailController.php | ||
---|---|---|
285 | whoops, should use $title here |
Okay, done dissecting this thing myself now. :D
resources/sql/autopatches/20150120.maniphestdefaultauthor.php | ||
---|---|---|
1–21 | Forgot to deprecate this option in the UI... |
fixed stuff from self review, except didn't come up with a better way to do the setApplicationEmail thing
The setApplicationEmail() stuff seems reasonable to me.
I think we can probably remove this entirely (it should be completely obsoleted by phabricator.allow-email-users already?) but that would (a) break installs and (b) I'm not confident the phabricator.allow-email-users stuff actually works 100%, so retaining it for now make sense. We should be able to throw this all away eventually.
src/applications/metamta/storage/PhabricatorMetaMTAApplicationEmail.php | ||
---|---|---|
60 | For consistency with other similar methods, consider , $default = null and then passing $default to idx(). |