mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +01:00
Remove "Author" CustomField in Differential
Summary: Ref T11114. This hasn't done anything since we moved author information to the subheader. Test Plan: Browsed Differential, still saw author information. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11114 Differential Revision: https://secure.phabricator.com/D17071
This commit is contained in:
parent
914d9fa8b9
commit
74a0caf9ce
3 changed files with 0 additions and 41 deletions
|
@ -354,7 +354,6 @@ phutil_register_library_map(array(
|
||||||
'DifferentialAsanaRepresentationField' => 'applications/differential/customfield/DifferentialAsanaRepresentationField.php',
|
'DifferentialAsanaRepresentationField' => 'applications/differential/customfield/DifferentialAsanaRepresentationField.php',
|
||||||
'DifferentialAuditorsCommitMessageField' => 'applications/differential/field/DifferentialAuditorsCommitMessageField.php',
|
'DifferentialAuditorsCommitMessageField' => 'applications/differential/field/DifferentialAuditorsCommitMessageField.php',
|
||||||
'DifferentialAuditorsField' => 'applications/differential/customfield/DifferentialAuditorsField.php',
|
'DifferentialAuditorsField' => 'applications/differential/customfield/DifferentialAuditorsField.php',
|
||||||
'DifferentialAuthorField' => 'applications/differential/customfield/DifferentialAuthorField.php',
|
|
||||||
'DifferentialBlameRevisionCommitMessageField' => 'applications/differential/field/DifferentialBlameRevisionCommitMessageField.php',
|
'DifferentialBlameRevisionCommitMessageField' => 'applications/differential/field/DifferentialBlameRevisionCommitMessageField.php',
|
||||||
'DifferentialBlameRevisionField' => 'applications/differential/customfield/DifferentialBlameRevisionField.php',
|
'DifferentialBlameRevisionField' => 'applications/differential/customfield/DifferentialBlameRevisionField.php',
|
||||||
'DifferentialBlockHeraldAction' => 'applications/differential/herald/DifferentialBlockHeraldAction.php',
|
'DifferentialBlockHeraldAction' => 'applications/differential/herald/DifferentialBlockHeraldAction.php',
|
||||||
|
@ -4998,7 +4997,6 @@ phutil_register_library_map(array(
|
||||||
'DifferentialAsanaRepresentationField' => 'DifferentialCustomField',
|
'DifferentialAsanaRepresentationField' => 'DifferentialCustomField',
|
||||||
'DifferentialAuditorsCommitMessageField' => 'DifferentialCommitMessageCustomField',
|
'DifferentialAuditorsCommitMessageField' => 'DifferentialCommitMessageCustomField',
|
||||||
'DifferentialAuditorsField' => 'DifferentialStoredCustomField',
|
'DifferentialAuditorsField' => 'DifferentialStoredCustomField',
|
||||||
'DifferentialAuthorField' => 'DifferentialCustomField',
|
|
||||||
'DifferentialBlameRevisionCommitMessageField' => 'DifferentialCommitMessageCustomField',
|
'DifferentialBlameRevisionCommitMessageField' => 'DifferentialCommitMessageCustomField',
|
||||||
'DifferentialBlameRevisionField' => 'DifferentialStoredCustomField',
|
'DifferentialBlameRevisionField' => 'DifferentialStoredCustomField',
|
||||||
'DifferentialBlockHeraldAction' => 'HeraldAction',
|
'DifferentialBlockHeraldAction' => 'HeraldAction',
|
||||||
|
|
|
@ -30,7 +30,6 @@ final class PhabricatorDifferentialConfigOptions
|
||||||
new DifferentialTitleField(),
|
new DifferentialTitleField(),
|
||||||
new DifferentialSummaryField(),
|
new DifferentialSummaryField(),
|
||||||
new DifferentialTestPlanField(),
|
new DifferentialTestPlanField(),
|
||||||
new DifferentialAuthorField(),
|
|
||||||
new DifferentialReviewersField(),
|
new DifferentialReviewersField(),
|
||||||
new DifferentialProjectReviewersField(),
|
new DifferentialProjectReviewersField(),
|
||||||
new DifferentialReviewedByField(),
|
new DifferentialReviewedByField(),
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
final class DifferentialAuthorField
|
|
||||||
extends DifferentialCustomField {
|
|
||||||
|
|
||||||
public function getFieldKey() {
|
|
||||||
return 'differential:author';
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getFieldName() {
|
|
||||||
return pht('Author');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getFieldDescription() {
|
|
||||||
return pht('Stores the revision author.');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function canDisableField() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function shouldAppearInPropertyView() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function renderPropertyViewLabel() {
|
|
||||||
return $this->getFieldName();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getRequiredHandlePHIDsForPropertyView() {
|
|
||||||
return array($this->getObject()->getAuthorPHID());
|
|
||||||
}
|
|
||||||
|
|
||||||
public function renderPropertyViewValue(array $handles) {
|
|
||||||
return $handles[$this->getObject()->getAuthorPHID()]->renderHovercardLink();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in a new issue