* updated field added to the jira query

* DÖNER is now sorted by modification time in reverse
* wip limit and current status in the headers
This commit is contained in:
Dávid Danyi
2017-09-01 11:44:51 +02:00
parent 6ecc186a9f
commit 88527e4ff1
4 changed files with 40 additions and 1 deletions

View File

@@ -228,6 +228,18 @@ class KanbanBoard implements \JsonSerializable
return $toSort;
}
/**
* @param KanbanEntry[] $toSort
* @return KanbanEntry[]
*/
private function updatedAtReverseSort(array $toSort): array
{
usort($toSort, function(KanbanEntry $a, KanbanEntry $b){
return $b->getUpdatedAt() <=> $a->getUpdatedAt();
});
return $toSort;
}
/**
* @return array
*/
@@ -237,7 +249,7 @@ class KanbanBoard implements \JsonSerializable
'inbox' => $this->prioSort($this->inbox->getValues()),
'inProgress' => $this->prioSort($this->inProgress->getValues()),
'verification' => $this->prioSort($this->verification->getValues()),
'done' => $this->prioSort($this->done->getValues()),
'done' => $this->updatedAtReverseSort($this->done->getValues()),
];
}
}