mbox

[layerindex-web,0/7] Fixes; add Update Layer button; expose branch mapping

Message ID cover.1703911977.git.tim.orling@konsulko.com
State New
Headers show

Pull-request

https://github.com/moto-timo/layerindex-web timo/update-button-actual-branch

Message

Tim Orling Dec. 30, 2023, 4:57 a.m. UTC
This series is the combination of several changes that are best done as
a group because that is how they were developed and more importantly tested.

* Update requirements.txt to the "latest" versions
* Fix an annoyance in the docker/settings.py which caused the RABBIT_BROKER
  variable to be unparseable, since no default values where set and the
  environment variables do not always exist in the running container context
  (such as running updates)
* Enable production (trusted by browser) cert creation by dockersetup.py via
  Let's Encrypt. This should help publicly facing instances avoid unnecessary
  churn of the staging certs.
* Fix a typo that broke Branch Comparison
  [YOCTO #15332]
* Expose the "actual_branch" branch mapping in the web UI (previously
  only available in the admin interface.
  [YOCTO #8008]
* Add the ability to trigger a layer update from the web UI (is_staff users
  only).
  [YOCTO #12484]
* Improve the handling of actual_branch by the update.py script (and friends)
  to allow scripted creation/updates of stable branches with actual_branch set.
  This should enable better utilization of LAYERSERIES_COMPAT in the future.

The following changes since commit 4712f00df73f86ab557cf499b6b20aac3f738535:

  utils.py: fix unclosed ( (2023-11-22 11:06:10 -0800)

are available in the Git repository at:

  https://github.com/moto-timo/layerindex-web timo/update-button-actual-branch
  https://github.com/moto-timo/layerindex-web/tree/timo/update-button-actual-branch

Tim Orling (7):
  requirements.txt: bump all to latest
  layerindex/views.py: fix parse_view typo
  docker/settings.py: fix RABBIT_BROKER TypeError
  dockersetup.py: enable production Let's Encrypt
  layerindex: Add actual_branch to forms and views
  layerindex: add Update Layer UI feature
  layerindex: improve updates for actual_branch

 docker/settings.py                     |   2 +-
 dockersetup.py                         |   9 +-
 layerindex/forms.py                    |  15 ++++
 layerindex/update.py                   |  39 +++++---
 layerindex/update_layer.py             |   8 ++
 layerindex/urls.py                     |   2 +-
 layerindex/urls_branch.py              |   3 +-
 layerindex/utils.py                    |   7 +-
 layerindex/views.py                    |  42 ++++++++-
 requirements.txt                       |  40 ++++-----
 templates/layerindex/detail.html       |   3 +
 templates/layerindex/reviewdetail.html |   3 +
 templates/layerindex/updatelayer.html  | 119 +++++++++++++++++++++++++
 13 files changed, 252 insertions(+), 40 deletions(-)
 create mode 100644 templates/layerindex/updatelayer.html