mbox series

[layerindex-web,0/2] Allow per LayerBranch update disable

Message ID 20231017005439.2616534-1-tim.orling@konsulko.com
Headers show
Series Allow per LayerBranch update disable | expand

Message

Tim Orling Oct. 17, 2023, 12:54 a.m. UTC
Some layers have branches which match the stable release branch names, but
fail to update for some reason. Rather than completely disable updates for
a LayerItem, allow for a LayerBranch to have updates disabled.

Before this change, we only had the option to completely disable updates for
a layer (Change from "Published" to "No Update" state) or completely disable a
Branch for all layers. These hammers are too heavy and needed a little nuance.

Tim Orling (2):
  models.py: add updates_enabled to LayerBranch
  update.py: skip unless layerbranch.updates_enabled

 .../0047_layerbranch_updates_enabled.py        | 18 ++++++++++++++++++
 layerindex/models.py                           |  2 +-
 layerindex/update.py                           |  5 +++++
 3 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 layerindex/migrations/0047_layerbranch_updates_enabled.py