layerindex-web/layerindex
Tim Orling 921308416c 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>
2024-01-03 13:33:37 -08:00
..
migrations models.py: add updates_enabled to LayerBranch 2023-10-19 10:32:58 -07:00
static bootstrap: fix typo in minified file name 2023-10-19 14:01:47 -07:00
templatetags Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
tools layerindex/tools: add mark_yp_compatible_layers.py 2023-11-16 07:09:09 -08:00
__init__.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
admin.py admin.py: Remove has_delete_permission() 2022-12-16 08:59:37 -08:00
auth_forms.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
auth_views.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
bulkchange.py layerindex/*: make all shebangs python3 2022-01-13 20:58:28 -08:00
context_processors.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
forms.py layerindex: Add actual_branch to forms and views 2024-01-03 13:33:37 -08:00
layerconfparse.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
middleware.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
models.py layerindex/models.py: fix Inactive-Upstream check 2023-11-17 12:15:49 -08:00
querysethelper.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
recipedesc.py global: replace deprecated distutils 2022-12-16 08:59:37 -08:00
recipeparse.py recipe{desc,parse}.py: BB_ENV_PASSTHROUGH_ADDITIONS 2022-04-28 08:15:22 -07:00
restperm.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
restviews.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
securityquestions.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
tasks.py Add SPDX license headers to layerindex-web source files 2021-04-21 08:22:51 +12:00
update_layer.py update_layer.py: checkout dep layers as well 2023-11-16 07:09:09 -08:00
update.py utils.py: fix unclosed ( 2023-11-22 11:06:10 -08:00
urls_branch.py layerindex: add Update Layer UI feature 2024-01-03 13:33:37 -08:00
urls.py layerindex: add Update Layer UI feature 2024-01-03 13:33:37 -08:00
utils.py utils.py: get dependent layers at same branch 2023-11-16 07:09:09 -08:00
views.py layerindex: add Update Layer UI feature 2024-01-03 13:33:37 -08:00