From b38fb38a229991dcdcacebf622dd6a2241b7d80d Mon Sep 17 00:00:00 2001 From: Jukka Jokiniva Date: Thu, 8 Jul 2021 09:48:25 +0300 Subject: Add integrating section to change dashboard Change-Id: I482a9fe69c6ca39ee35f005d3443913657e28cc5 Reviewed-by: Daniel Smith --- polygerrit-ui/app/utils/dashboard-util.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/polygerrit-ui/app/utils/dashboard-util.ts b/polygerrit-ui/app/utils/dashboard-util.ts index caff6039d0..940218ea87 100644 --- a/polygerrit-ui/app/utils/dashboard-util.ts +++ b/polygerrit-ui/app/utils/dashboard-util.ts @@ -78,13 +78,22 @@ const CCED: DashboardSection = { suffixForDashboard: 'limit:10', }; +const INTEGRATING: DashboardSection = { + name: 'Integrating', + query: + '(is:staged OR is:integrating) (-is:wip OR owner:self) ' + + '(owner:${user} OR reviewer:${user} OR assignee:${user} ' + + 'OR cc:${user})', + suffixForDashboard: 'limit:20', +}; + export const CLOSED: DashboardSection = { name: 'Recently closed', // Closed changes where viewed user is owner or reviewer. // WIP changes not owned by the viewing user (the one instance of // 'owner:self' is intentional and implements this logic) are filtered out. query: - 'is:closed (-is:wip OR owner:self) ' + + '(is:merged OR is:abandoned OR is:deferred) (-is:wip OR owner:self) ' + '(owner:${user} OR reviewer:${user} OR cc:${user})', suffixForDashboard: '-age:4w limit:10', }; @@ -96,6 +105,7 @@ const DEFAULT_SECTIONS: DashboardSection[] = [ OUTGOING, INCOMING, CCED, + INTEGRATING, CLOSED, ]; -- cgit v1.2.3