Page MenuHomePhabricator

Gerrit cant search for changes having a label score of 0
Closed, ResolvedPublic

Description

A search in Gerrit for a label vote score of zero yields nothing eg:

  • is:open label:verified=0
  • is:open label:Code-Review=0,user=self

Related Objects

StatusSubtypeAssignedTask
Resolveddemon
ResolvedNone

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 25 2016, 4:17 AM
demon added a comment.Jul 25 2016, 4:34 AM

Did this used to work?

Paladox added a subscriber: Paladox.EditedJul 25 2016, 6:17 AM

This is fixed in gerrit 2.12.3.

See https://gerrit-documentation.storage.googleapis.com/ReleaseNotes/ReleaseNotes-2.12.3.html please.

  • Issue 3891: Fix query with label: operator and zero value.

and @demon yes.

@demon yeah of course it used to work :-]

  • Issue 3891: Fix query with label: operator and zero value.

Thx Paladox


The workaround is to craft a query using NOT label:verified̀

Your welcome :).

hashar triaged this task as Medium priority.Jul 25 2016, 8:31 AM
hashar lowered the priority of this task from Medium to Low.
demon moved this task from Bugs & stuff to Maybe fixed? on the Gerrit board.Jul 25 2016, 5:18 PM

Yep this is fixed, I tested on a test install http://gerrit-test.wmflabs.org/ compared to https://gerrit.wikimedia.org/

demon closed this task as Resolved.Aug 15 2016, 3:27 PM
demon claimed this task.

This was fixed by upgrading to 2.12.3