Page MenuHomePhabricator

T5015, Allow Herald rules for Maniphest to act on task status changes
ClosedPublic

Authored by lpriestley on Nov 12 2014, 8:17 PM.
Tags
None
Referenced Files
F14087440: D10842.id26028.diff
Sat, Nov 23, 9:47 PM
Unknown Object (File)
Oct 24 2024, 12:06 AM
Unknown Object (File)
Oct 23 2024, 9:50 PM
Unknown Object (File)
Oct 15 2024, 12:43 PM
Unknown Object (File)
Oct 7 2024, 9:44 PM
Unknown Object (File)
Oct 7 2024, 9:44 PM
Unknown Object (File)
Oct 7 2024, 9:43 PM
Unknown Object (File)
Oct 7 2024, 9:31 PM
Subscribers
Tokens
"Mountain of Wealth" token, awarded by GMTA."Pterodactyl" token, awarded by chad."Grey Medal" token, awarded by btrahan.

Details

Summary

Fixes T5015, Allow Herald rules for Maniphest to act on task status changes.

Test Plan

Create Herald rule for Maniphest tasks to flag a task with status "wontfix". Change status of Maniphest task to "wontfix". Task should be flagged.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lpriestley retitled this revision from to T5015, Allow Herald rules for Maniphest to act on task status changes.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.
epriestley edited edge metadata.

This looks great. Issues I caught:

  • Fix trailing whitespace lint error (it should have autofixed in lint? Maybe we don't autofix that?)
  • Remove src/applications/maniphest/.DS_Store. This is an artifact created by Mac OS X. Ideally, you should set up a global .gitignore file and add .DS_Store to it, so it's ignored in all projects. GitHub has some instructions here: https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
  • I forgot to mention this, but when modifying an existing adapter or rule, you should bump the version number in HeraldRule (the $configVersion property). This makes sure old versions of the code (for example, running in the daemons) don't try to execute rules with the new stuff (since they won't know how to handle it). Basically makes sure this produces a sane error ("Can't execute a newer version of this rule!") instead of a confusing mess.
This revision now requires changes to proceed.Nov 12 2014, 8:24 PM
lpriestley edited edge metadata.

Bumping Herald Rule configVersion, removing DS_Store, removing trailing whitespace.

This revision is now accepted and ready to land.Nov 12 2014, 8:53 PM
This revision was automatically updated to reflect the committed changes.