summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui
AgeCommit message (Collapse)Author
2014-07-23toaster: add project main edit pageAlexandru DAMIAN
This is the first commit on the project main edit page. At this point we have: * the default settings for a newly created project * the ability to add targets * the ability to trigger a build command, and have the build executed Project layers now have an optional field, allowing for removal. Default meta, meta-yocto and meta-yocto-bsp layers cannot be optional. We add XHR calls for interactivity in the main page. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-23toaster: improved Project modelsAlexandru DAMIAN
A layer may live in a subdirectory of a git repository, so we add a field to track this setting in the Project layers. We add the Project schedule_build function, which creates a build request from the current project configuration. We also fix an import problem with Projects in views. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-09toaster: new project page implementationAlexandru DAMIAN
We add the logic to create a new project. This page also serves as user registration and silent login for users. Once the project is added, the main project page is displayed. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-04toaster: whitespace fixAlexandru DAMIAN
This patch is just a whitespace (end-of-line) fix. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-04toaster: add automated login in new project pageAlexandru DAMIAN
Toaster uses the Django authentication system to assign user accounts to the projects that are being created. In the current implementation, the user accounts are created/authenticated automatically, on the fly, based on the fields specified in the create new project page. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-04toaster: add project pagesAlexandru DAMIAN
We add the new project and project page skeletons. In the process, we add an identifier in the settings.py to detect whenever Toaster is running in managed mode, and a context processor to make this value available to the template processor. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-04toaster: remove strftime calls in filtersAlexandru DAMIAN
We remove the unneeded strftime calls in filters, as the filters can deal directly with datetime types. [YOCTO #6379] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-03toaster: fix no newline at end of fileRobert Yang
Add a '\n' to the last line of the file to fix: No newline at end of file Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-20toaster: Fix spacing and layout in no image files notificationBelen Barros
Close the definition list before adding the notification, and restrict the notification width to avoid uncomfortable line lenghts. Signed-off-by: Belen Barros <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-20toaster: display message if no images are generatedFarrell Wymore
Display message if no images are generated for a target. This commit was amended to have more conditions for displaying the message. [YOCTO #6094] Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-20toaster: refactor the target pageFarrell Wymore
the target (packages) page had to refactored to allow the displays to differ depending on the caller namely the license manifest link. Amended to make the link from the tag rather than the pathname itself. [YOCTO #6291] [YOCTO #6079] Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-12toastergui: fix built ETA calculationAlexandru DAMIAN
We fix the calculation showing the estimated time to build completion. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-05-21toaster: reduce redundant foreign key lookupsDavid Reyna
Replace redundant foreign key lookups with "with" to improve all recipes page load time. Do depends pre-lookup in the view class, and use python itertation instead of filter() all to achieve x16 processing speedup. [YOCTO #6137] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Conflicts: bitbake/lib/toaster/toastergui/views.py Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-05-21toaster: sort columns properly after edit columnsFarrell Wymore
If a sorted column is made invisible through the edit columns function, resort the table the its default order. [YOCTO 5919] Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-05-08toaster: fix span2 headings for packagesDave Lerner
[YOCTO 6147] Fix bug in views.py that put 'span2' class id in a 'clclass' key instead of the 'dclass' key. This fix exposed another problem in target.html and the target view function that used 'package_size' instead of 'size' as the 'clclass' which is inconsistent with the model field name, causing table data columns to be shown when the header is hidden. Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
2014-05-08toaster: Make sure layer branch only shows when not emptyBelen Barros Pena
In the recipe details and package details pages, the layer branch definition list elements should only show when the branch field in the database is populated. If the branch field is empty, we don't show them. The patch also removes all unnecessary data-toggle and data-original-title attributes. [YP #6152] Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-05-08toaster: sort outcome and sstate columns by string valueDavid Reyna
Sort the 'outcome' and 'sstate_result' columns by their description string values and not their numerical values. [YOCTO #5921] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2014-04-21bitbake: toaster: Fix Empty tasks filterBelen Barros Pena
Somehow the counter was set to count tasks with outcome 'not available', instead of outcome 'empty'. This patch fixes the problem. [YOCTO #6146] Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-21bitbake: toaster: Fix total number of tasks in build dashboardBelen Barros Pena
The total number of tasks in the build dashboard was counting _setscene tasks, which are not exposed by Toaster as separate tasks. This patch makes sure that _setscene tasks are not counted when calculating that number. [YOCTO #6145] Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-09toaster: add URI search path listDavid Reyna
Display the URI paths from SSTATE_DIR and SSTATE_MIRRORS in the Task page. [YOCTO #5996] 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>
2014-04-09toaster: sort on size in detail pagesDave Lerner
[YOCTO 5778] Implements the features described in the attachment to bugzilla 5778 - new global changes to the format of size data, and - adding sorts by selected columns to specific detail pages. Although new pagination and row search capabilities are shown on the screen shots for the 5778 attachment, those features are specified in a different bugzilla entry 5777 and are not implemented in this commit. Also, the 5778 spec includes table sorting for the recipe package detail page, but sorting for that page was not implemented in this commit due to complications with sorting then returning to a page that is only one URL fragment in a template. The scope of file changes are described below. Changes to support new 'size' field column formats... default.css - added sizecol class style (right justified) projecttags.py - changed filtered_filesizeformat to allow ".0" suffixes Changes that add class 'sizecol, span2(as spec'd) ' to <th> and/or <td> size columns were made to... dirinfo.py, package_built_dependencies.html, package_included_dependencies.html, recipe.html, bpackage.html, and target.html More significant changes to support detail page table sorting are: - tablesort.html: New created to implement the sort icons, directions, and table headings, and suppress sort handling if 'disable_sort' in context, without search or pagination elements ingrained in basetable_top. Confining the changes to this small file reduces the impact (testing and risk) on the larger set of files that arleady include basetable_top/bottom files. - view.py: Modified the following view functions with - trivial changes for size formatting to the views: target, - changes to package_built_detail, package_included_detail, package_included_reverse_dependencies to handle the sorting implementation as well as moving headings and size formatting for size columns from templates to the views. - Implementation of the detail sorting using above in: package_built_detail.html, package_included_detail.html, and package_included_reverse_dependencies.html to include the tablesort heading setup, format the size column, and iterate over the new sorted objects, suppressing sorts if table row count less than 2. Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-09toaster: hide tasks without order or outcomeDavid Reyna
Hide the incomplete tasks, those without order numbers and/or outcomes. [YOCTO #6060] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-09toaster: regex alternation filter caused django errorDavid Reyna
The combination of a regex filter specification that uses alternate, plus a search string, plus multiple search_allowed_fields, leads to a Django fatal error. Replace this regex filter for variables in local files with a simpler 'contains' against the project's directory plus a '/conf/' string. Alex rebased this on top of fix for #6048. [YOCTO #5962] 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>
2014-04-09toaster: fix filtering query for multiple filtersAlexandru DAMIAN
This is a fix for using multiple expressions in filters. Three different issues are touched: * added an explicit error message for incorrect filter usage * changed the value separator to something that will pass through from the browser to the actual code * changed the "and" operator for combining Q from a dubios lambda function to the standard operator.and_ Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-09toaster: keep number of rows across searchesAlexandru DAMIAN
This patch will make Toaster remember the selected number of rows to be displayed in tables across different searches. The number of rows setting will not be remembered if the the user leaves the page and subsequently returns to it. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-09toaster: show unique set-in files in configvarDavid Reyna
When listing the set-in files in the configure varaible table, only show each file once in that summary view. [YOCTO #6048] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-09toaster: disable 'size over total' sortDave Lerner
[YOCTO 6061] Disable size-over-total table column sorts in the image installed packages view because that field is a computed field and only model fields are sortable in the current table toaster implementation. Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-05toaster: added covered task listFarrell Wymore
if a task has a 'covered' indication, the list of tasks that covered the task are computed and displayed. amended to add tooltip. [YOCTO #5925] Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com>
2014-04-05toaster: correct package countFarrell Wymore
The package count was incorrect because it was counting anonymous packages. the full path of the image files was shortened to just the filename. [YOCTO 6087] [YOCTO 6091] Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com>
2014-04-05toaster: Fixes to the build dashboardBelen Barros Pena
* Add "on" before the date in the build status * Get rid of the extra space before the "and" in the build status * Make the errors and warnings links in the build status show the message content * Make sure that the "Images" section in the left navigation appears only for successful builds * Link the number of packages installed to the "Packages included" tab in the image information page * Remove unnecessary inline styles in the dashboard template * Make sure target names in the h1 are listed in alphabetical order Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-05toaster: Make tables happy in ChromeBelen Barros Pena
There is a known layout issue with Bootstrap tables in Chrome. This change applies a css fix for it, and changes the span classes in the variables table to improve formatting. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-05toaster: Fix the empty packages alertBelen Barros Pena
* Remove a tag in all capitals * Remove an unnecessary div * Fix a typo Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-05toaster: Fix "Recent builds" linksBelen Barros Pena
* Link the number of errors to the #errors section in the build dashboard * Link the number of warnigns to the #warnings section in the build dashboard * Link the build time to the build time page * Move some javascript that applies only to builddashboard.html to that template from main.js Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-05toaster: catch IndexError error in dictionary lookupsDavid Reyna
In the get_dict_value filter, there is the edge case where halted builds can lead to IndexError errors in dictionary lookups, so we need to catch those. [YOCTO #6067] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2014-04-05toaster: Changes to help textBelen Barros Pena
All help text strings have been reviewed by the technical writer, and some of them by Paul Eggleton. This patch implements their suggested changes. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-05toaster: Remove html validation errors in tasks.htmlBelen Barros Pena
Remove the duplicated class attribute and the name attribute. Also, make sure that the row blue highlight works without the name attribute when you land on the tasks table after clicking the order link in a task details page. The commit also fixes a typo in default.css. [YOCTO #6033] Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-05toaster: link task order to right tasks pageDavid Reyna
When linking from a task order number to the All Tasks page, automatically display the correct page for that link anchor. [YOCTO #5933] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-04-01toaster: secondary sort key as table's default orderDavid Reyna
Provide for a secondary sort key based on the table's default ordering when doing sort on alternate columns. [YOCTO #5920] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2014-04-01toaster: unbuilt package dependency formatsDave Lerner
[YOCTO 6057] For a package shown on the package build dependency page, the dependent packages may be unbuilt packages, as indicated with the dependent package's size set to -1. This fix changes the build template to use the same formatting functions for unbuilt dependent packages as the include package templates use for unbuilt dependent packages. Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
2014-04-01toaster: Update help text in format_vpackage_namehelp tagBelen Barros Pena
The text now says that the package has not been built. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-01toaster: Match search results form to no results formBelen Barros Pena
In the search results form, add the btn class to the clear search button and set its tabindex to -1 so that you don't accidentally clear the search when you want to search again. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-01toaster: Increase animation durationBelen Barros Pena
Increase the duration of the blue highlight animation from 7 to 10 seconds. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-01toaster: Fix the fade out animationBelen Barros Pena
Apply the animation to any element with the class .highlight Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-04-01toaster: Small tweaks to the packages included interfaceBelen Barros Pena
* Capitalise correctly the label "Reverse runtime dependencies" * Change dependency popover labels to match the rest of the interface * Make sure that dependency links go to the initial tab of the installed package details pages Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-01toaster: Remove trailing spaces from 'name'Belen Barros Pena
Remove all trailing spaces from 'name' because they show up in the filter headings, which I find incredibly annoying. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-01toaster: Show "No builds found" in the builds tableBelen Barros Pena
Making sure the h1 of build.html shows "No builds found" instead of "0 builds found" when a search returns no results. This matches the builds table to all other Toaster tables. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-01toaster: disable configvar sorts for value and filesDavid Reyna
Disable the sort on files because it sorts on the file array's first (and invisible) element. Disable the sort on values because the raw ASCII sort looks wrong to the general user, especially for values with leading spaces. [YOCTO #6004] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2014-04-01toaster: Display task descriptionRavi Chintakunta
Display task description as content of help bubble for a task. [YOCTO #5748] Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
2014-03-28toaster: filter tasks with cache attempts for all attemptsDavid Reyna
Adjust the filter for task cache attempts to include all attempts except SSTATE_NA. [YOCTO #5923] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-03-28toaster: fix dirinfo empty dir expansionDave Lerner
[YOCTO 6036] In the page that shows the directory layout for an image, if the directory is empty, then the directory folder icon should be black and the table row should not be 'expandable' on a mouse click. That behavior depends on the directory's child entry count calculated in the view function controlling that page. Two images in the database with the same directory path in the target image, but one with path having entries and the other not having any entries caused the path without entries to be clickable; the query for a directory's count of entries, didn't filter on the image id, only on the path. Signed-off-by: Dave Lerner <dave.lerner@windriver.com>