* [PATCH 0/3] toaster: UI fixes
@ 2016-09-19 2:33 bavery
2016-09-19 2:33 ` [PATCH 1/3] toaster: Fix links to tasks with specific outcome bavery
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bavery @ 2016-09-19 2:33 UTC (permalink / raw)
To: bitbake-devel; +Cc: bavery, Belen Barros Pena
This contains a set of UI fixes for bugs:
9832 - fix task links
9862 - fix left navigationactive item in build history pages
10037- remove duplicate layer info in cutsom recipes detail page
-b
The following changes since commit ead7c4bc8024fb4325b124dc0b663c86c4363122:
toaster: unlock BuildEnvirnoment when build is done (2016-09-16 17:24:09 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib bavery/submit/toaster/belen/sep-18-ui
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/submit/toaster/belen/sep-18-ui
Belen Barros Pena (3):
toaster: Fix links to tasks with specific outcome
toaster: Indicate active navigation element
toaster: Remove duplicate layer information
lib/toaster/toastergui/templates/basebuildpage.html | 7 +++++--
lib/toaster/toastergui/templates/builddashboard.html | 6 +++---
lib/toaster/toastergui/templates/customrecipe.html | 2 --
3 files changed, 8 insertions(+), 7 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] toaster: Fix links to tasks with specific outcome
2016-09-19 2:33 [PATCH 0/3] toaster: UI fixes bavery
@ 2016-09-19 2:33 ` bavery
2016-09-19 2:33 ` [PATCH 2/3] toaster: Indicate active navigation element bavery
2016-09-19 2:33 ` [PATCH 3/3] toaster: Remove duplicate layer information bavery
2 siblings, 0 replies; 4+ messages in thread
From: bavery @ 2016-09-19 2:33 UTC (permalink / raw)
To: bitbake-devel; +Cc: bavery, Belen Barros Pena
From: Belen Barros Pena <belen.barros.pena@linux.intel.com>
The build dashboard provides a count of tasks that were executed and not
executed, and of tasks that failed (if any). The number is a link to the
list of tasks.
Fix the links so that they filter the tasks table by the selected
criteria (executed, not executed or failed).
[YOCTO #9832]
Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
---
lib/toaster/toastergui/templates/builddashboard.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/toaster/toastergui/templates/builddashboard.html b/lib/toaster/toastergui/templates/builddashboard.html
index 9e6e1c1..1c390cd 100644
--- a/lib/toaster/toastergui/templates/builddashboard.html
+++ b/lib/toaster/toastergui/templates/builddashboard.html
@@ -235,7 +235,7 @@
</a>
{% elif exectask.count > 1%}
- <a class="text-danger" href="{% url "tasks" build.id %}?filter=outcome%3A4">{{exectask.count}}</a>
+ <a class="text-danger" href="{% url "tasks" build.id %}?limit=25&page=1&orderby=order&filter=task_outcome:failed&default_orderby=order&filter_value=on&">{{exectask.count}}</a>
{% endif %}
</dd>
{% endif %}
@@ -244,12 +244,12 @@
Tasks executed
<span class="glyphicon glyphicon-question-sign get-help" title="'Executed' tasks are those that need to be run in order to generate the task output"></span>
</dt>
- <dd><a href="{% url 'tasks' build.pk %}?filter=task_executed%3A1&count=25&search=&page=1&orderby=order%3A%2B">{% query build.task_build task_executed=1 order__gt=0 as exectask%}{{exectask.count}}</a></dd>
+ <dd><a href="{% url 'tasks' build.pk %}?limit=25&page=1&orderby=order&filter=execution_outcome:executed&default_orderby=order&filter_value=on&">{% query build.task_build task_executed=1 order__gt=0 as exectask%}{{exectask.count}}</a></dd>
<dt>
Tasks not executed
<span class="glyphicon glyphicon-question-sign get-help" title="'Not executed' tasks don't need to run because their outcome is provided by another task"></span>
</dt>
- <dd><a href="{% url 'tasks' build.pk %}?filter=task_executed%3A0&count=25&search=&page=1&orderby=order%3A%2B">{% query build.task_build task_executed=0 order__gt=0 as noexectask%}{{noexectask.count}}</a></dd>
+ <dd><a href="{% url 'tasks' build.pk %}?limit=25&page=1&orderby=order&filter=execution_outcome:not_executed&default_orderby=order&filter_value=on&">{% query build.task_build task_executed=0 order__gt=0 as noexectask%}{{noexectask.count}}</a></dd>
<dt>
Reuse
<span class="glyphicon glyphicon-question-sign get-help" title="The percentage of 'not executed' tasks over the total number of tasks, which is a measure of the efficiency of your build"></span>
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] toaster: Indicate active navigation element
2016-09-19 2:33 [PATCH 0/3] toaster: UI fixes bavery
2016-09-19 2:33 ` [PATCH 1/3] toaster: Fix links to tasks with specific outcome bavery
@ 2016-09-19 2:33 ` bavery
2016-09-19 2:33 ` [PATCH 3/3] toaster: Remove duplicate layer information bavery
2 siblings, 0 replies; 4+ messages in thread
From: bavery @ 2016-09-19 2:33 UTC (permalink / raw)
To: bitbake-devel; +Cc: bavery, Belen Barros Pena
From: Belen Barros Pena <belen.barros.pena@linux.intel.com>
The left navigation in the build history pages is not showing the active
item when you navigate directly to the errors or warnings information in
the build summary. Add a special case to make sure the "build summary"
item is highlighted.
[YOCTO #9864]
Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
---
lib/toaster/toastergui/templates/basebuildpage.html | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/toaster/toastergui/templates/basebuildpage.html b/lib/toaster/toastergui/templates/basebuildpage.html
index 50658e0..01d3117 100644
--- a/lib/toaster/toastergui/templates/basebuildpage.html
+++ b/lib/toaster/toastergui/templates/basebuildpage.html
@@ -38,10 +38,13 @@
$(this).parent().addClass("active");
} else {
/* Special case the configvar as this is part of configuration
- * page but is a separate url
+ * page but is a separate url, and the direct links to errors
+ * and warnings, which are part of the build dashboard
*/
if (window.location.pathname === configVarUrl){
$("#menu-configuration").addClass("active");
+ } else if (currentUrl.indexOf('error') > 1 || currentUrl.indexOf('warning') > 1){
+ $("#menu-dashboard").addClass("active");
} else {
$(this).parent().removeClass("active");
}
@@ -57,7 +60,7 @@
<div class="row">
<div id="nav" class="col-md-2">
<ul class="nav nav-pills nav-stacked" id="build-menu">
- <li
+ <li id="menu-dashboard"
{% if request.resolver_match.url_name == 'builddashboard' %}
class="active"
{% endif %} >
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] toaster: Remove duplicate layer information
2016-09-19 2:33 [PATCH 0/3] toaster: UI fixes bavery
2016-09-19 2:33 ` [PATCH 1/3] toaster: Fix links to tasks with specific outcome bavery
2016-09-19 2:33 ` [PATCH 2/3] toaster: Indicate active navigation element bavery
@ 2016-09-19 2:33 ` bavery
2 siblings, 0 replies; 4+ messages in thread
From: bavery @ 2016-09-19 2:33 UTC (permalink / raw)
To: bitbake-devel; +Cc: bavery, Belen Barros Pena
From: Belen Barros Pena <belen.barros.pena@linux.intel.com>
In the custom recipe details page, the layer information is displayed
twice in the right hand column. Remove one of the layer entries, since
showing the layer information once should be enough.
[YOCTO #10037]
Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
---
lib/toaster/toastergui/templates/customrecipe.html | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/toaster/toastergui/templates/customrecipe.html b/lib/toaster/toastergui/templates/customrecipe.html
index f2a8fd2..8b61fb7 100644
--- a/lib/toaster/toastergui/templates/customrecipe.html
+++ b/lib/toaster/toastergui/templates/customrecipe.html
@@ -176,8 +176,6 @@
<a href="{% url 'projectbuilds' project.id%}">{{last_build.completed_on|date:"d/m/y H:i"}}</a>
</dd>
{% endif %}
- <dt>Layer</dt>
- <dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd>
<dt>Based on</dt>
<dd><a href="{% url 'recipedetails' project.id recipe.base_recipe.pk %}">{{recipe.base_recipe.name}}</a></dd>
{% if recipe.get_last_successful_built_target %}
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-09-19 2:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-19 2:33 [PATCH 0/3] toaster: UI fixes bavery
2016-09-19 2:33 ` [PATCH 1/3] toaster: Fix links to tasks with specific outcome bavery
2016-09-19 2:33 ` [PATCH 2/3] toaster: Indicate active navigation element bavery
2016-09-19 2:33 ` [PATCH 3/3] toaster: Remove duplicate layer information bavery
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.