Merge lp:~cprov/uci-engine/webui-auto-refresh into lp:uci-engine
Proposed by
Celso Providelo
Status: | Merged |
---|---|
Approved by: | Ursula Junque |
Approved revision: | 626 |
Merged at revision: | 626 |
Proposed branch: | lp:~cprov/uci-engine/webui-auto-refresh |
Merge into: | lp:uci-engine |
Diff against target: |
300 lines (+69/-116) 7 files modified
gatekeeper/gatekeeper/resources/tests/test_api.py (+4/-1) gatekeeper/gatekeeper/resources/v1.py (+5/-1) webui/tickets/static/tickets/webui.js (+52/-99) webui/tickets/static/tickets/webui_complete.js (+2/-2) webui/tickets/static/tickets/webui_failed.js (+2/-2) webui/tickets/static/tickets/webui_ticket_detail.js (+2/-9) webui/tickets/static/tickets/webui_ticket_list.js (+2/-2) |
To merge this branch: | bzr merge lp:~cprov/uci-engine/webui-auto-refresh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ursula Junque (community) | Approve | ||
Evan (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+224728@code.launchpad.net |
Commit message
Fixing the WebUI auto-refresh feature and preventing tempurls from GK to get cached.
Description of the change
Fixing the WebUI auto-refresh feature and preventing tempurls from GK to get cached.
This branch adds the 'Cache-Control: max-age=0, no-cache' header to the GK response container fresh tempurls for all ticket artifacts. This way it won't be cached in clients browsers and every time the webui refreshes they have access to valid tempurls.
I've completely refactored the the auto-refresh feature in webui.js, so it uses a much simpler and reliable mechanism for periodic tasks (Y.later instead of SetTimeout) which helped to simplify the related code a lot.
To post a comment you must log in.
PASSED: Continuous integration, rev:623 s-jenkins. ubuntu- ci:8080/ job/uci- engine- ci/949/
http://
Executed test runs:
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/uci- engine- ci/949/ rebuild
http://