aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/admin.py
AgeCommit message (Collapse)Author
2017-12-21admin: fix dependency display and searchPaul Eggleton
* Allow the model's __str__() function to control what is shown for each dependency item as per other model admins * Enable searching for PACKAGECONFIGs by recipe name Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2017-12-20admin: fix regression in ClassicRecipe adminPaul Eggleton
Since we added the "packageconfig" to Recipe we need to exclude it from the admin or we see an error when we try to open ClassicRecipe in the admin site. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2017-12-18update_layer.py: Save and show recipe dependenciesAmanda Brindle
Added a model for the PACKAGECONFIG variable, which has a one to many relationship with the Recipe model. Added models for static build dependencies and dynamic build dependencies, both of which have a many to many relationship with the Recipe model. These objects are created in update_layer.py and are displayed on the Recipe detail page. Added a depends search option for recipes, allowing users to search for recipes that depend on any particular recipe. Use "depends:recipename" in the recipe search to activate this. Fixes [YOCTO #12129] Fixes [YOCTO #11415] Signed-off-by: Amanda Brindle <amanda.r.brindle@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2017-09-27Indicate if layer has YP Compatible certificationAmanda Brindle
Allow admin to create Yocto Project versions with the version name, description, an icon link that represents that version, and a link that contains more information about the version. Admins who have the "set_yp_compatibility" permission can then decide if a layer has Yocto Project compatible certification, and if it does, admin can choose which version of Yocto Project the layer is compatible with. If a layer is deemed compatible, the version's icon will appear next to the layer's name, and the icon be a clickable link to a page with more information. Fixes [YOCTO #11452] Signed-off-by: Amanda Brindle <amanda.r.brindle@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-16Record and display update logsPaul Eggleton
At the moment it's a bit difficult to get update logs out of the environment in which the update script is being run. In order to make the logs more accessible, create a LayerUpdate model to record the output of update_layer.py separately for each layerbranch and tie the created LayerUpdates together with a single Update model per session. We provide two ways to look at this - a Tools->Updates page for logged-in users, and there's also an "Updates" tab on each layer that is accessible to anyone; which one is useful depends on whether you are looking at the index as a whole or an individual layer. Update records older than 30 days are deleted automatically by default. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-07admin: add an action to duplicate a branchPaul Eggleton
Add an action to duplicate a Branch object, along with all of the LayerBranches (and LayerMaintainers and LayerDependencies) underneath it. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-10-18layerindex: Add distro to web interface and modelLiam R. Howlett
Add the distros to the index. This looks a lot like the machines and allows users to search for a particular distro. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com> Added associated migration. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2016-06-12Handle Python 2 and Python 3 branches in the same indexPaul Eggleton
Add a model to support setting a python command and virtualenv per branch, which allows you to parse master with python3 and krogoth with python2 for example. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-11-04admin: enable adding layer branchesPaul Eggleton
Allow editing the layer/branch fields when adding a layer branch record. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-09-05Add support for importing OE-Classic recipesPaul Eggleton
Add a script for doing a one-time import of OE-Classic recipe information, so comparisons against OE-Core can be performed; this is stored using a new ClassicRecipe model supporting additional fields for tracking migration status. The migration status fields can be updated as well as viewed and summarised in graph format. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-08-11Add recipe bulk change featurePaul Eggleton
This provides a way to set "meta" fields (SUMMARY, DESCRIPTION, HOMEPAGE, BUGTRACKER, SECTION, and LICENSE) for a number of recipes at once, and then download those changes in the form of one or more patch files which can be submitted for merging into the layer. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-06-17Collect bbappends and bbclasses for each layerPaul Eggleton
Collect bbappend/bbclass info during the update process and display it on the layer detail page. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-05Add support for handling multiple branchesPaul Eggleton
Change the data structure to support multiple branches. At the top level there is a set list of Branch objects, and then a LayerBranch object between each layer and the maintainers, dependencies, recipes and machines, so that the set of each can be different per branch. The branch is a session option, and can be selected via a drop-down that is shown for all pages. Additionally, with this change we avoid the need to run the update script within a build environment set up with oe-init-build-env - since we need a specific version of BitBake per branch we now use our own copy of BitBake which is fetched by the script itself. The update script will need to be called multiple times however - once per branch. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-26Handle updating of inc files/classes within same layerPaul Eggleton
If we aren't doing a full refresh, when changes to an included/required file or an inherited class occur we need to update all of the files that depend on them. BitBake records these dependencies, so read them and record them against each recipe. At the moment this only handles dependencies within the same layer; that is probably sufficient to handle most changes for the purposes of extracting the data this application cares about. A future improved solution will probably involve making use of BitBake's cache rather than and parsing all layers and their dependencies rather than individual recipes. This change also adds -x/--nofetch and -n/--dry-run options for debugging as well as some further debug messages. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-24Collect machine information from layersPaul Eggleton
Look for conf/machine/*.conf and add a record for each file found. These are displayed in the layer detail page if any are present. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-23Add stacked dependency/maintainer records to layer in adminPaul Eggleton
Allows adding/editing dependencies and maintainers against each layer more easily. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-19Admin interface improvementsPaul Eggleton
* Set custom title for admin pages * Use reasonable field widths on editing pages * Allow filtering and searching by useful fields * Disable editing of recipe records * Disable editing of layer fields set by the update script * Show "Layers" instead of "Layer items" for layers * Show "Layer dependencies" instead of "Layer dependencys" * Show layer name in maintainers listing Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-14Enable auditing using django-reversion and django-reversion-comparePaul Eggleton
Collect history for changes, and allow browsing / reverting / comparison within the admin interface. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-13Initial commit of layerindex-webPaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>