Closed
Bug 926907
Opened 11 years ago
Closed 11 years ago
Handle push updates in batches
Categories
(Tree Management Graveyard :: TBPL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Swatinem, Assigned: Swatinem)
References
Details
Attachments
(1 file)
(deleted),
patch
|
emorley
:
review+
|
Details | Diff | Splinter Review |
We can avoid a lot of redundant UserInterface__updateFailingBuildsDisplay calls if we process pushes in batches.
Attachment #817157 -
Flags: review?(emorley)
Assignee | ||
Comment 1•11 years ago
|
||
Comment on attachment 817157 [details] [diff] [review]
batch.patch
Review of attachment 817157 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/UserInterface.js
@@ +420,5 @@
> },
>
> _updateUnstarredFilter: function UserInterface__updateOnlyStarredFilter(state) {
> + if (state == this._onlyUnstarred)
> + return;
Just as a funny side-note: This change means that we used to redraw everything if we filter by pusher (no redraw needed) or we redraw everything TWICE if we filtered by machine.
Comment 2•11 years ago
|
||
Comment on attachment 817157 [details] [diff] [review]
batch.patch
Review of attachment 817157 [details] [diff] [review]:
-----------------------------------------------------------------
Yet another nice win! :-)
(r+ with the one change below)
::: js/UserInterface.js
@@ +420,5 @@
> },
>
> _updateUnstarredFilter: function UserInterface__updateOnlyStarredFilter(state) {
> + if (state == this._onlyUnstarred)
> + return;
Ah good spot - we hit this function every time any of the other params change, even if onlyUnstarred didn't... whoops! :-)
@@ +468,2 @@
> var pushes = Object.values(this._data.getPushes());
> + this.handleUpdatedPush(pushes);
s/handleUpdatedPush/handleUpdatedPushes/
Updated•11 years ago
|
Attachment #817157 -
Flags: review?(emorley) → review+
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Ed Morley [:edmorley UTC+1] from comment #2)
> @@ +468,2 @@
> > var pushes = Object.values(this._data.getPushes());
> > + this.handleUpdatedPush(pushes);
>
> s/handleUpdatedPush/handleUpdatedPushes/
Ooops, that was the only filter I didn’t manually test, good catch.
Landed with that change.
Comment 4•11 years ago
|
||
In production :-)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Webtools → Tree Management
Updated•10 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•