Support bulk edit of "points" for Maniphest tasks
Summary: Ref T13025. Fixes T10973. Fairly straightforward. The "points" type is just an alias for "text" today. Test Plan: Bulk edited points. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13025, T10973 Differential Revision: https://secure.phabricator.com/D18889
This commit is contained in:
parent
d9b6513a21
commit
a9d7b4f0ff
|
@ -223,6 +223,7 @@ phutil_register_library_map(array(
|
||||||
'AuditQueryConduitAPIMethod' => 'applications/audit/conduit/AuditQueryConduitAPIMethod.php',
|
'AuditQueryConduitAPIMethod' => 'applications/audit/conduit/AuditQueryConduitAPIMethod.php',
|
||||||
'AuthManageProvidersCapability' => 'applications/auth/capability/AuthManageProvidersCapability.php',
|
'AuthManageProvidersCapability' => 'applications/auth/capability/AuthManageProvidersCapability.php',
|
||||||
'BulkParameterType' => 'applications/transactions/bulk/type/BulkParameterType.php',
|
'BulkParameterType' => 'applications/transactions/bulk/type/BulkParameterType.php',
|
||||||
|
'BulkPointsParameterType' => 'applications/transactions/bulk/type/BulkPointsParameterType.php',
|
||||||
'BulkRemarkupParameterType' => 'applications/transactions/bulk/type/BulkRemarkupParameterType.php',
|
'BulkRemarkupParameterType' => 'applications/transactions/bulk/type/BulkRemarkupParameterType.php',
|
||||||
'BulkSelectParameterType' => 'applications/transactions/bulk/type/BulkSelectParameterType.php',
|
'BulkSelectParameterType' => 'applications/transactions/bulk/type/BulkSelectParameterType.php',
|
||||||
'BulkStringParameterType' => 'applications/transactions/bulk/type/BulkStringParameterType.php',
|
'BulkStringParameterType' => 'applications/transactions/bulk/type/BulkStringParameterType.php',
|
||||||
|
@ -5252,6 +5253,7 @@ phutil_register_library_map(array(
|
||||||
'AuditQueryConduitAPIMethod' => 'AuditConduitAPIMethod',
|
'AuditQueryConduitAPIMethod' => 'AuditConduitAPIMethod',
|
||||||
'AuthManageProvidersCapability' => 'PhabricatorPolicyCapability',
|
'AuthManageProvidersCapability' => 'PhabricatorPolicyCapability',
|
||||||
'BulkParameterType' => 'Phobject',
|
'BulkParameterType' => 'Phobject',
|
||||||
|
'BulkPointsParameterType' => 'BulkParameterType',
|
||||||
'BulkRemarkupParameterType' => 'BulkParameterType',
|
'BulkRemarkupParameterType' => 'BulkParameterType',
|
||||||
'BulkSelectParameterType' => 'BulkParameterType',
|
'BulkSelectParameterType' => 'BulkParameterType',
|
||||||
'BulkStringParameterType' => 'BulkParameterType',
|
'BulkStringParameterType' => 'BulkParameterType',
|
||||||
|
|
|
@ -234,6 +234,7 @@ EODOCS
|
||||||
$fields[] = id(new PhabricatorPointsEditField())
|
$fields[] = id(new PhabricatorPointsEditField())
|
||||||
->setKey('points')
|
->setKey('points')
|
||||||
->setLabel($points_label)
|
->setLabel($points_label)
|
||||||
|
->setBulkEditLabel($action_label)
|
||||||
->setDescription(pht('Point value of the task.'))
|
->setDescription(pht('Point value of the task.'))
|
||||||
->setConduitDescription(pht('Change the task point value.'))
|
->setConduitDescription(pht('Change the task point value.'))
|
||||||
->setConduitTypeDescription(pht('New task point value.'))
|
->setConduitTypeDescription(pht('New task point value.'))
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
final class BulkPointsParameterType
|
||||||
|
extends BulkParameterType {
|
||||||
|
|
||||||
|
public function getPHUIXControlType() {
|
||||||
|
return 'points';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -14,4 +14,9 @@ final class PhabricatorPointsEditField
|
||||||
protected function newCommentAction() {
|
protected function newCommentAction() {
|
||||||
return id(new PhabricatorEditEnginePointsCommentAction());
|
return id(new PhabricatorEditEnginePointsCommentAction());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function newBulkParameterType() {
|
||||||
|
return new BulkPointsParameterType();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue