New issue
Advanced search Search tips

Issue 920606 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 18
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Reworking of auth in buildbucket plugin broke binary-size plugin

Project Member Reported by oprypin@chromium.org, Jan 10

Issue description

Go to https://webrtc-review.googlesource.com/c/src/+/116683/6 and open console

binary-size-view.js:215
Buildbucket search failed TypeError: this.$.client.getOAuthToken is not a function
    at HTMLElement._getBuilds (binary-size-view.js:192)
    at HTMLElement._tryGetNewBinarySizeInfo (binary-size-view.js:140)
    at HTMLElement._refresh (binary-size-view.js:112)
    at HTMLElement.reload (binary-size-view.js:81)

https://chromium.googlesource.com/infra/gerrit-plugins/binary-size/+/2a20483/static/binary-size-view.js#192

Root cause:
https://bugs.chromium.org/p/gerrit/issues/detail?id=9164#c31
removed the mentioned function.
 
I’ll restore that function. Please verify there are no other APIs that also need to be restored
Thanks, I'll check.
But I fully expected that the refactoring was enough of a paradigm shift that it would also require some refactoring the binary-size plugin 
my goal was to avoid breakages like this by providing a compatibility layer, but I missed this function, sorry

since it is already broken, perhaps it would be better to update the binary-sizes plugin instead because it would be less tech debt overall? the new function is `window.buildbucket.getAccessToken()`. It returns a promise. Note that `window.buildbucket` does not exist until buildbucket plugin is loaded.
Yeah I can work on this now. Thanks for helping.

Comment 6 by oprypin@chromium.org, Jan 18 (4 days ago)

Owner: oprypin@chromium.org
Status: Fixed (was: Untriaged)
The release came through recently.

Sign in to add a comment