in gr-verify-status/gr-verify-status-panel.js [58:87]
_fetchData(revision) {
if (!revision) return;
const query ='/verify-status~verifications?sort=REPORTER&filter=CURRENT';
const endpoint = '/changes/' + this.change.id + '/revisions/' +
revision._number + query;
const errFn = response => {
this.fire('page-error', {response});
};
this.plugin.restApi().get(endpoint, errFn).then(r => {
let summary = {failed:0, passed:0, notdone:0};
let results = [];
for (let checkid in r) {
let check= r[checkid];
if (check.value == '0') {
summary.notdone +=1;}
else if (check.value == 1) {
summary.passed +=1;
}
else {
summary.failed +=1;
}
results.push(check);
};
this.verifyStatus = {summary, results};
});
}