gerrit-dash-creator/dashboards/openstack-ansible.dash
Akihiro Motoki 85662d44c6 Fix queries using label:Code-Review<=2
Previously, label:Code-Review<=2 matches changes with some scores
(+2, +1, -1, -2), so NOT label:Code-Review<=2 can be used to pick up
changes without any reviews.
After upgrading the gerrit, label:Code-Review<=2 now matches all changes
including changes without reviews. As a result, NOT label:Code-Review<=2
excludes all changes and it is meaningless.

This commit replaces 'NOT label:Code-Review<=2' with
'NOT label:Code-Review<=-1 NOT label:Code-Review>=1'
to achieve the original purpose of queries.

Also fixes meaningless label:Code-Review<=2 in some queries.

Change-Id: I437963b9cf72d9b80420737ce8c5f066453cf803
2017-11-02 01:29:06 +09:00

45 lines
1.9 KiB
Plaintext

[dashboard]
title = OpenStack-Ansible Review Inbox
description = Review Inbox for the OpenStack-Ansible project
foreach = (project:^openstack/openstack-ansible.* OR
project:^openstack/ansible-hardening)
status:open
NOT owner:self
NOT label:Workflow<=-1
NOT reviewedby:self
# core reviewers taken from https://review.openstack.org/#/admin/groups/490,members
[section "Reviews Requested by Core Reviewers"]
query = (starredby: a.settle@outlook.com OR
starredby: amy@demarco.com OR
starredby: andy.mccrae@googlemail.com OR
starredby: david.wilde@rackspace.com OR
starredby: jean-philippe.evrard@rackspace.co.uk OR
starredby: jesse.pretorius@rackspace.co.uk OR
starredby: jimmy.mccrory@gmail.com OR
starredby: kevin@cloudnull.com OR
starredby: logan2211@gmail.com OR
starredby: major@mhtx.net OR
starredby: gariepy.marc@gmail.com OR
starredby: mchandras@suse.de OR
starredby: robb.romans@rackspace.com) AND
label:Verified>=1,zuul
[section "Needs Feedback (Changes older than 5 days that have not been reviewed by anyone)"]
query = NOT label:Code-Review<=-1 NOT label:Code-Review>=1 age:5d label:Verified>=1,zuul
[section "You are a reviewer but haven't voted in the current revision"]
query = reviewer:self NOT reviewedby:self label:Verified>=1,zuul
[section "Needs final +2"]
query = label:Code-Review>=2 limit:50 NOT label:Code-Review<=-1 NOT reviewedby:self label:Verified>=1,zuul
[section "Passed Zuul, No Negative Feedback"]
query = NOT label:Code-Review>=2 NOT label:Code-Review<=-1 limit:50 label:Verified>=1,zuul
[section "Wayward Changes (Changes with no code review in the last 2days)"]
query = NOT label:Code-Review<=-1 NOT label:Code-Review>=1 age:2d label:Verified>=1,zuul
[section "Failed Zuul, No Negative Feedback"]
query = NOT label:Code-Review<=-1 label:Verified<=-1,zuul