Page MenuHomePhabricator

T4666, Support Herald in Phriction
ClosedPublic

Authored by lpriestley on Nov 11 2014, 7:28 PM.
Tags
None
Referenced Files
F14477597: D10830.id25994.diff
Sat, Dec 28, 2:47 PM
Unknown Object (File)
Thu, Dec 19, 1:42 PM
Unknown Object (File)
Thu, Dec 19, 1:42 PM
Unknown Object (File)
Thu, Dec 19, 1:41 PM
Unknown Object (File)
Thu, Dec 19, 1:41 PM
Unknown Object (File)
Thu, Dec 19, 1:41 PM
Unknown Object (File)
Sun, Dec 15, 8:30 PM
Unknown Object (File)
Sat, Dec 7, 7:09 AM
Subscribers
Tokens
"Doubloon" token, awarded by epriestley.

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
T4666: Support Herald in Phriction
Commits
Restricted Diffusion Commit
rP8e1a4eef0400: T4666, Support Herald in Phriction
Summary

Fixes T4666, add Herald rules to Phriction Documents

Test Plan

add Herald rule to flag if title contains "xyz", create Phriction Document with title "xyz". Phriction Document should be flagged.

Diff Detail

Repository
rP Phabricator
Branch
phrictionheraldadapter
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 3017
Build 3021: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

lpriestley retitled this revision from to T4666, Support Herald in Phriction.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.
epriestley edited edge metadata.

Some mostly-stylistic inlines, this looks functionally correct to me.

src/applications/phriction/herald/PhrictionDocumentHeraldAdapter.php
15

Let's call these "wiki documents", vs "wikis" -- I think we do that elsewhere in the UI, and it's vaguely possible we might some day let you have multiple top-level wikis (which each contain a bunch of documents).

66

It would be nice to implement this, did you take a shot at it? Doing it in a followup diff would be cool, too.

78

If these show up in this order in the UI, let's put EMAIL right under ADD_CC? I think that's consistent with other applications, and leaving "do nothing" as the last option feels vaguely nice.

97–99

Wxxx is dashboard widgets -- Phriction pages don't have a monogram.

I think this is just used in the transcript view. You could do something like:

pht('Wiki Document %d', $this->getDocument()->getID());

...or:

pht('Wiki Document "%s"', $this->getDocument()->getContent()->getTitle());

...I think.

112

Does FIELD_IS_NEW_OBJECT work automatically? I think it does but don't remember.

This revision now requires changes to proceed.Nov 11 2014, 10:33 PM
src/applications/phriction/herald/PhrictionDocumentHeraldAdapter.php
112

It works (because parent adapter adds it always?)

lpriestley edited edge metadata.

Adding FIELD_PATH to Herald adapter.

epriestley edited edge metadata.
This revision is now accepted and ready to land.Nov 12 2014, 2:29 AM
This revision was automatically updated to reflect the committed changes.