From a4e67c0702a38c189db87d7ad12ac8948046075d Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Tue, 4 May 2021 16:06:16 -0500 Subject: [PATCH] Update Cinder review dashboard The newer version of gerrit has a few changes in how queries work. There is now a limit of 10 queries, and topic regex needs to use intopic instead of topic for filtering. Signed-off-by: Sean McGinnis Change-Id: I653f56db979ffba83ef5f9d573189cb2f288d71b --- dashboards/cinder.dash | 32 ++++++++++-------------------- gerrit_dash_creator/cmd/creator.py | 2 +- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/dashboards/cinder.dash b/dashboards/cinder.dash index b574fe9..e464878 100644 --- a/dashboards/cinder.dash +++ b/dashboards/cinder.dash @@ -5,35 +5,25 @@ foreach = (project:openstack/cinder OR project:openstack/python-cinderclient OR project:openstack/os-brick OR project:openstack/cinderlib OR - project:openstack/python-brick-cinderclient-ext OR - project:openstack/cinder-specs) status:open - -[section "Cinder Specs"] -query = project:openstack/cinder-specs - -[section "Needs Final +2"] -query = label:Code-Review>=2 NOT label:Code-Review<=-2 NOT reviewedby:self + project:openstack/python-brick-cinderclient-ext) status:open [section "Small Patches"] query = NOT label:Code-Review<=-1,cinder-core delta:<=10 -[section "Bug Fixes without Negative Feedback"] -query = NOT label:Workflow>=1 NOT label:Workflow<=-1 NOT owner:self limit:50 branch:master topic:^bug.* NOT reviewedby:self - -[section "Blueprints without Negative Feedback"] -query = NOT label:Workflow>=1 NOT label:Workflow<=-1 label:Verified>=1 NOT owner:self NOT label:Code-Review<=-1 NOT label:Code-Review>=2 limit:50 branch:master topic:^bp.* NOT reviewedby:self - -[section "Without Negative Feedback"] -query = NOT label:Workflow>=1 NOT label:Workflow<=-1 label:Verified>=1 NOT owner:self NOT label:Code-Review<=-1 NOT label:Code-Review>=2 limit:50 branch:master NOT topic:^bug.* NOT topic:^bp.* NOT reviewedby:self - [section "5 Days Without Feedback"] query = NOT label:Code-Review<=-1 NOT label:Code-Review>=1 NOT is:reviewed age:5d -[section "Own Patches"] -query = owner:self +[section "Bug Fixes without Negative Feedback"] +query = NOT label:Workflow>=1 NOT label:Workflow<=-1 NOT owner:self limit:50 branch:master intopic:^bug.* NOT reviewedby:self -[section "Patches I -2'd"] -query = label:Code-Review<=-2,self +[section "Blueprints without Negative Feedback"] +query = NOT label:Workflow>=1 NOT label:Workflow<=-1 label:Verified>=1 NOT owner:self NOT label:Code-Review<=-1 NOT label:Code-Review>=2 limit:50 branch:master intopic:^bp.* NOT reviewedby:self + +[section "Needs Final +2"] +query = label:Code-Review>=2 NOT label:Code-Review<=-2 NOT reviewedby:self [section "Stable Branches"] query = branch:^stable/.* NOT reviewedby:self + +[section "Patches I -2'd"] +query = label:Code-Review<=-2,self diff --git a/gerrit_dash_creator/cmd/creator.py b/gerrit_dash_creator/cmd/creator.py index f435622..fa083f7 100755 --- a/gerrit_dash_creator/cmd/creator.py +++ b/gerrit_dash_creator/cmd/creator.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain