Page MenuHomePhabricator

T4666, Support Herald in Phriction
ClosedPublic

Authored by lpriestley on Nov 11 2014, 7:28 PM.
Tags
None
Referenced Files
F13092378: D10830.diff
Thu, Apr 25, 3:42 AM
Unknown Object (File)
Sun, Apr 14, 11:55 PM
Unknown Object (File)
Fri, Apr 12, 8:19 AM
Unknown Object (File)
Mon, Apr 1, 6:57 PM
Unknown Object (File)
Feb 10 2024, 8:29 AM
Unknown Object (File)
Jan 31 2024, 4:55 PM
Unknown Object (File)
Jan 25 2024, 5:10 AM
Unknown Object (File)
Jan 25 2024, 5:10 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.