summaryrefslogtreecommitdiffstats
path: root/bitbake
Commit message (Collapse)AuthorAgeFilesLines
* bitbake: Fix default function parameter assignment to a listPaul Eggleton2015-08-1910-31/+58
| | | | | | | | | | | | | | With python you should not assign a list as the default value of a function parameter - because a list is mutable, the result will be that the first time a value is passed it will actually modify the default. Reference: http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments (Bitbake rev: 7859f7388f2e3f675d0e1527cfde18625f36f637) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: move code from setup_lv_tests to setUpEd Bartosh2015-08-171-30/+27
| | | | | | | | | | | As ProjectLVSelectionTestCase was removed there is no point to keep this function. Moved code back to setUp method. (Bitbake rev: 8e9bd559c8ef0ebc9e8babbada06e710908bae08) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: remove ProjectLVSelectionTestCaseEd Bartosh2015-08-171-9/+9
| | | | | | | | | | | | | Moved code from ProjectLVSelectionTestCase.test_single_layersource to LayerVersionEquivalenceTestCase.test_compatible_layerversions. Removed ProjectLVSelectionTestCase. (Bitbake rev: b322cb6f5fec0b979a646605ed0d7646764c07a7) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: add header to orm/test.pyEd Bartosh2015-08-171-0/+23
| | | | | | | | | | Added header and module docstring. (Bitbake rev: f393d3b8943375d18ebd6bc5e00dec5f288b46ec) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: simplify testcase codeEd Bartosh2015-08-171-3/+2
| | | | | | | | | | | Replaced 2 asserts with one in test_single_layersource method of ProjectLVSelectionTestCase. (Bitbake rev: 54131366ac2a8fc7866fb1293f5cd0e3da13ea46) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: remove duplicated codeEd Bartosh2015-08-171-17/+0
| | | | | | | | | | | Removed test_dual_layersource method from ProjectLVSelectionTestCase as identical method presents in LayerVersionEquivalenceTestCase. (Bitbake rev: 5611c6b911e8a638f462e80e924ac9265a2199f5) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: reuse common codeEd Bartosh2015-08-171-54/+36
| | | | | | | | | | | Moved setup code of LayerVersion tests to a function and call it from setUp methods of 2 classes. (Bitbake rev: 65121e71078499ba585cc6a42018339d7884322e) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: reformat LayerVersionEquivalenceTestCaseEd Bartosh2015-08-171-50/+74
| | | | | | | | | | | | Reformatted to increase readability and satisfy pylint. Added docstings. Shortened variable names. (Bitbake rev: 01e6fb74b60b1a66873f33866a35bdf6b2f807bd) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: rewrite LILSUpdateTestCaseEd Bartosh2015-08-171-13/+17
| | | | | | | | | | Reformatted code. Added docstings. (Bitbake rev: 0d1a9038b0cface75d3c858543e411f519b4ef5e) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: rewrite test for LayerSource modelEd Bartosh2015-08-171-12/+18
| | | | | | | | | | Rewritten LayerSourceVerifyInheritanceSaveLoad class from scratch. (Bitbake rev: 34ea4c661ee48e1986fe2375b94e5b1c5c16c8ee) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix test_build_layerversion test caseEd Bartosh2015-08-171-1/+1
| | | | | | | | | | | | | The reason of test failure is that Django querysets are different even if they contain the same objects. Fixed by converting querysets into lists. (Bitbake rev: c1abc6f0905e4321668a483a3d5be7cef3c25401) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: remove prints from the test codeEd Bartosh2015-08-171-4/+0
| | | | | | | | | | Removed prints as they make test output harder to understand. (Bitbake rev: 922d37bfee7cc75aa7a3fd5b76abc33df57d3704) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: Added IDs to elements used in testingMihail Stanciu2015-08-173-5/+5
| | | | | | | | | | | | | Added static IDs to elements commonly used in the testing process so that future UI modifications would not break tests as easily. [YOCTO #7380] (Bitbake rev: 04e896d7fb170271fb09dae5c2a42acb4b68f513) Signed-off-by: Mihail Stanciu <stanciux.mihail@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: Add tests for xhr_importlayerSujith H2015-08-171-0/+30
| | | | | | | | | | | | | | Inorder to make sure if layer name which we import is already available in toaster database, a test case has been included. This would help user to identify if layer name which has been provided in the import layer web page already exists or not. (Bitbake rev: 26e2b4a997503b82dc5535ce087565a0d6418141) Signed-off-by: Sujith Haridasan <sujith.h@gmail.com> Signed-off-by: Sujith Haridasan <Sujith_Haridasan@mentor.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix invalid fields in the package details pageAlexandru DAMIAN2015-08-172-3/+3
| | | | | | | | | | | | | | This patch safeguards referencing invalid fields in the project details template, and fixes errors thrown in the page. [YOCTO #7992] (Bitbake rev: 64b30bc15e87f81eddac79872b2282c435827ad0) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Fix typo in set up script outputBelen Barros Pena2015-08-171-1/+1
| | | | | | | | | | | Removing an spurious 'it' when setting the build directory. Thanks to Scott Rifenbark for finding the typo! (Bitbake rev: dd644a2c87e651c3990520759bab55a56ba110d1) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: reduced amount of instance attributesEd Bartosh2015-08-101-31/+24
| | | | | | | | | | | | | Used local variables instead of instance attributes in ViewTests.setUp Fixed pylint warning: Too many instance attributes (9/7) (too-many-instance-attributes) (Bitbake rev: 0c419902e5f58dcee9b7fbe9af1928da37e18399) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix pylint warning 'no space allowed'Ed Bartosh2015-08-101-5/+5
| | | | | | | | | | Fixed pylint warning "No space allowed before/after bracket". (Bitbake rev: 0b0f360b3660373716189995f3d33ffbc1b21db5) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix test_get_json_call_returns_json againEd Bartosh2015-08-101-3/+7
| | | | | | | | | | | | Fixed this test case again after rebase. Improved it to check for all returned keys. Previously it was checking only 3 of them. (Bitbake rev: 2deef2e86a09b6cb907bfeff56774f889cfe30a1) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: don't catch json.load exceptionsEd Bartosh2015-08-101-8/+3
| | | | | | | | | | | | It doesn't make sense to catch json.load exceptions in the testing code. If API throws traceback it's better to see it instead of error message. (Bitbake rev: 207cb1d16ab089995f23b6070be358870506aa62) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: add header and docstingsEd Bartosh2015-08-101-1/+28
| | | | | | | | | | Added header and docstrings to toastergui tests module. (Bitbake rev: d46bc24e95fa27cee686b84fbd8c6407efa2635b) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: remove unused importEd Bartosh2015-08-101-1/+1
| | | | | | | | | | | Fixed pylint warning: Unused Build imported from orm.models (unused-import) (Bitbake rev: 30585f7e37966e827861c25a0cc3bf9e3bd2f667) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: get rid of class attributesEd Bartosh2015-08-101-4/+2
| | | | | | | | | | | LAYER_NAME and RECIPE_NAME attributes don't make sense as they're used only once. (Bitbake rev: 86936224f49810147daa91ea2a050b0e7a82f106) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: put all test cases into one classEd Bartosh2015-08-101-34/+29
| | | | | | | | | | | | | | Moved all functionality (one setup method and one test case) from ProvisionedLayersProjectTestCase and XHRDataTypeAheadTestCase to AllProjectsViewTestCase. Renamed AllProjectsViewTestCase -> ViewTests. (Bitbake rev: d87dc9a03bb2d1c21551894d611a4312254f46ef) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: get rid of AllProjectsViewTestCaseEd Bartosh2015-08-101-4/+1
| | | | | | | | | | | | | Removed AllProjectsViewTestCase class as it had one method 'setUp' and used as a parent for another class AllProjectsViewTestCase. Moved setUp method to AllProjectsViewTestCase. (Bitbake rev: b68e4d994eb825c1039fd90d197724b77aeebd5d) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: wrap long linesEd Bartosh2015-08-101-13/+27
| | | | | | | | | | Fixed pylint warning Line too long (line-too-long). (Bitbake rev: 37f7588df9759481080db56462a271ca808ba9ff) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix test_get_json_call_returns_json testEd Bartosh2015-08-101-6/+6
| | | | | | | | | | | This test case used wrong field name. Fixed by renaming field 'lists' -> 'rows'. (Bitbake rev: 534a302a413319d2573c894b1c1077ac0578bbb1) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: runqueue.py: Add provides to taskdepdataMariano Lopez2015-08-101-1/+2
| | | | | | | | | | | | | | | Currently bitbake is the only one that knows the relation between PN and PROVIDES. In some cases it is needed to have this relation in the data store (the bootloader it's a good case). This adds the PROVIDES to the taskdata, so it would be in the data store as one field of BB_TASKDEPDATA. (Bitbake rev: a660787311d2961c66c0443bf0e2e094c9baef1b) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: layerBtn Fix build trigger mechanismMichael Wood2015-08-064-11/+16
| | | | | | | | | | | | | The new project page is no longer responsible for triggering the build so add a handler for this in layerBtn which is used in the layerdetails and layers pages. This also removes the conflicting and redundant handler for this in the layerdetails. (Bitbake rev: b4c389443bdd121121fd1d1a9006a9f1f63f186f) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: Fix typo on layers in project filter conditionMichael Wood2015-08-061-2/+2
| | | | | | | | | | | | | Should be & rather than "and" which was returning the truth'd value of the and condition. [YOCTO #8114] (Bitbake rev: 58035667e433f2b77f5cd48240dd051c35476284) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: Move click disabled check after table ready eventMichael Wood2015-08-061-4/+6
| | | | | | | | | | | | We were attaching this handler before the elements were fully ready in the dom. Which allowed these links although disabled to take users to the change machine page. (Bitbake rev: 8245a7d679914ca7d4548ab7e83b5047ff8a1ff5) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: Machine select button url parameters changeMichael Wood2015-08-061-1/+1
| | | | | | | | | | | | Update the url for changing the machine in the project page. [YOCTO #8113] (Bitbake rev: 6e46ad4aa404d80fded27db1fb072d35250cfcfb) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastermain: Add a longer default database timeoutMichael Wood2015-08-061-0/+6
| | | | | | | | | | | | | | | When using sqlite we sometimes see Database Locked exceptions when we fire off database calls asynchronously from the UI. We need sqlite to wait a bit longer for the lock to be released. n.b In production setup we hopefully wouldn't be using sqlite. docs.djangoproject.com/en/1.6/ref/databases/#database-is-locked-errors (Bitbake rev: 7f3a4e0330f4de3ba8e092bc1c15a53d8c2be073) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: Move layerdetails view definition to the views.pyMichael Wood2015-08-063-25/+17
| | | | | | | | | | | | The layerdetails view definition was moved to tables though it isn't a table. We have a mechanism for the JSON response for this page so use this instead of a custom class. (Bitbake rev: b5100bfd4cb32a9b59b0554c6dbc3a4295da7d8e) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: Fix toastertable table header referenceMichael Wood2015-08-062-2/+2
| | | | | | | | | | | | A header id was mistakenly added to the table template which was not also added to the simple version of the toaster template. We don't need this id so remove it. (Bitbake rev: daf902e2a6f736b9c8ef6492143fdbf856451559) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: libtoaster typeahead Add in results highlighterMichael Wood2015-08-061-4/+8
| | | | | | | | | | | | | Add a highlighter for the results in the typeahead, this highlights the part of the results which is currently being matched. This is a modified version of the bootstrap stock function with added escaping and the addition of the details information. (Bitbake rev: 3a6bad55a84d8d374a23f488ce42fed9b927c4f2) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: libtoaster: typeahead resiliency for slow serverMichael Wood2015-08-061-1/+17
| | | | | | | | | | | | | | When we have a slow request we don't want to see the typeahead results changing in the middle of typing the item. To do this we make sure that requests to the typeahead can only happen sequentially and that if results have been retrieved but the input is now empty we don't bother showing the results. (Bitbake rev: 0b508e8b4a9e25c223c6c11ecd6d0e1aab727e8c) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: tests Fix and more comprehensive typeahead unittestMichael Wood2015-08-061-19/+69
| | | | | | | | | | | | Fix the currently broken unit test for typeaheads and add some additional fields to check for in layers, projects, recipes and machines typeaheads. (Bitbake rev: 5700cd269e3a4fd517e16a3a19e61a23091df465) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: views Standardise the fields project layer responseMichael Wood2015-08-061-2/+3
| | | | | | | | | | | | We need to keep consistent the field names of these objects so that we can use the object response from different calls. e.g. layer dependences or listing layers in the project. (Bitbake rev: 5c7004908f6916c0d279299c47b9dca3237148ec) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toasterui: views Remove unused xhr_typeahead view definitionMichael Wood2015-08-064-43/+32
| | | | | | | | | | | | | The one thing left being used in this definition was a response which contains the list of layers which would be deleted if you change the project release. This patch moves that to it's own url/endpoint and updates the frontend reference which is using it. (Bitbake rev: 1cc19c84ee97182f39eae0338c712f7a2b40a18d) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: libtoaster Throw an exception no url is specifiedMichael Wood2015-08-061-0/+2
| | | | | | | | | | | At a minimum for this typeahead to work we need a url parameter to call for a JSON reponse of items to filter on. (Bitbake rev: 80b214d93c5df63a251b807ca93f81f00c6bfeb2) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: Switch to using the new toaster typeahead widgetMichael Wood2015-08-067-26/+37
| | | | | | | | | | | | Switch the existing typeahead inputs to use the new typeahead widget. This means we have a defined mechanism and end point for typeaheads which meets the design specification. (Bitbake rev: 31a8ae7909347f7b6edde5bbdf02b86dc1b32ed0) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: Add typeaheads layers, machines, projects, recipesMichael Wood2015-08-062-0/+156
| | | | | | | | | | | | | Implementation of typeahead widgets for layers machines and recipes typeahead. [YOCTO #7152] (Bitbake rev: 913d01758564db2f5fae4451bf0fdca38a1b3d61) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: widgets Add a typeahead widgetMichael Wood2015-08-061-0/+52
| | | | | | | | | | | | | The typeahead behaviour is significantly different from searching in a table so we need a separate widget to do this. [YOCTO #7152] (Bitbake rev: 195c5407a9de29d97f2525b9ae6c827afb934e37) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: tables Use util functions for the common querysetsMichael Wood2015-08-061-8/+3
| | | | | | | | | | | Use the new utils functions on the project object to get the common querysets that we also use in tables. (Bitbake rev: 5e013a9bc3deb03bd6bac357b9ecb81c3c77b255) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: orm Add util functions to return common querysetsMichael Wood2015-08-061-1/+40
| | | | | | | | | | | | We use these querysets when creating tables of results and also when we want to have a typeahead search. These can also form the basis of future API endpoints. (Bitbake rev: 2a10fecd985343802f0e99c6fff25c28980eee20) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: orm Add util function to return the url to layerversionMichael Wood2015-08-061-0/+4
| | | | | | | | | | | Save duplicating this call and make a utility function for it on the Layer_Version object. (Bitbake rev: 32d382315bad37cebbe67ca3287085f3d856a9ed) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: add action to empty "most built" recipesBelen Barros Pena2015-08-061-0/+1
| | | | | | | | | | | | | | It is not very good to just tell people: "this is empty because you haven't done anything". We should politely invite them to do something about it. Thus adding a "Choose a recipe to build" link to the all compatible recipes page whenever the 'most built recipes' section is empty. (Bitbake rev: 8d2ed32cd09cf6cb96521fd42789faae99656fad) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: fix spacing in the import layers pageBelen Barros Pena2015-08-061-2/+2
| | | | | | | | | | | Adjust the space between the first fieldset and the tabs, and the help text and the first form field. (Bitbake rev: 68086d260842c12e5459c719f383b045fb0b3c2d) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: remove project name from layer change notificationBelen Barros Pena2015-08-061-5/+3
| | | | | | | | | | | | | | | | | The project name is always a link to the basic configuration page, which looks quite silly when you change layers from that page. Since I guess the idea is reusing those notifications everywhere, I've replaced the project name with a generic 'to your project' / 'from your project', so that they read right no matter where you see them. (Bitbake rev: 59bcafa712b9a16b647bd26b3bd738ae6fc21eaa) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>