Page MenuHomePhabricator

T4666, Support Herald in Phriction
ClosedPublic

Authored by lpriestley on Nov 11 2014, 7:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 12:19 AM
Unknown Object (File)
Mon, Nov 18, 2:50 PM
Unknown Object (File)
Wed, Nov 13, 10:45 AM
Unknown Object (File)
Sun, Nov 10, 7:46 AM
Unknown Object (File)
Wed, Nov 6, 10:08 AM
Unknown Object (File)
Oct 19 2024, 9:58 AM
Unknown Object (File)
Oct 18 2024, 1:45 AM
Unknown Object (File)
Oct 11 2024, 2:29 PM
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 3012
Build 3016: [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
14

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).

65

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

77

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.

96–98

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.

111

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
111

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.