buildinfohelper: Make sure we use the orm defined value for loglevel

We need to consistently use LogMessage.INFO/WARNING/ERROR to make sure toaster knows
how to categories these rather than passing in the "raw" loglevel value
which in best case comes from python logging but worst case any value.

[YOCTO 6885]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
toasterbld: update checksettings command

We update the checksettings command to allow for upstream
git url detection at runtime by looking up a named remote
of a local repository.

Also various small fixes in check settings.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toastergui: Fix help text in packages 'Reverse runtime dependencies' tab

For those packages renamed at packaging time, the help text
in the 'Reverse runtime dependencies' tab was missing the
original package name.

[YOCTO #6327]

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Amend show rows options

In the templates basetable_bottom.html and basetable_top.html
remove the '2' and '5' options from the 'show rows' menu, and
add the '150' option as per design specs.

Alex edited conflicts.

Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toastergui: Add missing task descriptions

The "Prebuilt task could be based on" table we provide in the task
details page for prebuilt tasks is missing the task descriptions.
This patch adds them.

[YOCTO #6328]

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toastergui: Fix reverse dependencies tab for packages included

Make sure the reverse dependencies tab for included packages
shows a notification when the number of reverse dependencies
is 0, instead of an empty table.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Fix blue highlight for failed tasks

Change the background colour of table rows with the .error
class from white to transparent, to make sure the blue
highlight animation works when you click on the order
number in the task details page.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Remove sorting from "Size over total" column

The sorting in this column is tied to the sorting by
"Size". If we make both columns sortable, when you sort
by one of them it also sorts the other, and the table looks
as if you have sorted by 2 columns at the same time.

This was fixed in YOCTO #6061, but turned up again.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Remove extra <div> from build dashboard

For builds that generate no rootfs files, an extra <div>
was being added between the build status and the build
summary section. This commit removes the extra <div> and the
white space it created.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Tiny change to help text

Modify the help text we show for the "Task covered by"
information to indicate that a task can be covered by
more than one task.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Show failed tasks in the build dashboard

The build dashboard is supposed to show failed
tasks (if any) in the "Tasks" section.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toasterui: save build id in build request on first chance

We change the saving of the build id to the build request as
soon is the build is created, as to allow for a consistent
display of build data while build is in progress.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toastergui: update breadcrumb in analysis pages

If we are in managed mode, and we inspect a build that comes
from a project, we modify the breadcrumb as to display
the project from where the build originated.

[YOCTO #6776]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: we add static copies of AngularJS and related libraries

We add the Angular JS library, release 1.2.23
https://angularjs.org/

We add the Bootstrap directives for AngularUI, release 0.11.0
http://angular-ui.github.io/bootstrap/

The license ued for all libraries is MIT

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: fix layer source update code

We fix problems in the layer source update code related to
non-null field restrictions.

We add missing layer dependency update.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: fix Project page in order to trigger builds

This patch rewrites the Project page and the additional
infrastructure in order to fix a bug that makes triggering
builds through UI impossible, and to introduce data feeds
for suggestions for the user.
toastergui: project edit capabilities in all layers page

This patch definitivates the all layers page, providing interactivity
for adding and removing layers inside the project from this page.

[YOCTO #6590]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toastergui: refactor objects get in views.py

We refactor the objects.filter()[0] pattern to the proper
Django QuerySet usage of objects.get() to make sure we
get one and only one object for a query.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toastergui: protect variable value reads

We make sure we don't throw an exception when reading
non-existent variables from the database, and we return
empty data that can be displayed without ill effects.

This fixes the Configuration page on empty builds.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: changes to the landing page

This patch brings in a new landing page to be shown
when there are no builds and no projects available.

The builds page now displays only only the builds part,
without the landing page bits.

There is a new projects page that displays the All Projects
table as specified in the design.

[YOCTO #6682]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>