Dave Borowitz | 817f253 | 2019-03-15 11:05:41 -0700 | [diff] [blame] | 1 | # /changes REST API |
| 2 | |
| 3 | This page describes additions to the Gerrit change-related REST endpoints that |
| 4 | are added by the @PLUGIN@ plugin. |
| 5 | |
| 6 | Please also take note of the general information on the |
| 7 | [changes REST API](../../../Documentation/rest-api-changes.html). |
| 8 | |
| 9 | ### <a id="get-change"> Get Change options |
| 10 | _'GET /changes/[\{change-id\}](../../../Documentation/rest-api-changes.html#change-id)?@PLUGIN@--combined'_ |
| 11 | |
| 12 | Adding the query parameter `@PLUGIN@--combined` adds a `CheckChangeInfo` entity |
| 13 | to the `plugins` list in |
| 14 | [`ChangeInfo`](../../../Documentation/rest-api-changes.html#change-info). All |
| 15 | fields reflect up-to-date information read from primary storage, not a secondary |
| 16 | index. |
| 17 | |
| 18 | ### <a id="check-change-info"> CheckChangeInfo |
| 19 | |
| 20 | The `CheckChangeInfo` describes check information on a change. |
| 21 | |
| 22 | | Field Name | Description | |
| 23 | | ---------------------- | ----------- | |
| 24 | | `combined_check_state` | The [combined state](#combined-check-state) of all checks on the change. |
| 25 | |
| 26 | ### <a id="combined-check-state"> CombinedCheckState (enum) |
| 27 | |
| 28 | The `CheckState` enum can have the following values: |
| 29 | |
| 30 | * `FAILED`: At least one required check failed; other checks may have passed, or |
| 31 | still be running. |
| 32 | |
| 33 | * `WARNING`: All relevant checks terminated, and at least one optional check |
| 34 | failed, but no required checks failed. |
| 35 | |
| 36 | * `IN_PROGRESS`: At least one relevant check is in a non-terminated |
| 37 | [state](rest-api-checks.md#check-state) (`NOT_STARTED`, `SCHEDULED`, |
| 38 | `RUNNING`), and no required checks failed. Some optional checks may have |
| 39 | failed. |
| 40 | |
| 41 | * `SUCCESSFUL`: All relevant checks terminated successfully. |
| 42 | |
| 43 | * `NOT_RELEVANT:` No checks are relevant to this change. |