We're on Gerrit 3.6.1. Some of our repos use the Verified label, but many do not, so it has been very common for me to add this prolog submit rule when setting up a new repository where its users don't want to use the Verified label:
submit_rule(submit(CR, V)) :-
gerrit:max_with_block(-2, 2, 'Code-Review', CR),
V = label('Verified', may(_)).
I'm converting from prolog submit rules to submit requirements. Since the number of repos that don't use the Verified label outnumber the ones that do use it, I tried deleting that prolog rule from a repo that doesn't use the Verified label, removing the deprecated function lines from the definition of the Verified label in All-Projects, and simply not including the Verified label in any submit-requirement sections in either All-Projects, or the project's repo. I did define a submit-requirement in All_projects for Code-Review, which looks like this:
[submit-requirement "Code-Review"]
description = A +2 vote from a non-uploader is required for the Code-Review label. A -2 vote is blocking.
submittableIf = label:Code-Review=MAX,user=non_uploader AND -label:Code-Review=MIN
canOverrideInChildProjects = true
When I look at a review for this repo, I see in the Submit Requirements section of the UI that I have two entries: Code-Review (with description text and condition matching my submit-requirement from All-Projects), and, to my surprise, Verified with the condition "label:Verified=MAX -label:Verified=MIN". Where did that default submit requirement come from and how do I remove it? I've tried setting something like this in All-Projects:
[submit-requirement "Verified"]
submittableIf = is:true
canOverrideInChildProjects = true
but instead of this submit-requirement replacing the built in one, I then end up with *two* Verified submit requirements in reviews on this repo, one with my new is:true condition, and the other with the built in condition, and the review is not submittable until *both* are satisfied.
So how do I override the built in Verified and Code-Review conditions in repos where I don't want to use those labels at all? In prolog, I could do that with a may rule. What's the equivalent with a submit requirement, and is it possible to make that the global default for Verified?
thanks,
--Andrew