mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 12:30:56 +01:00
Remove leftover code for "postponed" lint and unit status
Summary: Ref T9134. It looks like this functionality was removed in D13848. Test Plan: Submitted a diff successfully. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin Maniphest Tasks: T9134 Differential Revision: https://secure.phabricator.com/D13869
This commit is contained in:
parent
fd189f14fb
commit
ff6ccd5f68
8 changed files with 17 additions and 42 deletions
|
@ -26,7 +26,6 @@ final class DifferentialCreateDiffConduitAPIMethod
|
|||
'okay',
|
||||
'warn',
|
||||
'fail',
|
||||
'postponed',
|
||||
));
|
||||
|
||||
return array(
|
||||
|
@ -95,9 +94,6 @@ final class DifferentialCreateDiffConduitAPIMethod
|
|||
case 'fail':
|
||||
$lint_status = DifferentialLintStatus::LINT_FAIL;
|
||||
break;
|
||||
case 'postponed':
|
||||
$lint_status = DifferentialLintStatus::LINT_POSTPONED;
|
||||
break;
|
||||
case 'none':
|
||||
default:
|
||||
$lint_status = DifferentialLintStatus::LINT_NONE;
|
||||
|
@ -117,9 +113,6 @@ final class DifferentialCreateDiffConduitAPIMethod
|
|||
case 'fail':
|
||||
$unit_status = DifferentialUnitStatus::UNIT_FAIL;
|
||||
break;
|
||||
case 'postponed':
|
||||
$unit_status = DifferentialUnitStatus::UNIT_POSTPONED;
|
||||
break;
|
||||
case 'none':
|
||||
default:
|
||||
$unit_status = DifferentialUnitStatus::UNIT_NONE;
|
||||
|
|
|
@ -7,7 +7,6 @@ final class DifferentialLintStatus extends Phobject {
|
|||
const LINT_WARN = 2;
|
||||
const LINT_FAIL = 3;
|
||||
const LINT_SKIP = 4;
|
||||
const LINT_POSTPONED = 5;
|
||||
const LINT_AUTO_SKIP = 6;
|
||||
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ final class DifferentialUnitStatus extends Phobject {
|
|||
const UNIT_WARN = 2;
|
||||
const UNIT_FAIL = 3;
|
||||
const UNIT_SKIP = 4;
|
||||
const UNIT_POSTPONED = 5;
|
||||
const UNIT_AUTO_SKIP = 6;
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,5 @@ final class DifferentialUnitTestResult extends Phobject {
|
|||
const RESULT_SKIP = 'skip';
|
||||
const RESULT_BROKEN = 'broken';
|
||||
const RESULT_UNSOUND = 'unsound';
|
||||
const RESULT_POSTPONED = 'postponed';
|
||||
|
||||
}
|
||||
|
|
|
@ -73,9 +73,6 @@ final class DifferentialLintField
|
|||
if ($status == DifferentialLintStatus::LINT_SKIP) {
|
||||
$warnings[] = pht(
|
||||
'Lint was skipped when generating these changes.');
|
||||
} else if ($status == DifferentialLintStatus::LINT_POSTPONED) {
|
||||
$warnings[] = pht(
|
||||
'Background linting has not finished executing on these changes.');
|
||||
} else {
|
||||
$warnings[] = pht('These changes have lint problems.');
|
||||
}
|
||||
|
@ -94,7 +91,6 @@ final class DifferentialLintField
|
|||
DifferentialLintStatus::LINT_FAIL => 'red',
|
||||
DifferentialLintStatus::LINT_SKIP => 'blue',
|
||||
DifferentialLintStatus::LINT_AUTO_SKIP => 'blue',
|
||||
DifferentialLintStatus::LINT_POSTPONED => 'blue',
|
||||
);
|
||||
$icon_color = idx($colors, $diff->getLintStatus(), 'grey');
|
||||
|
||||
|
|
|
@ -84,9 +84,6 @@ final class DifferentialUnitField
|
|||
// Don't show any warnings.
|
||||
} else if ($status == DifferentialUnitStatus::UNIT_AUTO_SKIP) {
|
||||
// Don't show any warnings.
|
||||
} else if ($status == DifferentialUnitStatus::UNIT_POSTPONED) {
|
||||
$warnings[] = pht(
|
||||
'Background tests have not finished executing on these changes.');
|
||||
} else if ($status == DifferentialUnitStatus::UNIT_SKIP) {
|
||||
$warnings[] = pht(
|
||||
'Unit tests were skipped when generating these changes.');
|
||||
|
@ -108,7 +105,6 @@ final class DifferentialUnitField
|
|||
DifferentialUnitStatus::UNIT_FAIL => 'red',
|
||||
DifferentialUnitStatus::UNIT_SKIP => 'blue',
|
||||
DifferentialUnitStatus::UNIT_AUTO_SKIP => 'blue',
|
||||
DifferentialUnitStatus::UNIT_POSTPONED => 'blue',
|
||||
);
|
||||
$icon_color = idx($colors, $diff->getUnitStatus(), 'grey');
|
||||
|
||||
|
|
|
@ -323,7 +323,6 @@ final class DifferentialRevisionUpdateHistoryView extends AphrontView {
|
|||
DifferentialLintStatus::LINT_FAIL => self::STAR_FAIL,
|
||||
DifferentialLintStatus::LINT_SKIP => self::STAR_SKIP,
|
||||
DifferentialLintStatus::LINT_AUTO_SKIP => self::STAR_SKIP,
|
||||
DifferentialLintStatus::LINT_POSTPONED => self::STAR_SKIP,
|
||||
);
|
||||
|
||||
$star = idx($map, $diff->getLintStatus(), self::STAR_FAIL);
|
||||
|
@ -339,7 +338,6 @@ final class DifferentialRevisionUpdateHistoryView extends AphrontView {
|
|||
DifferentialUnitStatus::UNIT_FAIL => self::STAR_FAIL,
|
||||
DifferentialUnitStatus::UNIT_SKIP => self::STAR_SKIP,
|
||||
DifferentialUnitStatus::UNIT_AUTO_SKIP => self::STAR_SKIP,
|
||||
DifferentialUnitStatus::UNIT_POSTPONED => self::STAR_SKIP,
|
||||
);
|
||||
|
||||
$star = idx($map, $diff->getUnitStatus(), self::STAR_FAIL);
|
||||
|
@ -361,8 +359,6 @@ final class DifferentialRevisionUpdateHistoryView extends AphrontView {
|
|||
return pht('Lint Skipped');
|
||||
case DifferentialLintStatus::LINT_AUTO_SKIP:
|
||||
return pht('Automatic diff as part of commit; lint not applicable.');
|
||||
case DifferentialLintStatus::LINT_POSTPONED:
|
||||
return pht('Lint Postponed');
|
||||
}
|
||||
return pht('Unknown');
|
||||
}
|
||||
|
@ -382,8 +378,6 @@ final class DifferentialRevisionUpdateHistoryView extends AphrontView {
|
|||
case DifferentialUnitStatus::UNIT_AUTO_SKIP:
|
||||
return pht(
|
||||
'Automatic diff as part of commit; unit tests not applicable.');
|
||||
case DifferentialUnitStatus::UNIT_POSTPONED:
|
||||
return pht('Unit Tests Postponed');
|
||||
}
|
||||
return pht('Unknown');
|
||||
}
|
||||
|
|
|
@ -88,7 +88,6 @@ final class HarbormasterUnitPropertyView extends AphrontView {
|
|||
ArcanistUnitTestResult::RESULT_FAIL => pht('Failed'),
|
||||
ArcanistUnitTestResult::RESULT_UNSOUND => pht('Unsound'),
|
||||
ArcanistUnitTestResult::RESULT_SKIP => pht('Skipped'),
|
||||
ArcanistUnitTestResult::RESULT_POSTPONED => pht('Postponed'),
|
||||
ArcanistUnitTestResult::RESULT_PASS => pht('Passed'),
|
||||
);
|
||||
$result = idx($names, $result, $result);
|
||||
|
|
Loading…
Reference in a new issue