Skip to content

Layer index improvements

Paul Eggleton yocto 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 0 repliesNew
  2. v15 patches 0 repliesSuperseded

Changes in v2 from the cover letter

The Python 3 change hit while the original patchset was in review, which has broken parsing of master. It's just as well I did the refactoring of the update script, because that was critical to allow branches requiring Python 2 and others requiring Python 3 to be able to be parsed within the same index. This new version handles this, supports (and requires) Python 3 itself, and as a follow on now uses Django 1.6 and updated versions of other Django-related components, along with a few pre-emptive fixes for Django 1.8 which I intend to upgrade to after the dust settles on this set of changes.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15Allow blanking out field values in bulk changelayerindex/bulkchange.py layerindex/forms.py layerindex/models.py +1 more+22 -370 replies
2/15update.py: refactor into two separate scriptslayerindex/update.py layerindex/update_layer.py+591 -4670 replies
3/15update.py: allow updating all branches with one commandREADME layerindex/migrations/0011_auto__add_field_branch_updates_enabled.py layerindex/models.py +1 more+239 -370 replies
4/15Fix listing *_git.bbappend as appends for git recipeTODO layerindex/views.py+1 -20 replies
5/15Increase size of Recipe provides and license fieldsTODO layerindex/migrations/0012_auto__chg_field_recipe_license__chg_field_recipe_provides.py layerindex/models.py+204 -30 replies
6/15bulkchange: drop temp paths in multi-patch tarballlayerindex/bulkchange.py+1 -10 replies
7/15Upgrade to Django 1.6+README layerindex/forms.py layerindex/restviews.py +33 more+136 -1520 replies
8/15Fix for changes in modern django-reversionlayerindex/views.py+23 -220 replies
9/15Support (and require) Python 3README layerindex/bulkchange.py layerindex/models.py +7 more+36 -320 replies
10/15update_layer.py: rename confusing loop variableslayerindex/update_layer.py+20 -200 replies
11/15update_layer.py: fix handling of renames with newer GitPythonlayerindex/update_layer.py+75 -30 replies
12/15Handle Python 2 and Python 3 branches in the same indexREADME layerindex/admin.py layerindex/migrations/0013_auto__add_pythonenvironment__add_field_branch_update_environment.py +2 more+259 -80 replies
13/15Preemptive auto_now fix for Django 1.8layerindex/models.py+5 -50 replies
14/15update_layer.py: use new-style transaction APIlayerindex/update_layer.py+389 -3920 replies
15/15Explicitly specify temporary redirectionlayerindex/urls.py layerindex/urls_branch.py urls.py+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [layerindex-web][PATCH v2 00/15] Layer index improvements

Refactor the update script to hopefully make it more robust, allow multiple branches to be updated with one command, support Python 3 and Django 1.6 and fix a few other issues.

Changes since v1:
The Python 3 change hit while the original patchset was in review, which has broken parsing of master. It's just as well I did the refactoring of the update script, because that was critical to allow branches requiring Python 2 and others requiring Python 3 to be able to be parsed within the same index. This new version handles this, supports (and requires) Python 3 itself, and as a follow on now uses Django 1.6 and updated versions of other Django-related components, along with a few pre-emptive fixes for Django 1.8 which I intend to upgrade to after the dust settles on this set of changes.

The following changes since commit b80833e1c9d2e8d4bd15903810bc981dd3a9c19e:

TODO: drop some completed items (2016-05-30 15:28:20 +1200)

are available in the git repository at:

git://git.yoctoproject.org/layerindex-web paule/fixes
http://git.yoctoproject.org/cgit.cgi/layerindex-web/log/?h=paule/fixes

Paul Eggleton (15):
Allow blanking out field values in bulk change update.py: refactor into two separate scripts update.py: allow updating all branches with one command Fix listing *_git.bbappend as appends for git recipe Increase size of Recipe provides and license fields
bulkchange: drop temp paths in multi-patch tarball Upgrade to Django 1.6+
Fix for changes in modern django-reversion
Support (and require) Python 3
update_layer.py: rename confusing loop variables update_layer.py: fix handling of renames with newer GitPython Handle Python 2 and Python 3 branches in the same index Preemptive auto_now fix for Django 1.8 update_layer.py: use new-style transaction API Explicitly specify temporary redirection

 README                                             |  53 +-
 TODO                                               |   2 -
 layerindex/admin.py                                |   1 +
 layerindex/bulkchange.py                           |  29 +-
 layerindex/forms.py                                |  32 +-
 .../0011_auto__add_field_branch_updates_enabled.py | 198 +++++++
 ...ld_recipe_license__chg_field_recipe_provides.py | 202 +++++++
 ...ronment__add_field_branch_update_environment.py | 218 ++++++++
 layerindex/models.py                               |  78 ++-
 layerindex/recipedesc.py                           |   4 +-
 layerindex/restviews.py                            |   4 +-
 layerindex/templatetags/addurlparameter.py         |   2 +-
 layerindex/tools/import_layer.py                   |   2 +-
 layerindex/update.py                               | 528 ++----------------
 layerindex/update_layer.py                         | 616 +++++++++++++++++++++
 layerindex/urls.py                                 |  20 +-
 layerindex/urls_branch.py                          |   5 +-
 layerindex/utils.py                                |  13 +-
 layerindex/views.py                                |  59 +-
 manage.py                                          |  20 +-
 requirements.txt                                   |  38 +-
 settings.py                                        |   2 +-
 templates/404.html                                 |   2 +-
 templates/base.html                                |  22 +-
 templates/base_toplevel.html                       |   3 +-
 templates/layerindex/about.html                    |   2 +-
 templates/layerindex/bulkchange.html               |   2 +-
 templates/layerindex/bulkchangereview.html         |   8 +-
 templates/layerindex/bulkchangesearch.html         |   8 +-
 templates/layerindex/classic_base.html             |  10 +-
 templates/layerindex/classicrecipedetail.html      |   2 +-
 templates/layerindex/classicrecipes.html           |  10 +-
 templates/layerindex/classicstats.html             |   4 +-
 templates/layerindex/detail.html                   |  14 +-
 templates/layerindex/duplicates.html               |   1 -
 templates/layerindex/editlayernote.html            |   2 +-
 templates/layerindex/layers.html                   |   8 +-
 templates/layerindex/machines.html                 |  10 +-
 templates/layerindex/profile.html                  |   2 +-
 templates/layerindex/recipedetail.html             |  12 +-
 templates/layerindex/recipes.html                  |  12 +-
 templates/layerindex/reviewdetail.html             |  14 +-
 templates/layerindex/reviewlist.html               |   2 +-
 templates/registration/activate.html               |   2 +-
 templates/registration/activation_email.txt        |   2 +-
 templates/registration/login.html                  |   4 +-
 .../registration/password_reset_complete.html      |   2 +-
 templates/registration/password_reset_email.html   |   2 +-
 urls.py                                            |   6 +-
 49 files changed, 1557 insertions(+), 737 deletions(-)
 create mode 100644 layerindex/migrations/0011_auto__add_field_branch_updates_enabled.py
 create mode 100644 layerindex/migrations/0012_auto__chg_field_recipe_license__chg_field_recipe_provides.py
 create mode 100644 layerindex/migrations/0013_auto__add_pythonenvironment__add_field_branch_update_environment.py
 create mode 100644 layerindex/update_layer.py
Signature · 1 line
2.5.5