Page MenuHomePhabricator

Add Mailtags to Paste
ClosedPublic

Authored by chad on Apr 13 2015, 10:05 PM.
Tags
None
Referenced Files
F13994214: D12404.id29794.diff
Wed, Oct 23, 4:38 AM
F13993880: D12404.id29794.diff
Wed, Oct 23, 2:00 AM
F13976282: D12404.id29793.diff
Oct 18 2024, 1:36 PM
F13976187: D12404.diff
Oct 18 2024, 1:13 PM
F13973704: D12404.id29798.diff
Oct 18 2024, 2:09 AM
F13967577: D12404.id29793.diff
Oct 16 2024, 2:34 PM
F13966611: D12404.diff
Oct 16 2024, 8:42 AM
F13957328: D12404.id29794.diff
Oct 14 2024, 9:19 AM
Subscribers
Tokens
"Haypence" token, awarded by btrahan.

Details

Summary

Fixes T7786. Adds very basic mailtag support.

Test Plan

Tested changing language, title to a Paste, didn't get notifications on my test account.

Diff Detail

Repository
rP Phabricator
Branch
paste-notifications
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5303
Build 5321: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

chad retitled this revision from to Add Mailtags to Paste.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added reviewers: epriestley, btrahan.

I think we should separate "comment" out, but maybe lump "title" and "content" into a single category, and put "language" with "other"? So the options would be:

  • Content is changed (title or body).
  • Comment.
  • Other.

Particularly, my guess is that "comment" is much more interesting to separate out than "language".

I didn't know what magic text to write for COMMENT

You can look at, e.g., DifferentialTransaction->getMailTags() for an example. It should be:

PhabricatorTransactions::TYPE_COMMENT
chad edited edge metadata.
  • updates
src/applications/paste/editor/PhabricatorPasteEditor.php
160

...and then this one becomes PhabricatorPasteTransaction::MAILTAG_COMMENT

src/applications/paste/storage/PhabricatorPasteTransaction.php
12

Oh, sorry -- you do need to add MAILTAG_COMMENT here...

197

...and do:

case PhabricatorTransactions::TYPE_COMMENT:
  $tag[] = self::MAILTAG_COMMENT;

...here

haha, i sent this up and was having issues with testing. thanks for the notes.

epriestley edited edge metadata.
This revision is now accepted and ready to land.Apr 13 2015, 10:30 PM
This revision was automatically updated to reflect the committed changes.