Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(776)

Issue 2980973002: config_service: Fixed multiple ajax requests in the front page while the page determines whether a … (Closed)

Created:
3 years, 5 months ago by cwpayton
Modified:
3 years, 5 months ago
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

config_service: Fixed multiple ajax requests in the front page while the page determines whether a user is signed in. This CL disables the auto ajax requests and is instead triggered by the loading of the google auth API and user object. BUG=742522 Review-Url: https://codereview.chromium.org/2980973002 Committed: https://github.com/luci/luci-py/commit/bb47aeb0a0fdf3d96bcb7c31b7b332bd969dbce6

Patch Set 1 #

Patch Set 2 : Forgot to revert ajax links. Fixed in this commit. #

Total comments: 1

Patch Set 3 : Removed timeout and made auth_headers trigger the ajax request instead. #

Patch Set 4 : Nit: formatting of if statement #

Total comments: 1

Patch Set 5 : Removed all timeouts from the UI #

Patch Set 6 : Created an event for the auth-signin to trigger that the front page listens for #

Patch Set 7 : Cleaned up unnecessary code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -40 lines) Patch
M appengine/config_service/ui/common/auth-signin.html View 1 2 3 4 5 6 6 chunks +31 lines, -27 lines 0 comments Download
M appengine/config_service/ui/src/config-ui/config-ui.html View 1 2 3 4 5 6 2 chunks +7 lines, -12 lines 0 comments Download
M appengine/config_service/ui/src/config-ui/front-page.html View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 16 (7 generated)
cwpayton
PTAL. Link to staging version can be found here: https://2965-dc53549-tainted-cwpayton-dot-luci-config.appspot.com/newui
3 years, 5 months ago (2017-07-14 18:12:09 UTC) #2
Ryan Tseng
https://codereview.chromium.org/2980973002/diff/20001/appengine/config_service/ui/src/config-ui/front-page.html File appengine/config_service/ui/src/config-ui/front-page.html (right): https://codereview.chromium.org/2980973002/diff/20001/appengine/config_service/ui/src/config-ui/front-page.html#newcode129 appengine/config_service/ui/src/config-ui/front-page.html:129: window.setTimeout(function() { Can we bind to and event where ...
3 years, 5 months ago (2017-07-14 18:52:30 UTC) #5
cwpayton
PTAL. Staging version is still up here: https://2965-dc53549-tainted-cwpayton-dot-luci-config.appspot.com/newui
3 years, 5 months ago (2017-07-14 20:05:58 UTC) #6
Ryan Tseng
https://codereview.chromium.org/2980973002/diff/60001/appengine/config_service/ui/common/auth-signin.html File appengine/config_service/ui/common/auth-signin.html (right): https://codereview.chromium.org/2980973002/diff/60001/appengine/config_service/ui/common/auth-signin.html#newcode122 appengine/config_service/ui/common/auth-signin.html:122: window.setTimeout(function(){ Actually you just have to attach this function ...
3 years, 5 months ago (2017-07-14 20:43:05 UTC) #7
cwpayton
PTAL. Link to new staging version can be found here: https://2967-4366b3c-tainted-cwpayton-dot-luci-config.appspot.com/newui
3 years, 5 months ago (2017-07-17 17:12:13 UTC) #8
Sergey Berezin
LGTM, thanks! I'd also wait for Ryan before landing, since he had some comments.
3 years, 5 months ago (2017-07-18 00:17:58 UTC) #9
cwpayton
PTAL. Link to staging version still exists here: https://2967-4366b3c-tainted-cwpayton-dot-luci-config.appspot.com/newui
3 years, 5 months ago (2017-07-18 18:39:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2980973002/120001
3 years, 5 months ago (2017-07-18 21:36:00 UTC) #13
commit-bot: I haz the power
3 years, 5 months ago (2017-07-18 21:38:16 UTC) #16
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://github.com/luci/luci-py/commit/bb47aeb0a0fdf3d96bcb7c31b7b332bd969dbce6

Powered by Google App Engine
This is Rietveld 408576698