Page MenuHomePhorge

D25602.1734709739.diff
No OneTemporary

D25602.1734709739.diff

diff --git a/src/applications/maniphest/controller/ManiphestReportController.php b/src/applications/maniphest/controller/ManiphestReportController.php
--- a/src/applications/maniphest/controller/ManiphestReportController.php
+++ b/src/applications/maniphest/controller/ManiphestReportController.php
@@ -487,6 +487,12 @@
);
}
+ private function getAveragePriority() {
+ // TODO: This is sort of a hard-code for the default "normal" status.
+ // When reports are more powerful, this should be made more general.
+ return 50;
+ }
+
public function renderOpenTasks() {
$request = $this->getRequest();
$viewer = $request->getUser();
@@ -626,9 +632,7 @@
$normal_or_better = array();
foreach ($taskv as $id => $task) {
- // TODO: This is sort of a hard-code for the default "normal" status.
- // When reports are more powerful, this should be made more general.
- if ($task->getPriority() < 50) {
+ if ($task->getPriority() < $this->getAveragePriority()) {
continue;
}
$normal_or_better[$id] = $task;
@@ -700,13 +704,22 @@
),
pht('Oldest (All)'));
$cclass[] = 'n';
+ $low_priorities = array();
+ $priorities_map = ManiphestTaskPriority::getTaskPriorityMap();
+ $normal_priority = $this->getAveragePriority();
+ foreach ($priorities_map as $pri => $full_label) {
+ if ($pri < $normal_priority) {
+ $low_priorities[] = $full_label;
+ }
+ }
+ $pri_string = implode(', ', $low_priorities);
$cname[] = javelin_tag(
'span',
array(
'sigil' => 'has-tooltip',
'meta' => array(
'tip' => pht(
- 'Oldest open task, excluding those with Low or Wishlist priority.'),
+ 'Oldest open task, excluding those with priority %s', $pri_string),
'size' => 200,
),
),

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 15:48 (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1019032
Default Alt Text
D25602.1734709739.diff (1 KB)

Event Timeline