1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-12 08:36:13 +01:00
phorge-phorge/src/applications/project/engineextension
epriestley 47856dc93f Track how many columns use a particular trigger
Summary:
Ref T5474. In 99% of cases, a separate "archived/active" status for triggers probably doesn't make much sense: there's not much reason to ever disable/archive a trigger explcitly, and the archival rule is really just "is this trigger used by anything?".

(The one reason I can think of to disable a trigger manually is because you want to put something in a column and skip trigger rules, but you can already do this from the task detail page anyway, and disabling the trigger globally is a bad way to accomplish this if it's in use by other columns.)

Instead of adding a separate "status", just track how many columns a trigger is used by and consider it "inactive" if it is not used by any active columns.

Test Plan: This is slightly hard to test exhaustively since you can't share a trigger across multiple columns right now, but: rebuild indexes, poked around the trigger list and trigger details, added/removed triggers.

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T5474

Differential Revision: https://secure.phabricator.com/D20308
2019-03-25 14:04:55 -07:00
..
PhabricatorBoardColumnsSearchEngineAttachment.php Add a "columns" attachment to the maniphest.search API method 2017-01-08 13:18:01 -08:00
PhabricatorProjectHovercardEngineExtension.php New People Hovercards 2016-02-11 15:41:55 -08:00
PhabricatorProjectsAncestorsSearchEngineAttachment.php Add "parent" and "ancestor" information to the project.search API 2017-01-08 13:14:19 -08:00
PhabricatorProjectsCurtainExtension.php Change "Projects" to "Tags" for curtain extension 2016-04-01 07:20:32 -07:00
PhabricatorProjectsEditEngineExtension.php Restore "Tags" and "Subscribers" edit capabilities to Maniphest bulk editor 2018-01-19 12:47:10 -08:00
PhabricatorProjectsFulltextEngineExtension.php Separate fulltext engine extensions into "enrich" and "index" phases 2017-09-01 09:40:11 -07:00
PhabricatorProjectsMailEngineExtension.php Add more mail stamps: tasks, subscribers, projects, spaces 2018-02-06 04:05:46 -08:00
PhabricatorProjectsMembershipIndexEngineExtension.php Index Project milestones to accurately reflect milestone membership 2017-05-26 13:10:41 -07:00
PhabricatorProjectsMembersSearchEngineAttachment.php Add more information (colors, members, watchers) to project.search 2016-01-24 10:02:05 -08:00
PhabricatorProjectsSearchEngineAttachment.php Add a "projects" Search attachment for Conduit APIs 2015-12-14 11:53:17 -08:00
PhabricatorProjectsSearchEngineExtension.php Use "tag" more consistenty when referring to associating a project with an object 2016-01-24 10:02:42 -08:00
PhabricatorProjectsWatchersSearchEngineAttachment.php Add more information (colors, members, watchers) to project.search 2016-01-24 10:02:05 -08:00
PhabricatorProjectTriggerUsageIndexEngineExtension.php Track how many columns use a particular trigger 2019-03-25 14:04:55 -07:00
ProjectDatasourceEngineExtension.php Modularize the "jump nav" behaviors in global search 2018-02-14 18:08:07 -08:00