Files
gerrit/java/com/google/gerrit/server
Patrick Hiesel 8a6c1b8600 SubmitRecord.Status: Reserve RULE_ERROR for user-caused errors
SubmitRecords used to have a RULE_ERROR status code. That was
mainly used to signal errors caused by the Prolog interpreter.
These are user-caused errors (caused by wrong Prolog code).
This use is fine as-is and can be expanded to other rules such
as the code-owners rule.

However, over time, this error code was used also to signal
server-errors - such as lookup failures for labels or project
state. This not not a good use because server errors should
always propagate as HTTP 500 errors and also prevent and
index document with a broken SubmitRecord to be created.

This commit cleans this space up and reserves the RULE_ERROR
for user-caused issues.

Change-Id: I018ce9e13fa40f2f24546df49ecf7fc3fbb72b1b
(cherry picked from commit fa8d17768b2558ec44a2b183bfee4508b0f3228a)
2021-04-30 07:19:50 +00:00
..
2021-03-31 09:38:11 +00:00
2021-03-23 14:55:52 +01:00
2021-02-11 13:26:05 +01:00
2021-03-31 09:38:11 +00:00
2021-03-23 14:55:52 +01:00
2021-04-01 11:26:35 +00:00
2021-03-29 17:23:39 +02:00
2021-03-31 09:38:11 +00:00
2021-03-31 09:38:11 +00:00