summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui
Commit message (Collapse)AuthorAgeFilesLines
* bitbake: toastergui: fix the second 'view all targets' linkBelen Barros Pena2015-01-231-1/+2
| | | | | | | | | | | | | The project page has 2 links to the all targets page. The one at the top of the page is working, but not the one further down. This patch sorts that out. [YOCTO #7147] (Bitbake rev: ad6a2d42b9ce7ce317184d978253e5506be7e47f) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: minor fixesAlexandru DAMIAN2015-01-231-1/+8
| | | | | | | | | | | | This is a minor fixes patch. - legacy sorting by "timespent" does not crash the builds pages - missing xhr_configvaredit view in observer mode is added (Bitbake rev: bd4ff7a15e74e1d4af8ea3dbaaed141678046a9b) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastegui: project page build selected targetsAlexandru DAMIAN2015-01-232-6/+25
| | | | | | | | | | | | Fixing the action on the "Build selected targets" button. Remove "build-button" duplicate id from the build page. [YOCTO #7047] (Bitbake rev: 8278d7b15b58484af93d952e594f29dabb9200a9) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: fix all targets page searchAlexandru DAMIAN2015-01-231-2/+5
| | | | | | | | | | | | | | | This fixes the display of layers in all-targets page search/filtering usage pattern by displaying layer-equivalence class. The significant impact is the correct display of the list size for search/filtering actions [YOCTO #7051] (Bitbake rev: 4957ec63a11d51dfac2252263e4d26c705eb31e9) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: fix all-targets redirectAlexandru DAMIAN2015-01-233-3/+3
| | | | | | | | | | | Fixes the all targets redirect to /api/1.0/targets. [YOCTO #7147] (Bitbake rev: f1cccafb4c7aa2c338e29ec5d2ea190dfeceb132) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: newproject default release selection fixAlexandru DAMIAN2015-01-231-13/+19
| | | | | | | | | | | | This patch fixes the default project release selection to obey the DEFAULT_RELEASE name set in ToasterSettings. [YOCTO #7035] (Bitbake rev: bcd7ba013b973d3b3ac1e0845acf60b80cb227c2) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: "Run again" button in build pagesAlexandru DAMIAN2015-01-232-3/+3
| | | | | | | | | | | This patch fixes the "Run again" button for the completed builds. [YOCTO #7173] (Bitbake rev: 37125f2b52492f8bee465611e60514b365541892) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: fix duplicate IDs all builds pageAlexandru DAMIAN2015-01-231-27/+10
| | | | | | | | | | | | This patch fixes the duplicate IDs found in the all builds page, originating in the "Project" column filter. Also fix misspell "Log1" instead of "Log". (Bitbake rev: bd681cb2ce349dd7de01c98d5089a368c4514c37) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: save cookie for orderby/page size settingsAlexandru DAMIAN2015-01-232-6/+11
| | | | | | | | | | | | We save the current settings as cookies on the server side for the layers, targets and machines pages under Project pages. [YOCTO #6961] (Bitbake rev: 58b35c055e37b5e1552d8ba3db2e05ea4ee85023) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: project configuration variables pageDavid Reyna2015-01-213-26/+730
| | | | | | | | | | | | | | Implement the project configuration variables page. AlexD made whitespace changes and a minor fix. [YOCTO #6588] (Bitbake rev: 909fa19f20e909820aa484967b7fe2a34d89ab49) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: project builds pageAlexandru DAMIAN2015-01-212-230/+158
| | | | | | | | | | | | This is a complete re-write of the "Project builds" page based on the "All builds" page in managed mode. [YOCTO #6589] (Bitbake rev: 0353d49ae934c4595408e1b7a1443769f095f2aa) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: all builds page lists failed build requestsAlexandru DAMIAN2015-01-164-199/+742
| | | | | | | | | | | | | | | | | This patch modifies the all builds page by splitting the page into two variants - the "interactive" (default) and "managed" mode versions. In the "managed" mode version, we display build requests instead of builds, including the failed build requests that have no build associated with them. [YOCTO #6671] (Bitbake rev: c5f5fb80308228585aa7ff9721352feb5ed9c961) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: layerdetails Remove compatibility settingMichael Wood2015-01-163-29/+3
| | | | | | | | | | Remove the layer compatibility configuration option from the layer details as this is not in the design. (Bitbake rev: c46492f5599da8af16af05ecc2d7aa7a8660416b) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Add layer details page featureMichael Wood2015-01-167-150/+1038
| | | | | | | | | | | | | | This commit adds the layer details page which shows the metadata for the layer such as layer description, machines associated with the layer as well as the targets provided. If the layer is an imported layer this page also allows you to update the layer's configuration. >From this page you can add/remove the layer from the current project (Bitbake rev: c1442bc68ad8ba20c37b1a7cde1400297f4be811) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: implementation of project pageAlexandru DAMIAN2015-01-083-135/+246
| | | | | | | | | | | | | | This patch brings the project page in line with the design, including build error handling and suggestions. Includes some refactoring for already existing code. [YOCTO #6587] (Bitbake rev: 1ea658dcdfde5465d3ecdb97550e0a66cb8b122e) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Improve client side error handlingMichael Wood2015-01-087-33/+69
| | | | | | | | | | | | | Make use of the toastermain.settings.DEBUG flag to toggle the client side error logging. Make the error logging consistent by using console.warn/error across the project, this adds traceability to the warnings. Also handles the case where console is not available by stubbing it in libtoaster. (Bitbake rev: c34ebc51a6cbf90c64ef1ac461e475c6341f0f2a) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: importlayer Tidy up the page initialisationMichael Wood2014-12-181-10/+11
| | | | | | | | | | Tidy up the page initialisation and change the error logging so that it's consistent with other pages. (Bitbake rev: 3a5b78af4f3cab203824d933a73e82a41ab377e3) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Change the full stop to a colonBelen Barros Pena2014-12-181-1/+1
| | | | | | | | | | In the import layers notification for multiple layers there was a full stop where there should be a colon. (Bitbake rev: c23736003b788f2b45ae7cbcd7c7250ead2e5724) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Formatting changes to error messagesBelen Barros Pena2014-12-182-4/+4
| | | | | | | | | | | Just giving a bit of space to the content of the error messages we show when you try to import a layer that already exists. (Bitbake rev: 19b8ff1949072691dade96038af529200175843a) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: projectapp Add links to the imported layers notifyMichael Wood2014-12-184-13/+26
| | | | | | | | | | Adds links to layer details for each of the layers that has been added to the project. (Bitbake rev: 07e5c7c82519604501feb7d892db330c610978e9) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: importlayer Avoid namespace clash with layer nameMichael Wood2014-12-182-3/+3
| | | | | | | | | | This was causing validation issues as the layer name was being picked up from a different location in the dom. (Bitbake rev: 54165dd929ef304357806411cd70caf85b6132f0) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Importlayer add notify exactly which layers changedMichael Wood2014-12-184-23/+82
| | | | | | | | | | | | | | | This changes when the dependencies are added to the project so that we can know which ones were successfully added by waiting for the server to respond with a list. This is more reliable because we may have specified dependencies which are already in the project. To pass this information to the project page a temporary cookie is used with the values for the notification. (Bitbake rev: 23ca89dc3e0f0ea387649f1e9e8d7d50846048d6) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: tweaking the import layers formBelen Barros Pena2014-12-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes the following changes to the import layers form: * In the explanatory text at the top of the page, show only the release description (to match the information shown in all other pages) * Make sure the spacing between form fields and labels is consistent across the form * Change the 'Branch, tag or commit' label to 'Revision' and add some help text to the label * Change the help text and the input type in the layer description * Change the help text next to the form actions to match the new field ordering in the form (Bitbake rev: 1fae3ef8f87a836758519c85afb2762768c29efc) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Add import layer feature.Michael Wood2014-12-186-36/+533
| | | | | | | | | | | | | | | This feature allows users to import layers from git into their current project and associate it with the release of the current project and the dependencies for the newly imported layer with existing layers. It will also resolve the child dependencies of the dependencies added. [YOCTO #6595] (Bitbake rev: 017f5c746e894f9d87d927c848386459ea332378) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toasterui: refactor project layer finding logicAlexandru DAMIAN2014-12-181-31/+18
| | | | | | | | | | | This is a basic refactoring of the code computing the layer equivalence classes for a project, in order to bring common bits of logic in a single place. (Bitbake rev: 9bdd0a687ba74577f2c0f0b6c696433ea662d38f) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: libtoaster Add editProject and getLayerDepsForProjectMichael Wood2014-12-181-0/+49
| | | | | | | | | | Add two utility functions for editing project settings and returning the layer "dependencies" for a specified layer. (Bitbake rev: 5f98f245bdd381a141a018a7f9953a5510fbb4df) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: libtoaster Add a error handler to GET in makeTypeheadMichael Wood2014-12-181-0/+5
| | | | | | | | | | If the JSON data comes back from the request with an error set, have a default handler which logs the error to the console. (Bitbake rev: 9e3f2e2d985a575adb5520d8b517eac5ad6a15ed) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Initialise the 'change' icon tooltipsBelen Barros Pena2014-12-181-0/+3
| | | | | | | | | | | | All 'change' icons should have a tooltip that appears when you hover over them. The tootlip says (fittingly): "Change". Initialise those icons in the libtoaster.js file so that they work outside the project page. (Bitbake rev: c635dd71670030da78c52545d2bb32b8c485c1af) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: base Only show change project icon when > one projectBelen Barros Pena2014-12-181-0/+4
| | | | | | | | | | | | In the new build button, it only makes sense to change the selected project when there is more than one project in the Toaster instance. If the number of projects is 1, we hide the change project icon. (Bitbake rev: e354a40d7dbcd85fea9d37d3983428e4470df2dd) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: implement UI changes to allow file downloadAlexandru DAMIAN2014-12-1811-135/+276
| | | | | | | | | | | | | This patchset adds download links in the build analisys pages if toaster runs in managed mode. This allows the user to access data directly from the web interface. [YOCTO #6837] (Bitbake rev: 6000e1ae5c846e51932ecd0dc21e0fa02eb10357) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: remove the word 'project' from layers and machineBelen Barros Pena2014-11-281-2/+2
| | | | | | | | | | | | Remove the word 'project' from the 'Layers' and 'Machine' sections of the project page, following feedback from the QA team, who suggested that the word 'project' raised questions regarding the scope of the configuration, (Bitbake rev: 1bf19f66260aaca2caa300e976bf90479e2c48f3) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: release name consistencyBelen Barros Pena2014-11-284-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Small changes to the project, new project and all layers pages to ensure consitency in release naming across the interface. The changes are: * In the new project page, change the label 'release version' to 'release' * In the new project page, sort the releases in the dropdown menu in ascending alphabetical order * In the new project page, remove the release name that was showing between brackets after the release description in the dropdown menu * In the project page, make sure the release information shows the release description field instead of the release name, to keep consistency with the new project page * In the all layers page, provide some help text for the branch 'HEAD' (Bitbake rev: 9a90bf201dab83060f0bdd6ac08c72b8d62f6060) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix padding of build notificationsBelen Barros Pena2014-11-282-2/+6
| | | | | | | | | | | | | | In managed mode, we show the name of the project in the build notifications of the all builds page. The way we show the project requires modifying the default padding of the .alert class. This patch makes sure the padding modification is only applied in managed mode, i.e., when the project name needs to be shown. (Bitbake rev: d1cd8b229c402fae3499e35415ad79c0e11ee517) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: make 'latest builds' section consistent across pagesBelen Barros Pena2014-11-282-4/+19
| | | | | | | | | | | | | | | | Make sure that the 'latest builds' sections in the all builds page and the project page are identical: * no icon to represent build outcome * remove machine name * show date only when the build is more than 24 hours old * same date and time format (Bitbake rev: 99ac7379e5df6c5cc491c2be591b15ad7ec04caa) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix errors and warnings displayBelen Barros Pena2014-11-281-2/+18
| | | | | | | | | | | | In the 'Latest builds' section of the project page, show number of errors and number of warnings as we show them in the all builds page. (Bitbake rev: 3f6b33472820e339c0f057c2e30f25ec2a04366b) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: new project pageAlexandru DAMIAN2014-11-283-33/+92
| | | | | | | | | | | Patch that brings in to new project page according to specifications. [YOCTO #6596] (Bitbake rev: be357d147d525ac3d6b7bd33ca0aa594728ffedd) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: display Toaster exceptions and other fixesAlexandru DAMIAN2014-11-284-2/+44
| | | | | | | | | | | | | | | | | | | | | | | | Changing ToasterUI to log toaster exceptions on a different level than build errors. Updating the build dashboard to show Toaster exceptions. We add extra logging to console for exceptions. Fixed a problem where packages database entries were created instead of being looked up in the database, conficting with entries created to satisfy dependency information. Toaster now checks for invalid states at startup and performs needed cleanups. Removed loading reference to jquery-ui.min.css as we do not have this file. (Bitbake rev: 2378812bc24d433125fb940f110154f0ce638448) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: do not show project info in interactive modeAlexandru DAMIAN2014-11-281-3/+3
| | | | | | | | | | | | | | The most recent builds section showed the project name and the Run Again buttons regardless whenever the Toaster was in interactive or managed modes. These widgets have no meaning in interactive mode, and this patch disables the widgets if toaster is not running in Managed mode. [YOCTO #6776] (Bitbake rev: 86dced90db666aa73ebb7ebb48d64fc08f66e7e2) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: update layer search criteriaAlexandru DAMIAN2014-11-281-22/+37
| | | | | | | | | | | | | | | | | In order to accomodate the designs around imported layer, we add a "project" field for in the layer versions. The field must be set if and only if the layer is manually imported in the project. This will prevent information leakage between different projects. The views have been updated to perform relevant layer queries in a single location. (Bitbake rev: e1f7ec868b0702dfd27d5708581c134aaa6f4ae8) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: base Only show New Build button when there are > 0 projectsMichael Wood2014-11-282-4/+10
| | | | | | | | | | | Only show new build button if we have defined at least one project as we can't select a project to build against if there are no projects created yet. (Bitbake rev: 6daada59ee846c4e957bba3574dc262a0c79854d) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: do not show target if target name is emptyBelen Barros Pena2014-11-211-0/+2
| | | | | | | | | | | In the all targets table, all entries should have a target name. If a target does not have a name, something has not gone to plan, so don't show it. (Bitbake rev: 27023ce2d264ce05008ef9af33982b054c6a87b5) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix dependencies dialog layoutBelen Barros Pena2014-11-212-1/+4
| | | | | | | | | | | Remove the bottom margin of forms inside dependencies modal dialogs. (Bitbake rev: dc9b4a4ab06ed49f3fcab4f644b8bc136f19fdb0) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: add no results state to all layers pageBelen Barros Pena2014-11-211-0/+14
| | | | | | | | | | | When you search for a layer and your search returns no results, we should show you an alert and a link to show back all layers, as we do in all other tables. (Bitbake rev: c67a5dd8026833e167c58a17643febee130dbb35) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Tiny refinements to the new build button dialogBelen Barros Pena2014-11-212-3/+4
| | | | | | | | | | | | | | * Get rid of the display:block attribute for the "View all projects" link, to stop it from firing when you click outside (but next to) the link * Give some margin to the incomplete configuration alert (Bitbake rev: 83af0db872ea28965cd6007ad72ff210f67a4f30) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: project page remove additional tooltip for Change pencilMichael Wood2014-11-211-3/+3
| | | | | | | | | | | We have a global pencil icon tooltip so avoid two tooltips appearing by removing them from the project page. This also means it's one less place to update it. (Bitbake rev: c2021dda953db51f59fb115542ea4a329a854f76) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Add New Build Button featureMichael Wood2014-11-215-6/+227
| | | | | | | | | | | | | This adds a quick access dropdown menu feature for running builds on a selected project. [YOCTO #6677] (Bitbake rev: e92769b43b00764082a7cb2207e314b40510ef62) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: libtoaster: Add getProjectInfo utility functionMichael Wood2014-11-213-1/+27
| | | | | | | | | | | | Add a utility function to return a specified project's info/config This re-uses the existing server code path for the project edit except that it allows any project id to be used as a parameter (Bitbake rev: af42ea5f006c5cf55a7c57a42904f412639d261f) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Create libtoaster.js with some utility functionsMichael Wood2014-11-213-138/+239
| | | | | | | | | | | | Replace main.js with libtoaster. This can be a place for common functionality for toaster. Calling it lib... makes it more obvious as well as helps with code readability due to the namespacing. (Bitbake rev: cdf6178ae3675b40afca9f08d491ca1b7e45914e) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: layer name correlationAlexandru DAMIAN2014-11-214-41/+55
| | | | | | | | | | | | | | | | | | | | | | | | | This patch modifies how layers are identified and matched. Layers were primarely organized by the source of layer information, and Releases were separated by both layer git branches and originating source of layer information. This setup prevented mixing layers from different sources for a certain release, which didn't match the way people use Yocto Project / bitbake. This patch brings name-based indentification, where layers with the same name are assumed to be equivalent, in the sense of being able to substitute one another. To facilitate this identification to humans, layers are differentiated by GIT URI instead of layer sources, which was a rather arbitrary abstraction. Additional changes include modification to models in order accomodate for the new data structure, and to config file loading to match the new toasterconf.json layout. (Bitbake rev: 4357200aed522ad56cfd84917f877645b83b6a70) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: fix XSS injection points in projects pageAlexandru DAMIAN2014-11-124-34/+43
| | | | | | | | | | | | | | | | | We close XSS injection points in Projects page. * modify the json filter to properly escape HTML tags in strings * enable $sanitize to automatically sanitize dangerous HTML in user-supplied input * clean dangerous characters in targets field, as that field contents will be directly passed to a shell command Based on the vulnerability discovered and the patch provided by Michael Wood. (Bitbake rev: 23c440db9c076ca37e651bdbbdbefee54998e1dc) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>