Introduce query change query option SKIP_MERGEABLE
With this option, the mergeable field is not set. For chromium, the
cached data for this field is frequently out of date, and recomputing
it costs several seconds. This change allows the UI to populate the
'submit' button asynchronously, thereby speeding up the page load.
Change-Id: I5c922efe301dcf34379a7e5c1ac9133e7e1bf841
diff --git a/Documentation/rest-api-changes.txt b/Documentation/rest-api-changes.txt
index 5e67b38..0c30a4b 100644
--- a/Documentation/rest-api-changes.txt
+++ b/Documentation/rest-api-changes.txt
@@ -301,6 +301,12 @@
link:user-search.html#reviewedby[reviewedby:self].
--
+[[skip_mergeable]]
+--
+* `SKIP_MERGEABLE`: skip the `mergeable` field in
+link:#change-info[ChangeInfo]. For fast moving projects, this field must
+be recomputed often, which is slow for projects with big trees.
+
[[submittable]]
--
* `SUBMITTABLE`: include the `submittable` field in link:#change-info[ChangeInfo],
@@ -5658,7 +5664,8 @@
Not set for merged changes.
|`mergeable` |optional|
Whether the change is mergeable. +
-Not set for merged changes, or if the change has not yet been tested.
+Not set for merged changes, if the change has not yet been tested, or
+if the link:#skip_mergeable[skip_mergeable] option is set.
|`submittable` |optional|
Whether the change has been approved by the project submit rules. +
Only set if link:#submittable[requested].