Created herald.queryrules Conduit API method to search Herald rules.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Maniphest Tasks
- T7651: Create herald.queryrules conduit API method
Open yourphabricator.com/conduit/method/herald.queryrules/ and perform search with different parameters.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Branch
- herald_queryrules
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 4955 Build 4973: [Placeholder Plan] Wait for 30 Seconds
Event Timeline
Comment Actions
protected function buildConditionsInfoDictionaries(array $conditions) { assert_instances_of($conditions, 'HeraldCondition'); $result = array(); if (!empty($conditions)) { foreach ($conditions as $cond) { $result[$cond->getID()] = array( 'id' => $cond->getID(), 'fieldName' => $cond->getFieldName(), 'fieldCondition' => $cond->getFieldCondition(), 'value' => $cond->getValue(), ); } } return $result; } protected function buildActionsInfoDictionaries(array $actions) { assert_instances_of($actions, 'HeraldAction'); $result = array(); if (!empty($actions)) { foreach ($actions as $action) { $result[$action->getID()] = array( 'id' => $action->getID(), 'action' => $action->getAction(), 'target' => $action->getTarget(), ); } } return $result; }
}