| Issue 3284: | Prolog: reject(_) and ok(_) not working without user IDs | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Affected Version: 2.10.2
What steps will reproduce the problem?
Implement the following prolog rule (from Gerrit's prolog cookbook, example 3):
submit_rule(submit(W)) :-
W = label('Verified', reject(_)).
What is the expected output? What do you see instead?
I expect to see a red label Verified in the UI of a change in review, indicating that the change cannot be submitted. What I do see is that I am unable do add reviewers and supply any labels. The error log shows the following:
ERROR com.google.gerrit.server.project.ChangeControl : Submit rule :(user,submit_rule) for change 25731 of <projectName> output invalid result: submit(label(Verified,reject(_17773D9E))). Reason: A label with the status Verified: REJECT must contain a user.
The same holds if I try to supply a label ok(_) without a user name.
Apr 8, 2015
#1
k.arn...@sap.com
Apr 9, 2015
(No comment was entered for this change.)
Status:
Duplicate
Mergedinto: 2469 |
|
| ► Sign in to add a comment |