perf: Only enrich with labels when no labels was prefetched
Signed-off-by: Carl Schwan <carl.schwan@nextclound.com>
This commit is contained in:
@@ -621,7 +621,9 @@ class BoardService {
|
|||||||
|
|
||||||
if ($fullDetails) {
|
if ($fullDetails) {
|
||||||
$this->enrichWithStacks($board);
|
$this->enrichWithStacks($board);
|
||||||
|
if ($board->getLabels() === null) {
|
||||||
$this->enrichWithLabels($board);
|
$this->enrichWithLabels($board);
|
||||||
|
}
|
||||||
$this->enrichWithUsers($board);
|
$this->enrichWithUsers($board);
|
||||||
$this->enrichWithBoardSettings($board);
|
$this->enrichWithBoardSettings($board);
|
||||||
$this->enrichWithActiveSessions($board);
|
$this->enrichWithActiveSessions($board);
|
||||||
|
|||||||
Reference in New Issue
Block a user