New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 661312 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature

Blocked on:
issue 679072


Previous locations:
gerrit:4554


Sign in to add a comment

Refresh after change is submitted via the CQ

Project Member Reported by benjamin...@google.com, Sep 13 2016

Issue description

Feature request.

Affected Version: 2.13-rc0-312-g9b9adbf

What steps will reproduce the problem?
1. On a change ready to be submitted, click "Submit to CQ."
2. Wait for the change to be submitted (e.g. by looking for the email).

What is the expected output?
The page updates to reflect the current status of the change.

What do you see instead?
The page continues to say "Submitting to CQ..." forever.

Please provide any additional information below.
Based on experience from Reitveld, I am used to refreshing the page to see whether the change has been submitted or even to see if trybots have finished. However, in PolyGerrit, Trybot results appear on the page without refreshing, so I was surprised that the page doesn't update after submitting the change.
 
Labels: Hotlist-Chromium Priority-2
Owner: andyb...@chromium.org
Status: Accepted (was: New)
Summary: Refresh after change is submitted via the CQ (was: Refresh after change is submitted)
Labels: Milestone-Chromium-Fishfood
Project: chromium
Moved issue gerrit:4554 to now be  issue chromium:661312 .
Cc: andyb...@chromium.org tandrii@chromium.org
Components:
Labels: -Priority-2 -Milestone-Chromium-Fishfood -Hotlist-Chromium Milestone-Fishfood Proj-Gerrit-Migration Pri-2
Owner: aga...@chromium.org
Status: Assigned (was: Accepted)
I think hiding the buttons when CQ is underway with a “Cancel submit” in the case where CQ+2 is set is a good way to go, here.
I'm not sure where the best place to do this is.

It could be done in the commitqueue.js plugin. That makes sense, as it is in many ways an integration with the CQ. But currently, all that plugin does is modify the list of buttons available to users, and modify the actions they perform. It doesn't have any sort of polling behavior, which would be necessary to implement this.

An alternative would be to add it to the buildbucket plugin, which does have polling (to auto-update the set of builds), but that currently only polls buildbucket. It doesn't poll a URL which would determine if the CL has been submitted or not.
(P.S. I think andybons' comment in Comment 4 actually applies to issue chromium:644283, which complains about which buttons are available if you refresh the page during a cq run, rather than this one, which complains about whole-page state when you *don't* refresh the page after a cq run is over.)
I think adding it to the commitqueue.js plugin is the best place for now.
Components: Infra>Codereview>Gerrit

Comment 9 by rmis...@google.com, Nov 18 2016

I can start looking into this if you have not already started Aaron.
Cc: aga...@chromium.org
Owner: rmis...@chromium.org
That would be fantastic; I've got a couple larger blockers to tackle right now.

Comment 11 by rmis...@google.com, Nov 18 2016

Labels: Type-Feature
Status: Started (was: Assigned)

Comment 12 by rmis...@google.com, Nov 18 2016

Started work on cl/139608667
Submitted https://gerrit-review.googlesource.com/c/92373/ : Add ability for PG plugins to access serverInfo.
Out for review cl/139608667 : Refresh after change is submitted.
Submitted cl/139608667 : Refresh after change is submitted.
It uses the update_delay server config setting, which AFAIK is set to 0 right now. I will ask dborowitz@ how we can get it enabled.
Blockedon: 679072
The fix is live but there is a bug-  issue chromium:679072 
The fix for the bug is now live on canary.

Comment 17 by rmis...@google.com, Jan 11 2017

Out of curiosity, how did you know it was in canary?
I went to https://canary-chromium-review.googlesource.com/c/426411/ (an unmerged change which loads the cq plugin) and noted that it was no longer giving the mixed-content warning.

Comment 19 by rmis...@google.com, Jan 11 2017

Ah, the brute force method :)
Status: Fixed (was: Started)
Marking fixed, can be verified after prod picks up the current canary.

Comment 21 by rmis...@google.com, Jan 17 2017

This is live.
Tested by sending https://skia-review.googlesource.com/c/7103/ to the CQ and leaving the tab open. The tab refreshed after the change landed.

Sign in to add a comment