mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-02 11:42:42 +01:00
a635da68d4
Summary: Fixes T9430. Fixes T9362. Fixes T9544. This changes the default view of Audit to work like Differential, where commits you need to audit or respond to are shown in buckets. This is a bit messy and probably needs some followups. This stuff has changed from a compatibility viewpoint: - The query works differently now (but in a better, modern way), so existing saved queries will need to be updated. - I've removed the counters from the home page instead of updating them, since they're going to get wiped out by ProfileMenu soon anyway. - When bucketed queries return too many results (more than 1,000) we now show a warning about it. This isn't greaaaat but it seems good enough for now. Test Plan: {F2351123} Reviewers: chad Reviewed By: chad Maniphest Tasks: T9430, T9362, T9544 Differential Revision: https://secure.phabricator.com/D17192
37 lines
758 B
PHP
37 lines
758 B
PHP
<?php
|
|
|
|
final class PhabricatorAuditApplication extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/diffusion/commit/';
|
|
}
|
|
|
|
public function getIcon() {
|
|
return 'fa-check-circle-o';
|
|
}
|
|
|
|
public function getName() {
|
|
return pht('Audit');
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Browse and Audit Commits');
|
|
}
|
|
|
|
public function canUninstall() {
|
|
// Audit was once a separate application, but has largely merged with
|
|
// Diffusion.
|
|
return false;
|
|
}
|
|
|
|
public function isPinnedByDefault(PhabricatorUser $viewer) {
|
|
return parent::isClassInstalledForViewer(
|
|
'PhabricatorDiffusionApplication',
|
|
$viewer);
|
|
}
|
|
|
|
public function getApplicationOrder() {
|
|
return 0.130;
|
|
}
|
|
|
|
}
|