mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 19:22:42 +01:00
"Blocks" instead of "Dependent Tasks"
Summary: Fixes T5021, UI labels for the fields, "Edit Dependencies" in the action list, transaction strings ("added dependent tasks", etc), UI strings in the dependencies dialog (title/submit/etc) Test Plan: Open task, edit blocks, dialog should have new term, task history should show "blocks" instead of "dependencies" Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Maniphest Tasks: T5021 Differential Revision: https://secure.phabricator.com/D9270
This commit is contained in:
parent
5a8a32b7c5
commit
6a80b6a588
4 changed files with 45 additions and 8 deletions
|
@ -470,8 +470,8 @@ final class ManiphestTaskDetailController extends ManiphestController {
|
||||||
|
|
||||||
$view->addAction(
|
$view->addAction(
|
||||||
id(new PhabricatorActionView())
|
id(new PhabricatorActionView())
|
||||||
->setName(pht('Edit Dependencies'))
|
->setName(pht('Edit Blocking Tasks'))
|
||||||
->setHref("/search/attach/{$phid}/TASK/dependencies/")
|
->setHref("/search/attach/{$phid}/TASK/blocks/")
|
||||||
->setWorkflow(true)
|
->setWorkflow(true)
|
||||||
->setIcon('fa-link')
|
->setIcon('fa-link')
|
||||||
->setDisabled(!$can_edit)
|
->setDisabled(!$can_edit)
|
||||||
|
@ -593,9 +593,9 @@ final class ManiphestTaskDetailController extends ManiphestController {
|
||||||
|
|
||||||
$edge_types = array(
|
$edge_types = array(
|
||||||
PhabricatorEdgeConfig::TYPE_TASK_DEPENDED_ON_BY_TASK
|
PhabricatorEdgeConfig::TYPE_TASK_DEPENDED_ON_BY_TASK
|
||||||
=> pht('Dependent Tasks'),
|
=> pht('Blocking Tasks'),
|
||||||
PhabricatorEdgeConfig::TYPE_TASK_DEPENDS_ON_TASK
|
PhabricatorEdgeConfig::TYPE_TASK_DEPENDS_ON_TASK
|
||||||
=> pht('Depends On'),
|
=> pht('Blocked By'),
|
||||||
PhabricatorEdgeConfig::TYPE_TASK_HAS_RELATED_DREV
|
PhabricatorEdgeConfig::TYPE_TASK_HAS_RELATED_DREV
|
||||||
=> pht('Differential Revisions'),
|
=> pht('Differential Revisions'),
|
||||||
PhabricatorEdgeConfig::TYPE_TASK_HAS_MOCK
|
PhabricatorEdgeConfig::TYPE_TASK_HAS_MOCK
|
||||||
|
|
|
@ -13,6 +13,7 @@ final class PhabricatorSearchAttachController
|
||||||
const ACTION_ATTACH = 'attach';
|
const ACTION_ATTACH = 'attach';
|
||||||
const ACTION_MERGE = 'merge';
|
const ACTION_MERGE = 'merge';
|
||||||
const ACTION_DEPENDENCIES = 'dependencies';
|
const ACTION_DEPENDENCIES = 'dependencies';
|
||||||
|
const ACTION_BLOCKS = 'blocks';
|
||||||
const ACTION_EDGE = 'edge';
|
const ACTION_EDGE = 'edge';
|
||||||
|
|
||||||
public function willProcessRequest(array $data) {
|
public function willProcessRequest(array $data) {
|
||||||
|
@ -47,6 +48,7 @@ final class PhabricatorSearchAttachController
|
||||||
switch ($this->action) {
|
switch ($this->action) {
|
||||||
case self::ACTION_EDGE:
|
case self::ACTION_EDGE:
|
||||||
case self::ACTION_DEPENDENCIES:
|
case self::ACTION_DEPENDENCIES:
|
||||||
|
case self::ACTION_BLOCKS:
|
||||||
case self::ACTION_ATTACH:
|
case self::ACTION_ATTACH:
|
||||||
$edge_type = $this->getEdgeType($object_type, $attach_type);
|
$edge_type = $this->getEdgeType($object_type, $attach_type);
|
||||||
break;
|
break;
|
||||||
|
@ -260,6 +262,12 @@ final class PhabricatorSearchAttachController
|
||||||
$button_text = "Save Dependencies";
|
$button_text = "Save Dependencies";
|
||||||
$instructions = null;
|
$instructions = null;
|
||||||
break;
|
break;
|
||||||
|
case self::ACTION_BLOCKS:
|
||||||
|
$dialog_title = pht('Edit Blocking Tasks');
|
||||||
|
$header_text = pht('Current Blocking Tasks');
|
||||||
|
$button_text = pht('Save Blocking Tasks');
|
||||||
|
$instructions = null;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
|
|
|
@ -292,10 +292,11 @@ final class PhabricatorEdgeConfig extends PhabricatorEdgeConstants {
|
||||||
case self::TYPE_DREV_HAS_COMMIT:
|
case self::TYPE_DREV_HAS_COMMIT:
|
||||||
return '%s added %d commit(s): %s.';
|
return '%s added %d commit(s): %s.';
|
||||||
case self::TYPE_TASK_DEPENDS_ON_TASK:
|
case self::TYPE_TASK_DEPENDS_ON_TASK:
|
||||||
|
return '%s added %d blocking task(s): %s.';
|
||||||
case self::TYPE_DREV_DEPENDS_ON_DREV:
|
case self::TYPE_DREV_DEPENDS_ON_DREV:
|
||||||
return '%s added %d dependencie(s): %s.';
|
return '%s added %d dependencie(s): %s.';
|
||||||
case self::TYPE_TASK_DEPENDED_ON_BY_TASK:
|
case self::TYPE_TASK_DEPENDED_ON_BY_TASK:
|
||||||
return '%s added %d dependent task(s): %s.';
|
return '%s added %d blocked task(s): %s.';
|
||||||
case self::TYPE_COMMIT_HAS_TASK:
|
case self::TYPE_COMMIT_HAS_TASK:
|
||||||
case self::TYPE_DREV_HAS_RELATED_TASK:
|
case self::TYPE_DREV_HAS_RELATED_TASK:
|
||||||
case self::TYPE_MOCK_HAS_TASK:
|
case self::TYPE_MOCK_HAS_TASK:
|
||||||
|
@ -369,9 +370,9 @@ final class PhabricatorEdgeConfig extends PhabricatorEdgeConstants {
|
||||||
case self::TYPE_DREV_HAS_COMMIT:
|
case self::TYPE_DREV_HAS_COMMIT:
|
||||||
return '%s removed %d commit(s): %s.';
|
return '%s removed %d commit(s): %s.';
|
||||||
case self::TYPE_TASK_DEPENDS_ON_TASK:
|
case self::TYPE_TASK_DEPENDS_ON_TASK:
|
||||||
return '%s removed %d dependencie(s): %s.';
|
return '%s removed %d blocking task(s): %s.';
|
||||||
case self::TYPE_TASK_DEPENDED_ON_BY_TASK:
|
case self::TYPE_TASK_DEPENDED_ON_BY_TASK:
|
||||||
return '%s removed %d dependent task(s): %s.';
|
return '%s removed %d blocked task(s): %s.';
|
||||||
case self::TYPE_COMMIT_HAS_TASK:
|
case self::TYPE_COMMIT_HAS_TASK:
|
||||||
case self::TYPE_DREV_HAS_RELATED_TASK:
|
case self::TYPE_DREV_HAS_RELATED_TASK:
|
||||||
case self::TYPE_MOCK_HAS_TASK:
|
case self::TYPE_MOCK_HAS_TASK:
|
||||||
|
|
|
@ -354,12 +354,40 @@ abstract class PhabricatorBaseEnglishTranslation
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
'%s added %d blocking task(s): %s.' => array(
|
||||||
|
array(
|
||||||
|
'%s added a blocking task: %3$s.',
|
||||||
|
'%s added blocking tasks: %3$s.'
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
'%s added %d blocked task(s): %s.' => array(
|
||||||
|
array(
|
||||||
|
'%s added a blocked task: %3$s.',
|
||||||
|
'%s added blocked tasks: %3$s.'
|
||||||
|
)
|
||||||
|
),
|
||||||
|
|
||||||
|
'%s removed %d blocking task(s): %s.' => array(
|
||||||
|
array(
|
||||||
|
'%s removed a blocking task: %3$s.',
|
||||||
|
'%s removed blocking tasks: %3$s.'
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
'%s removed %d blocked task(s): %s.' => array(
|
||||||
|
array(
|
||||||
|
'%s removed a blocked task: %3$s.',
|
||||||
|
'%s removed blocked tasks: %3$s.'
|
||||||
|
)
|
||||||
|
),
|
||||||
|
|
||||||
'%s edited answer(s), added %d: %s; removed %d: %s.' =>
|
'%s edited answer(s), added %d: %s; removed %d: %s.' =>
|
||||||
'%s edited answers, added: %3$s; removed: %5$s',
|
'%s edited answers, added: %3$s; removed: %5$s',
|
||||||
|
|
||||||
'%s added %d answer(s): %s.' => array(
|
'%s added %d answer(s): %s.' => array(
|
||||||
array(
|
array(
|
||||||
'%s added a answer: %3$s.',
|
'%s added an answer: %3$s.',
|
||||||
'%s added answers: %3$s.',
|
'%s added answers: %3$s.',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue