Add submittable support back to PolyGerrit Submittable was made a ListChangesOption in https://gerrit-review.googlesource.com/c/86911/ Bug: Issue 4709 Change-Id: I67bb0662df0a0d52f7c7e4ba30f49b79e8111a33
diff --git a/polygerrit-ui/app/behaviors/rest-client-behavior.html b/polygerrit-ui/app/behaviors/rest-client-behavior.html index 4def9b2..b7cf467 100644 --- a/polygerrit-ui/app/behaviors/rest-client-behavior.html +++ b/polygerrit-ui/app/behaviors/rest-client-behavior.html
@@ -81,7 +81,13 @@ COMMIT_FOOTERS: 17, // Include push certificate information along with any patch sets. - PUSH_CERTIFICATES: 18 + PUSH_CERTIFICATES: 18, + + // Include change's reviewer updates. + REVIEWER_UPDATES: 19, + + // Set the submittable boolean. + SUBMITTABLE: 20 }, listChangesOptionsToHex: function() {
diff --git a/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.js b/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.js index 5eb6e35..90047cd 100644 --- a/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.js +++ b/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.js
@@ -62,7 +62,13 @@ COMMIT_FOOTERS: 17, // Include push certificate information along with any patch sets. - PUSH_CERTIFICATES: 18 + PUSH_CERTIFICATES: 18, + + // Include change's reviewer updates. + REVIEWER_UPDATES: 19, + + // Set the submittable boolean. + SUBMITTABLE: 20 }; Polymer({ @@ -352,7 +358,8 @@ var options = this._listChangesOptionsToHex( ListChangesOption.ALL_REVISIONS, ListChangesOption.CHANGE_ACTIONS, - ListChangesOption.DOWNLOAD_COMMANDS + ListChangesOption.DOWNLOAD_COMMANDS, + ListChangesOption.SUBMITTABLE ); return this._getChangeDetail(changeNum, options, opt_errFn, opt_cancelCondition);