layerindex-web/layerindex
Paul Eggleton 74b1b9c895 Show update task output more smoothly
We were refreshing the page constantly in order to show output while
a task was running, which basically worked but is horrible. Instead,
write the task output to a file and then use AJAX calls to request
whatever output has been written to the file since the last call
and call this roughly every second. Put the output in a scrollable <pre>
element instead of making it the length of the page, and auto-scroll
to the end (unless the user grabs the scrollbar and pulls it upwards -
it may not be immediately obvious that you can do this if there is a lot
of output since you have to pull it up when the scrolling animation is
not running, but it is possible).

An alternative would be to have used some kind of long-lived HTTP
session or a websocket, but those come with their own set of problems
so I elected to use this much simpler method.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-09-20 16:04:49 +12:00
..
migrations Improve collection/display of LayerUpdate records 2018-08-14 15:07:34 +02:00
static Show update task output more smoothly 2018-09-20 16:04:49 +12:00
templatetags Show update task output more smoothly 2018-09-20 16:04:49 +12:00
tools import_otherdistro: fix update recording code 2018-09-20 15:57:59 +12:00
__init__.py Initial commit of layerindex-web 2013-02-13 12:09:57 +00:00
admin.py Improve collection/display of LayerUpdate records 2018-08-14 15:07:34 +02:00
bulkchange.py bulkchange: make script more robust 2018-08-06 12:36:31 +02:00
context_processors.py Add support for other distro comparisons 2018-08-07 14:44:27 +02:00
forms.py Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
layerconfparse.py layerconfparse.py: remove unused layerbranch from parse_layer() 2017-07-21 08:14:57 +02:00
models.py models: add a get_checkout_branch() function 2018-09-20 15:57:59 +12:00
querysethelper.py Replace usage of model._meta.get_all_field_names() 2018-04-24 10:15:47 +12:00
recipedesc.py layerindex: Update tinfoil to call shutdown method 2017-01-11 21:56:35 +13:00
recipeparse.py recipeparse: don't error out on missing layer recommends 2018-07-09 13:50:15 +02:00
restperm.py expose REST API for layerindex 2014-09-24 11:32:34 +01:00
restviews.py restviews: add additional layer view with extra nested fields 2018-02-07 11:27:48 +13:00
simplesearch.py Improve recipe search 2013-02-19 17:22:45 +00:00
tasks.py Show update task output more smoothly 2018-09-20 16:04:49 +12:00
update_layer.py update: add option to stop immediately on parse errors 2018-08-24 16:41:59 +12:00
update.py Disable git interactive password prompts 2018-09-06 11:08:43 +12:00
urls_branch.py Add ability to trigger comparison updates manually from UI 2018-08-13 16:04:14 +02:00
urls.py Show update task output more smoothly 2018-09-20 16:04:49 +12:00
utils.py Show update task output more smoothly 2018-09-20 16:04:49 +12:00
views.py Show update task output more smoothly 2018-09-20 16:04:49 +12:00