Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15345354
D9270.id22022.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
5 KB
Referenced Files
None
Subscribers
None
D9270.id22022.diff
View Options
diff --git a/src/applications/maniphest/controller/ManiphestTaskDetailController.php b/src/applications/maniphest/controller/ManiphestTaskDetailController.php
--- a/src/applications/maniphest/controller/ManiphestTaskDetailController.php
+++ b/src/applications/maniphest/controller/ManiphestTaskDetailController.php
@@ -470,8 +470,8 @@
$view->addAction(
id(new PhabricatorActionView())
- ->setName(pht('Edit Dependencies'))
- ->setHref("/search/attach/{$phid}/TASK/dependencies/")
+ ->setName(pht('Edit Blocking Tasks'))
+ ->setHref("/search/attach/{$phid}/TASK/blocks/")
->setWorkflow(true)
->setIcon('fa-link')
->setDisabled(!$can_edit)
@@ -593,9 +593,9 @@
$edge_types = array(
PhabricatorEdgeConfig::TYPE_TASK_DEPENDED_ON_BY_TASK
- => pht('Dependent Tasks'),
+ => pht('Blocking Tasks'),
PhabricatorEdgeConfig::TYPE_TASK_DEPENDS_ON_TASK
- => pht('Depends On'),
+ => pht('Blocked By'),
PhabricatorEdgeConfig::TYPE_TASK_HAS_RELATED_DREV
=> pht('Differential Revisions'),
PhabricatorEdgeConfig::TYPE_TASK_HAS_MOCK
diff --git a/src/applications/search/controller/PhabricatorSearchAttachController.php b/src/applications/search/controller/PhabricatorSearchAttachController.php
--- a/src/applications/search/controller/PhabricatorSearchAttachController.php
+++ b/src/applications/search/controller/PhabricatorSearchAttachController.php
@@ -13,6 +13,7 @@
const ACTION_ATTACH = 'attach';
const ACTION_MERGE = 'merge';
const ACTION_DEPENDENCIES = 'dependencies';
+ const ACTION_BLOCKS = 'blocks';
const ACTION_EDGE = 'edge';
public function willProcessRequest(array $data) {
@@ -47,6 +48,7 @@
switch ($this->action) {
case self::ACTION_EDGE:
case self::ACTION_DEPENDENCIES:
+ case self::ACTION_BLOCKS:
case self::ACTION_ATTACH:
$edge_type = $this->getEdgeType($object_type, $attach_type);
break;
@@ -260,6 +262,12 @@
$button_text = "Save Dependencies";
$instructions = null;
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(
diff --git a/src/infrastructure/edges/constants/PhabricatorEdgeConfig.php b/src/infrastructure/edges/constants/PhabricatorEdgeConfig.php
--- a/src/infrastructure/edges/constants/PhabricatorEdgeConfig.php
+++ b/src/infrastructure/edges/constants/PhabricatorEdgeConfig.php
@@ -292,10 +292,11 @@
case self::TYPE_DREV_HAS_COMMIT:
return '%s added %d commit(s): %s.';
case self::TYPE_TASK_DEPENDS_ON_TASK:
+ return '%s added %d blocking task(s): %s.';
case self::TYPE_DREV_DEPENDS_ON_DREV:
return '%s added %d dependencie(s): %s.';
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_DREV_HAS_RELATED_TASK:
case self::TYPE_MOCK_HAS_TASK:
@@ -369,9 +370,9 @@
case self::TYPE_DREV_HAS_COMMIT:
return '%s removed %d commit(s): %s.';
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:
- 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_DREV_HAS_RELATED_TASK:
case self::TYPE_MOCK_HAS_TASK:
diff --git a/src/infrastructure/internationalization/translation/PhabricatorBaseEnglishTranslation.php b/src/infrastructure/internationalization/translation/PhabricatorBaseEnglishTranslation.php
--- a/src/infrastructure/internationalization/translation/PhabricatorBaseEnglishTranslation.php
+++ b/src/infrastructure/internationalization/translation/PhabricatorBaseEnglishTranslation.php
@@ -354,12 +354,40 @@
),
),
+ '%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 answers, added: %3$s; removed: %5$s',
'%s added %d answer(s): %s.' => array(
array(
- '%s added a answer: %3$s.',
+ '%s added an answer: %3$s.',
'%s added answers: %3$s.',
),
),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 11, 10:03 AM (16 h, 29 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7387428
Default Alt Text
D9270.id22022.diff (5 KB)
Attached To
Mode
D9270: "Blocks" instead of "Dependent Tasks"
Attached
Detach File
Event Timeline
Log In to Comment