This is the work to introduce the image customisation feature to Toaster. As a version 1 this allows basic adding and removing packages of a customised version of a pre-existing image recipe. To enable this feature run toaster with the environment var set CUSTOM_IMAGE=1
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=michaelw/toaster/ic-6 Michael Wood (34): toaster: localhostbecontroller CustomRecipe now base_recipe is Recipe toaster: models fall back to a sensible string for no vcs reference toaster: ToasterTables simplify filter function move common part to widget toaster: tablejs Add an event handler to manually trigger a data reload toaster: orm Add sum of dependencies size function to PackageDependencyManager toaster: orm make CustomImageRecipe inherit from Recipe toaster: orm: Add db migration for new CustomImageRecipe inheritance change toaster: orm Add ProjectPackage table toaster: orm: Add db migration for new ProjectPackages table toaster: buildinfohelper Add the concept of ProjectPackages toaster: orm add CustomImageRecipe generate contents function toaster: move CustomImageRecipe generation to API entry point toaster: views Add view to download custom recipe toaster: tables Add table for Packages and update SelectPackagesTable toaster: Continue front end features to custom image recipe page. toaster: newcustomimage Move modal dialog out of newcustomimage template toaster: Add recipe details page toaster: toastertable remove title from Show all in table toaster: views xhr_customrecipe_packages clean up API toaster: toastergui tests Update to reflect changes to CustomImageRecipe toaster: toastergui tests Add unit test for download custom recipe toaster: orm get_project_layer_versions to return layer_version objects toaster: orm Add convenience method to get all pkgs in a CustomImageRecipe toaster: libtoaster Add createCustomRecipe method toaster: newcustomimage_modal use libtoaster method for new CustomRecipe toaster: tables add recipe download link to CustomImagesTable toaster: tables Change SelectPackagesTable to use ProjectPackage toaster: API allow CustomImageRecipe to be updated after creation toaster: xhr_customrecipe_id change to use ProjectPackage toaster: xhr_customrecipe_packages add GET info for package response toaster: customrecipe Add further front end features using new API toaster: toastergui tests Update package test to use ProjectPackage toaster: tables SelectPackagesTable rename recipe_id to custrecipeid toaster: toastergui tests Add addtional data to the setUp for new tables bitbake/lib/bb/ui/buildinfohelper.py | 113 +++++- .../toaster/bldcontrol/localhostbecontroller.py | 29 +- ...del_field_customimagerecipe_name__del_field_.py | 433 +++++++++++++++++++++ ...erecipe_name__del_field_customimagerecipe_id.py | 379 ++++++++++++++++++ bitbake/lib/toaster/orm/models.py | 95 ++++- .../toaster/toastergui/static/js/customrecipe.js | 176 ++++++++- .../lib/toaster/toastergui/static/js/libtoaster.js | 27 ++ .../toaster/toastergui/static/js/newcustomimage.js | 49 --- .../toastergui/static/js/newcustomimage_modal.js | 28 ++ .../toaster/toastergui/static/js/recipedetails.js | 52 +++ bitbake/lib/toaster/toastergui/static/js/table.js | 7 + bitbake/lib/toaster/toastergui/tables.py | 239 +++++++++--- bitbake/lib/toaster/toastergui/templates/base.html | 1 + .../toaster/toastergui/templates/customrecipe.html | 186 ++++++--- .../toastergui/templates/newcustomimage.html | 44 +-- .../toastergui/templates/newcustomimage_modal.html | 33 ++ .../toastergui/templates/pkg_add_rm_btn.html | 35 +- .../toastergui/templates/recipedetails.html | 180 +++++++++ .../snippets/pkg_dependencies_popover.html | 14 + .../toaster/toastergui/templates/toastertable.html | 2 +- bitbake/lib/toaster/toastergui/tests.py | 145 +++++-- bitbake/lib/toaster/toastergui/urls.py | 17 +- bitbake/lib/toaster/toastergui/views.py | 262 ++++++++++--- bitbake/lib/toaster/toastergui/widgets.py | 5 +- 24 files changed, 2171 insertions(+), 380 deletions(-) create mode 100644 bitbake/lib/toaster/orm/migrations/0029_auto__add_projectpackage__del_field_customimagerecipe_name__del_field_.py create mode 100644 bitbake/lib/toaster/orm/migrations/0029_auto__del_field_customimagerecipe_name__del_field_customimagerecipe_id.py delete mode 100644 bitbake/lib/toaster/toastergui/static/js/newcustomimage.js create mode 100644 bitbake/lib/toaster/toastergui/static/js/newcustomimage_modal.js create mode 100644 bitbake/lib/toaster/toastergui/static/js/recipedetails.js create mode 100644 bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html create mode 100644 bitbake/lib/toaster/toastergui/templates/recipedetails.html create mode 100644 bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html -- 2.1.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
