Page MenuHomePhabricator

Show repository in Differential emails
ClosedPublic

Authored by joshuaspence on Jun 17 2014, 10:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 3:17 AM
Unknown Object (File)
Fri, Apr 19, 3:39 AM
Unknown Object (File)
Thu, Apr 18, 7:26 PM
Unknown Object (File)
Sat, Apr 13, 3:09 PM
Unknown Object (File)
Tue, Apr 2, 9:59 PM
Unknown Object (File)
Mar 31 2024, 1:59 PM
Unknown Object (File)
Feb 24 2024, 7:16 PM
Unknown Object (File)
Feb 20 2024, 7:56 AM

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
T5137: Make emails easier to filter
Commits
Restricted Diffusion Commit
rPe0ca39f6a1fa: Show repository in Differential emails
Summary

Ref T5137. Listing the repository in Differential emails makes it easy to filter.

Test Plan

Eye-ball it.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Show repository in Differential emails..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

One inline, seems reasonable otherwise.

src/applications/differential/customfield/DifferentialRepositoryField.php
155–158

I think this should use the revision's getRepositoryPHID(), not the latest diff's.

joshuaspence edited edge metadata.
  • Use the revision's repository.
  • Repository name instead of PHID.

If you really want me to test this properly then I'll give it a shot, but I don't really have outbound mail configured on my dev box.

chad retitled this revision from Show repository in Differential emails. to Show repository in Differential emails.Jun 18 2014, 2:07 AM
chad edited the test plan for this revision. (Show Details)
epriestley edited edge metadata.

Let's do:

$repository->getMonogram().' '.$repository->getName()

...so you get:

REPOSITORY
  rP Phabricator

This is less ambiguous, more consistent, and should be more routable for rules that can't use headers or whatever.

For your use case, is adding this field only on create/update (like "BRANCH" works, I think) reasonable? I don't have strong feelings either way, but that came to mind as worth mentioning.

(I can handle testing this, so don't worry about that.)

This revision now requires changes to proceed.Jun 18 2014, 12:59 PM
epriestley edited edge metadata.

Works fine locally.

This revision is now accepted and ready to land.Jun 18 2014, 3:25 PM

For your use case, is adding this field only on create/update (like "BRANCH" works, I think) reasonable? I don't have strong feelings either way, but that came to mind as worth mentioning.

Yeah, that's reasonable. I'm not entirely sure how to do that.

You can check DifferentialBranchField -- basically if $editor->getDiffUpdateTransaction($xactions) exists.

joshuaspence edited edge metadata.

Only send email on diff update.

joshuaspence updated this revision to Diff 23074.

Closed by commit rPe0ca39f6a1fa (authored by @joshuaspence).

This comment was removed by zacchiro.

I posted the comment to the wrong diff (and hence deleted it immediately afterwards). See D18636. Sorry for the noise.