layerindex-web/templates/layerindex
Tim Orling bf57322ab1 layerindex: add Update Layer UI feature
* Add an "Update Layer" button to the layer detail view.
  - This allows a user that is a member of is_staff to trigger
    an update of the current layer (for the current branch)
* Add an "Update Layer" button to the reviewdetail view
  - This allows a user that is a member of is_staff and has
    publish_layer permissions to trigger an update attempt
    of the layer under review (even in the un-published state)
* The update is run as a task with Celery

NOTE:
  You must have the RABBITMQ_ and DATABASE_ credentials set
  correctly in the docker/settings.py file or set via
  environment variables or you will get authentication errors
  talking to layersdb or layersrabbit containers.

[YOCTO #12484]

layerindex/views.py: add update_layer_view
layerindex/urls.py: add update_layer_view
layerindex/urls_branch.py: add update_layer_view
templates/layerindex/reviewdetail.html: add Update Layer button
templates/layerindex/detail.html: add Update Layer button
templates/layerindex: add updatelayer.html

TODO:
  While the update is happening, the AJAX rendering of the
  update.log is showing the b'' characters and not adding
  any new lines. If you go back to the same task view
  afterwards, the log is rendered as expected.

TODO:
  After the update is completed, it would be nice to have a
  button to return you to the page from where you called the
  "Update Layer".

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
2023-12-29 20:50:36 -08:00
..
about.html about: add Amber & Tim to contributors list 2021-10-20 10:20:31 +13:00
branchcompare_plain.txt Add branch comparison function 2019-10-21 12:02:44 +13:00
branchcompare.html Add branch comparison function 2019-10-21 12:02:44 +13:00
bulkchange.html Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
bulkchangeedit.html Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
bulkchangereview.html Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
bulkchangesearch.html bootstrap_pagination: disable via comment 2023-10-05 20:09:12 -07:00
classchecklist.html Support excluding inherited classes from other distro comparison reversed query 2018-08-13 16:02:59 +02:00
classes.html bootstrap_pagination: disable via comment 2023-10-05 20:09:12 -07:00
classic_base.html Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
classicrecipedetail.html Add ability to disposition comparison patches 2019-07-17 11:31:04 +12:00
classicrecipes_csv.txt Add basic CSV export for other distro comparisons 2018-08-13 16:02:59 +02:00
classicrecipes.html bootstrap_pagination: disable via comment 2023-10-05 20:09:12 -07:00
classicstats.html templates/*: staticfiles -> static 2022-01-13 23:36:22 -08:00
comparisonrecipebase.html Include branch name in "Not being applied" patch tooltip 2019-07-17 11:31:04 +12:00
comparisonrecipeselect.html comparisonrecipeselect: fix logic for setting modal title 2018-09-26 16:05:46 +12:00
comparisonrecipeselectdetail.html comparison: use style on hidden select instead of CSS class to hide 2018-09-26 16:03:52 +12:00
deleteaccount.html Implement "delete account" function 2018-11-06 11:31:57 +13:00
deleteconfirm.html Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
detail.html layerindex: add Update Layer UI feature 2023-12-29 20:50:36 -08:00
distros.html bootstrap_pagination: disable via comment 2023-10-05 20:09:12 -07:00
duplicates.html Fix drop-down alignment on duplicates page 2018-11-20 11:58:42 +13:00
editlayer.html Fix cgit commit URL setting 2019-10-21 12:02:44 +13:00
editlayernote.html Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
history.html bootstrap_pagination: disable via comment 2023-10-05 20:09:12 -07:00
layerchecklist.html Add search to duplicates/comparison layer filter dialog 2018-11-19 16:44:42 +13:00
layers.html bootstrap_pagination: disable via comment 2023-10-05 20:09:12 -07:00
layerupdate.html Improve collection/display of LayerUpdate records 2018-08-14 15:07:34 +02:00
machines.html bootstrap_pagination: disable via comment 2023-10-05 20:09:12 -07:00
maintemail.txt Send people an email when another user adds them as a maintainer 2018-12-06 08:18:49 +13:00
maintemailsubject.txt Send people an email when another user adds them as a maintainer 2018-12-06 08:18:49 +13:00
profile.html Add user security questions 2019-07-17 11:30:56 +12:00
publishemail.txt Send email notification on publication 2017-10-31 09:58:30 +13:00
publishemailsubject.txt Send email notification on publication 2017-10-31 09:58:30 +13:00
recipedeps.html Add recipe dependencies tool 2019-11-21 02:51:30 +13:00
recipedetail.html Track SRCREV for each recipe 2019-10-21 10:47:01 +13:00
recipes.html bootstrap_pagination: disable via comment 2023-10-05 20:09:12 -07:00
reviewdetail.html layerindex: add Update Layer UI feature 2023-12-29 20:50:36 -08:00
reviewlist.html bootstrap_pagination: disable via comment 2023-10-05 20:09:12 -07:00
stats.html Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
submitemail.txt Move all templates to a templates directory 2013-03-06 16:55:23 +00:00
submitlayer.html Use appending to extend page title instead of overriding it 2013-03-06 17:23:36 +00:00
submitthanks.html Use appending to extend page title instead of overriding it 2013-03-06 17:23:36 +00:00
task.html Fix progressive task output when it contains entity-escaped characters 2019-07-17 11:31:04 +12:00
testemail.txt Add an email test function 2018-10-01 17:04:44 +13:00
updatedetail.html Properly show update task success/failure 2018-09-20 16:04:49 +12:00
updatelayer.html layerindex: add Update Layer UI feature 2023-12-29 20:50:36 -08:00
updatelist.html bootstrap_pagination: disable via comment 2023-10-05 20:09:12 -07:00