* 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:
@@ -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()),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user