layerindex-web/layerindex
Tim Orling b361715cc4 layerindex: Add actual_branch to forms and views
For layers which do not follow standard branch names (including
the inclusive naming move away from "master" to "main") we have
the actual_branch field set in a LayerBranch object. Previously
this was only exposed via the admin interface.

Allow layer maintainers (including upon submitting a new layer)
to set the 'Actual branch' in the web UI.

Add a check to make sure the actual_branch is a valid branch
name using 'git check-ref-format --branch <actual_branch>'
since we are not using full refs.

[YOCTO #8008]

NOTE:
  Only existing LayerBranches will be editable. A new layer
  can be submitted with a different branch for "master", but
  only the "master" LayerBranch will be created.

  Further changes to the update.py script will be needed to
  make creation of new stable branches with an actual_branch
  possible.

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 Refactor usage of django.conf.urls 2023-10-05 20:10:09 -07:00
urls.py Refactor usage of django.conf.urls 2023-10-05 20:10:09 -07:00
utils.py utils.py: get dependent layers at same branch 2023-11-16 07:09:09 -08:00
views.py layerindex: Add actual_branch to forms and views 2024-01-03 13:33:37 -08:00