9154: fixes for customimage details 'no package found'
PATCH 1/1 toaster: fixes for customimage package not found
In reply to Dave LernerFor a custom image, if a search for a package results in no packages found, then additional information should be presented to the user. This is different than a 'no results' found for a search in other contexts, for example, a search for a package in a non-customised build. For a custom image, a package search failure can happen because the package was not added to the custom image. This commit presents more information to the user, suggesting why the package was not found in the custom image.
The generic table view handling js changes to handle a new div element no-results-special-... such that, if present, that template section is shown rather than the default no-results-... section.
[YOCTO #9154]
--- .../toaster/toastergui/static/js/customrecipe.js | 9 +++++++++ bitbake/lib/toaster/toastergui/static/js/table.js | 11 +++++++++-- .../toaster/toastergui/templates/customrecipe.html | 22 ++++++++++++---------- 3 files changed, 30 insertions(+), 12 deletions(-)
bitbake/lib/toaster/toastergui/static/js/customrecipe.js +9 -0
@@ -205,6 +205,15 @@ function customRecipePageInit(ctx) { }); } + $("#no-results-show-all-packages").click(function(){ + $(".no-results-search-input").val(""); + }); + + $("#no-results-remove-search-btn").click(function(){ + $(".no-results-search-input").val(""); + $(this).hide(); + }); + /* Trigger a build of your custom image */ $(".build-custom-image").click(function(){ libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl,
bitbake/lib/toaster/toastergui/static/js/table.js +9 -2
@@ -75,8 +75,15 @@ function tableInit(ctx){ if (tableData.total === 0){ tableContainer.hide(); - $("#new-search-input-"+ctx.tableName).val(tableParams.search); - $("#no-results-"+ctx.tableName).show(); + if ($("#no-results-special-"+ctx.tableName).length > 0) { + /* use this page's special no-results form instead of the default */ + $("#no-results-search-input-"+ctx.tableName).val(tableParams.search); + $("#no-results-special-"+ctx.tableName).show(); + $("#results-found-"+ctx.tableName).hide(); + } else { + $("#new-search-input-"+ctx.tableName).val(tableParams.search); + $("#no-results-"+ctx.tableName).show(); + } table.trigger("table-done", [tableData.total, tableParams]); return;
bitbake/lib/toaster/toastergui/templates/customrecipe.html +12 -10
@@ -102,25 +102,26 @@ Download recipe file </a> </div> - <div id="no-package-results" class="air" style="display:none;"> + <div id="no-results-special-{{table_name}}" class="air" style="display:none;"> <div class="alert"> <h3>No packages found</h3> - <p>You might consider <a href="all-software-recipes.html">searching the list of recipes</a> instead. If you find a recipe that matches the name of the package you want:</p> + <p>You might consider <a href={% url 'projectsoftwarerecipes' project.id %}>searching the list of recipes</a> instead. If you find a recipe that matches the name of the package you want:</p> <ol> <li>Add the layer providing the recipe to your project</li> <li>Build the recipe</li> <li>Once the build completes, come back to this page and search for the package</li> </ol> <form class="input-append no-results"> - <input type="text" class="input-xlarge" value="search query"> - <a href="#" class="add-on btn"> - <i class="icon-remove"></i> - </a> - <button class="btn">Search</button> - <button class="btn btn-link" id="show-all">Show all packages</button> - </form> - </div> + <input type="text" class="input-xlarge no-results-search-input" id="no-results-search-input-{{table_name}}" name="search" placeholder="Search {{title|lower}}" /> + <a href="#" class="add-on btn" id="no-results-remove-search-btn" tabindex="-1"> + <i class="icon-remove"></i> + </a> + <button class="btn search-submit-{{table_name}}">Search</button> + <button class="btn btn-link" id="no-results-show-all-packages">Show all packages</button> + </form> + </div> </div> + <div id="results-found-{{table_name}}"> <div id="packages-table"> {% if recipe.get_all_packages.count == 0 and last_build == None %} <h2> Add | Remove packages </h2>
@@ -135,6 +136,7 @@ {% include "toastertable.html" %} {% endif %} </div> + </div> </div> <div class="span4 well"> <h2 style="margin-bottom:20px;">About {{recipe.name}}</h2>
Signature · 1 line
1.9.1
Branch: toaster-next, master
Defect: 9154
Summary: Fixes when search for customimage packages has no results.
jshint: done
html5 validation: done
Test cases and expected results
-------------------------------
Setup
-----
Build a custom image
Static Text
-----------
Select the custom image and enter an unknown package like "xxxxx".
Verify that the static text matches the spec with caveats below.
1. The spec shows a different header for both the no results and the results page. The spec was interpretted as being out-of-date with current implemenation, and the well "About package..." was assumed to be the current implementation replacment since it shows the packages included and other data.
2: The spec "search query" was assumed to be a place holder in
the design doc for a string that was the last unsucessful 'search query'.
Verify that the text field has the unmatched string xxxxx
All buttons - x, search, search all packages, search recipes
-----------------------------------------------------------------
X button:
click the x icon
Verify that the text input is cleared.
Verify that the X icon is cleared.
Verify "Search Add | Remove packages" placeholder in text field.
Search:
enter openssl
click search
Verify back to customised screen with packages matching 'openssl'
On customise image main page, append abc to openssl and click search
Verify back to the No packages found screen
On NO packages found page, change text from opensslabc to opensslxyz click search
Verify still on No Packages screen
Search all packages:
On the same 'opensslxyz' No packages found page, click Search all packages
Verify back to unfiltered customised image page
Recipes:
Enter helloworld, click search
On 'No packages found' page, click the hyperlink "searching the list of recipes"
Verify that the software recipes page appears.
Re: [PATCH 1/1] toaster: fixes for customimage package not found
In reply to Dave LernerQuoted 12 lines · On 16/03/2016 17:29, "[email protected] on behalf of Dave…
For a custom image, if a search for a package results in no packages found, then additional information should be presented to the user. This is different than a 'no results' found for a search in other contexts, for example, a search for a package in a non-customised build. For a custom image, a package search failure can happen because the package was not added to the custom image. This commit presents more information to the user, suggesting why the package was not found in the custom image.
The generic table view handling js changes to handle a new div element no-results-special-... such that, if present, that template section is shown rather than the default no-results-... section.
Quoted 1 line
[YOCTO #9154]
This looks good to me.
Thanks!
Belén
Quoted 127 lines
Signed-off-by Dave Lerner <[email protected]>---
.../toaster/toastergui/static/js/customrecipe.js | 9 +++++++++ bitbake/lib/toaster/toastergui/static/js/table.js | 11 +++++++++-- .../toaster/toastergui/templates/customrecipe.html | 22 ++++++++++++---------- 3 files changed, 30 insertions(+), 12 deletions(-)bitbake/lib/toaster/toastergui/static/js/customrecipe.js +9
-0@@ -205,6 +205,15 @@ function customRecipePageInit(ctx) { }); } + $("#no-results-show-all-packages").click(function(){ + $(".no-results-search-input").val(""); + }); + + $("#no-results-remove-search-btn").click(function(){ + $(".no-results-search-input").val(""); + $(this).hide(); + }); + /* Trigger a build of your custom image */ $(".build-custom-image").click(function(){ libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl,bitbake/lib/toaster/toastergui/static/js/table.js +2
-2@@ -75,8 +75,15 @@ function tableInit(ctx){ if (tableData.total === 0){ tableContainer.hide(); - $("#new-search-input-"+ctx.tableName).val(tableParams.search); - $("#no-results-"+ctx.tableName).show(); + if ($("#no-results-special-"+ctx.tableName).length > 0) { + /* use this page's special no-results form instead of thedefault */
+ $("#no-results-search-input-"+ctx.tableName).val(tableParams.search);bitbake/lib/toaster/toastergui/static/js/table.js +6
-0+ $("#no-results-special-"+ctx.tableName).show(); + $("#results-found-"+ctx.tableName).hide(); + } else { + $("#new-search-input-"+ctx.tableName).val(tableParams.search); + $("#no-results-"+ctx.tableName).show(); + } table.trigger("table-done", [tableData.total, tableParams]); return;bitbake/lib/toaster/toastergui/templates/customrecipe.html +1
-1@@ -102,25 +102,26 @@ Download recipe file </a> </div> - <div id="no-package-results" class="air" style="display:none;"> + <div id="no-results-special-{{table_name}}" class="air"style="display:none;">
<div class="alert"> <h3>No packages found</h3>- <p>You might consider <a
href="all-software-recipes.html">searching the list of recipes</a> instead. If you find a recipe that matches the name of the package you want:</p>
+ <p>You might consider <a href={% url 'projectsoftwarerecipes'
project.id %}>searching the list of recipes</a> instead. If you find a recipe that matches the name of the package you want:</p>
<ol>
<li>Add the layer providing the recipe to your project</li> <li>Build the recipe</li>
<li>Once the build completes, come back to this page and
search for the package</li>
</ol>
<form class="input-append no-results">bitbake/lib/toaster/toastergui/templates/customrecipe.html +0
-6- <input type="text" class="input-xlarge" value="search query"> - <a href="#" class="add-on btn"> - <i class="icon-remove"></i> - </a> - <button class="btn">Search</button> - <button class="btn btn-link" id="show-all">Show allpackages</button>
bitbake/lib/toaster/toastergui/templates/customrecipe.html +1
-2- </form> - </div> + <input type="text" class="input-xlargeno-results-search-input" id="no-results-search-input-{{table_name}}" name="search" placeholder="Search {{title|lower}}" />
+ <a href="#" class="add-on btn"
id="no-results-remove-search-btn" tabindex="-1">bitbake/lib/toaster/toastergui/templates/customrecipe.html +3
-0+ <i class="icon-remove"></i> + </a> + <button class="btnsearch-submit-{{table_name}}">Search</button>
+ <button class="btn btn-link"
id="no-results-show-all-packages">Show all packages</button>bitbake/lib/toaster/toastergui/templates/customrecipe.html +3
-0+ </form> + </div> </div> + <div id="results-found-{{table_name}}"> <div id="packages-table"> {% if recipe.get_all_packages.count == 0 and last_build == None%}
<h2> Add | Remove packages </h2>bitbake/lib/toaster/toastergui/templates/customrecipe.html +1
-0@@ -135,6 +136,7 @@ {% include "toastertable.html" %} {% endif %} </div> + </div> </div> <div class="span4 well"> <h2 style="margin-bottom:20px;">About {{recipe.name}}</h2>Signature · 7 lines
1.9.1 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
Sorry I've only just got to this, Dave.
The code generally looks fine.
My only question is why you've added an element with a different id to hold the alternative no results area. Is there any reason it can't have the same id="no-package-results" as the standard area?
Similarly, the input element could have the
name "#new-search-input-"+ctx.tableName so that its content is reset by the existing code in table.js.
This could (I think) remove the need for any changes to table.js.
Elliot
Quoted 60 lines · Dave Lerner
Branch: toaster-next, master
Defect: 9154
Summary: Fixes when search for customimage packages has no results.jshint: done
html5 validation: doneTest cases and expected results
-------------------------------
Setup
-----
Build a custom imageStatic Text
-----------
Select the custom image and enter an unknown package like "xxxxx".
Verify that the static text matches the spec with caveats below.
1. The spec shows a different header for both the no results and the results page. The spec was interpretted as being
out-of-date
with current implemenation, and the well "About package..." was assumed to be the current implementation replacment since it shows the packages included and other data.
2: The spec "search query" was assumed to be a place holder in
the design doc for a string that was the last unsucessful 'search query'.
Verify that the text field has the unmatched string xxxxxAll buttons - x, search, search all packages, search recipes
-----------------------------------------------------------------
X button:
click the x icon
Verify that the text input is cleared.
Verify that the X icon is cleared.
Verify "Search Add | Remove packages" placeholder in text field.Search:
enter openssl
click search
Verify back to customised screen with packages matching 'openssl'On customise image main page, append abc to openssl and click search
Verify back to the No packages found screen
On NO packages found page, change text from opensslabc to opensslxyz click search
Verify still on No Packages screenSearch all packages:
On the same 'opensslxyz' No packages found page, click Search all packages
Verify back to unfiltered customised image pageRecipes:
Enter helloworld, click search
On 'No packages found' page, click the hyperlink "searching the list of recipes"
Verify that the software recipes page appears.
Signature · 3 lines
Elliot Smith Software Engineer Intel Open Source Technology Centre
It's been a while, but as I recall both the HTML5 validator I used and the toaster coding standards mandate that element ids must be unique on a page. The page loads both sections, with and without data, so reusing the same element id as I did in the first pass failed the validation test (and standards). Dave
________________________________
From: [email protected] [[email protected]] on behalf of Smith, Elliot [[email protected]]
Sent: Wednesday, April 06, 2016 9:18 AM
To: Lerner, Dave
Cc: Belen Barros Pena (Intel); [email protected]
Subject: Re: [Toaster] [toaster] [review-request] 9154: fixes for customimage details 'no package found'
Sorry I've only just got to this, Dave.
The code generally looks fine.
My only question is why you've added an element with a different id to hold the alternative no results area. Is there any reason it can't have the same id="no-package-results" as the standard area?
Similarly, the input element could have the name "#new-search-input-"+ctx.tableName so that its content is reset by the existing code in table.js.
This could (I think) remove the need for any changes to table.js.
Elliot
On 16 March 2016 at 17:29, Dave Lerner <[email protected]<mailto:[email protected]>> wrote:
Branch: toaster-next, master
Defect: 9154
Summary: Fixes when search for customimage packages has no results.
jshint: done
html5 validation: done
Test cases and expected results
-------------------------------
Setup
-----
Build a custom image
Static Text
-----------
Select the custom image and enter an unknown package like "xxxxx".
Verify that the static text matches the spec with caveats below.
1. The spec shows a different header for both the no results and the results page. The spec was interpretted as being out-of-date with current implemenation, and the well "About package..." was assumed to be the current implementation replacment since it shows the packages included and other data.
2: The spec "search query" was assumed to be a place holder in
the design doc for a string that was the last unsucessful 'search query'.
Verify that the text field has the unmatched string xxxxx
All buttons - x, search, search all packages, search recipes
-----------------------------------------------------------------
X button:
click the x icon
Verify that the text input is cleared.
Verify that the X icon is cleared.
Verify "Search Add | Remove packages" placeholder in text field.
Search:
enter openssl
click search
Verify back to customised screen with packages matching 'openssl'
On customise image main page, append abc to openssl and click search
Verify back to the No packages found screen
On NO packages found page, change text from opensslabc to opensslxyz click search
Verify still on No Packages screen
Search all packages:
On the same 'opensslxyz' No packages found page, click Search all packages
Verify back to unfiltered customised image page
Recipes:
Enter helloworld, click search
On 'No packages found' page, click the hyperlink "searching the list of recipes"
Verify that the software recipes page appears.
--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
Quoted 6 lines · Dave
It's been a while, but as I recall both the HTML5 validator I used and the toaster coding standards mandate that element ids must be unique on a page. The page loads both sections, with and without data, so reusing the same element id as I did in the first pass failed the validation test (and standards).
Right, that makes sense. I didn't realise both inputs would be visible at the same time (I should have paid more attention to Belen's design).
(Though, as an aside, issues like this are exactly why I don't use IDs and prefer data-* attributes instead.)
I will review it again.
Thanks,
Elliot
Quoted 96 lines
Dave
------------------------------
*From:* [email protected] [[email protected]] on behalf of Smith, Elliot [[email protected]]
*Sent:* Wednesday, April 06, 2016 9:18 AM
*To:* Lerner, Dave
*Cc:* Belen Barros Pena (Intel); [email protected] *Subject:* Re: [Toaster] [toaster] [review-request] 9154: fixes for customimage details 'no package found'Sorry I've only just got to this, Dave.
The code generally looks fine.
My only question is why you've added an element with a different id to hold the alternative no results area. Is there any reason it can't have the same id="no-package-results" as the standard area?
Similarly, the input element could have the
name "#new-search-input-"+ctx.tableName so that its content is reset by the existing code in table.js.This could (I think) remove the need for any changes to table.js.
Elliot
Quoted 53 lines · Dave Lerner
Branch: toaster-next, master
Defect: 9154
Summary: Fixes when search for customimage packages has no results.jshint: done
html5 validation: doneTest cases and expected results
-------------------------------
Setup
-----
Build a custom imageStatic Text
-----------
Select the custom image and enter an unknown package like "xxxxx".
Verify that the static text matches the spec with caveats below.
1. The spec shows a different header for both the no results and the results page. The spec was interpretted as being
out-of-date
with current implemenation, and the well "About package..." was assumed to be the current implementation replacment since it shows the packages included and other data.
2: The spec "search query" was assumed to be a place holder in
the design doc for a string that was the last unsucessful 'search query'.
Verify that the text field has the unmatched string xxxxxAll buttons - x, search, search all packages, search recipes
-----------------------------------------------------------------
X button:
click the x icon
Verify that the text input is cleared.
Verify that the X icon is cleared.
Verify "Search Add | Remove packages" placeholder in text field.Search:
enter openssl
click search
Verify back to customised screen with packages matching 'openssl'On customise image main page, append abc to openssl and click search
Verify back to the No packages found screen
On NO packages found page, change text from opensslabc to opensslxyz click search
Verify still on No Packages screenSearch all packages:
On the same 'opensslxyz' No packages found page, click Search all packages
Verify back to unfiltered customised image pageQuoted 7 lines
Recipes:
Enter helloworld, click search
On 'No packages found' page, click the hyperlink "searching the list of recipes"
Verify that the software recipes page appears.--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
Signature · 3 lines
Elliot Smith Software Engineer Intel Open Source Technology Centre
Hello Dave.
I tried to merge your patch into toaster-next today, but it unfortunately wouldn't apply cleanly.
Could you please rebase? As it's a single commit, I'm happy to take it from the tip of a branch rather than you having to re-submit it.
Thanks.
Elliot
Quoted 127 lines · Elliot
Quoted 6 lines · Dave
It's been a while, but as I recall both the HTML5 validator I used and the toaster coding standards mandate that element ids must be unique on a page. The page loads both sections, with and without data, so reusing the same element id as I did in the first pass failed the validation test (and standards).
Right, that makes sense. I didn't realise both inputs would be visible at the same time (I should have paid more attention to Belen's design).
(Though, as an aside, issues like this are exactly why I don't use IDs and prefer data-* attributes instead.)
I will review it again.
Thanks,
ElliotQuoted 93 lines
Dave
------------------------------
*From:* [email protected] [ [email protected]] on behalf of Smith, Elliot [ [email protected]]
*Sent:* Wednesday, April 06, 2016 9:18 AM
*To:* Lerner, Dave
*Cc:* Belen Barros Pena (Intel); [email protected] *Subject:* Re: [Toaster] [toaster] [review-request] 9154: fixes for customimage details 'no package found'Sorry I've only just got to this, Dave.
The code generally looks fine.
My only question is why you've added an element with a different id to hold the alternative no results area. Is there any reason it can't have the same id="no-package-results" as the standard area?
Similarly, the input element could have the
name "#new-search-input-"+ctx.tableName so that its content is reset by the existing code in table.js.This could (I think) remove the need for any changes to table.js.
Elliot
Quoted 54 lines · Dave Lerner
Branch: toaster-next, master
Defect: 9154
Summary: Fixes when search for customimage packages has no results.jshint: done
html5 validation: doneTest cases and expected results
-------------------------------
Setup
-----
Build a custom imageStatic Text
-----------
Select the custom image and enter an unknown package like "xxxxx".
Verify that the static text matches the spec with caveats below.
1. The spec shows a different header for both the no results and the results page. The spec was interpretted as being
out-of-date
with current implemenation, and the well "About package..." was assumed to be the current implementation replacment since it
shows
the packages included and other data.
2: The spec "search query" was assumed to be a place holder in
the design doc for a string that was the last unsucessful 'search query'.
Verify that the text field has the unmatched string xxxxxAll buttons - x, search, search all packages, search recipes
-----------------------------------------------------------------
X button:
click the x icon
Verify that the text input is cleared.
Verify that the X icon is cleared.
Verify "Search Add | Remove packages" placeholder in text field.Search:
enter openssl
click search
Verify back to customised screen with packages matching 'openssl'On customise image main page, append abc to openssl and click search
Verify back to the No packages found screen
On NO packages found page, change text from opensslabc to opensslxyz click search
Verify still on No Packages screenSearch all packages:
On the same 'opensslxyz' No packages found page, click Search all packages
Verify back to unfiltered customised image pageQuoted 7 lines
Recipes:
Enter helloworld, click search
On 'No packages found' page, click the hyperlink "searching the list of recipes"
Verify that the software recipes page appears.Quoted 5 lines
--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
Signature · 3 lines
Elliot Smith Software Engineer Intel Open Source Technology Centre
Hi Elliot,
I applied the patch to today's toaster-next, recommitted, and retested per original email tests. The tests passed.
The patch is at the tip of poky-contrib/dlerner/9154-v2 . Dave
Quoted 165 lines
-----Original Message-----
From: Smith, Elliot [mailto:[email protected]]
Sent: Thursday, April 07, 2016 8:15 AM
To: Lerner, Dave
Cc: Belen Barros Pena (Intel); [email protected]
Subject: Re: [Toaster] [toaster] [review-request] 9154: fixes for customimage details 'no package found'Hello Dave.
I tried to merge your patch into toaster-next today, but it unfortunately wouldn't apply cleanly.
Could you please rebase? As it's a single commit, I'm happy to take it from the tip of a branch rather than you having to re-submit it.
Thanks.
ElliotOn 6 April 2016 at 15:47, Smith, Elliot <[email protected]> wrote:
On 6 April 2016 at 15:42, Lerner, Dave <[email protected]> wrote:
It's been a while, but as I recall both the HTML5 validator I used and the
toaster coding standards mandate that element ids must be unique on a page. The page loads both sections, with and without data, so reusing the same element id as I did in the first pass failed the validation test (and standards).Right, that makes sense. I didn't realise both inputs would be visible at the same
time (I should have paid more attention to Belen's design).(Though, as an aside, issues like this are exactly why I don't use IDs and prefer
data-* attributes instead.)I will review it again.
Thanks,
ElliotDave
________________________________
From: [email protected] [[email protected]] on
behalf of Smith, Elliot [[email protected]]
Sent: Wednesday, April 06, 2016 9:18 AM
To: Lerner, Dave
Cc: Belen Barros Pena (Intel); [email protected]
Subject: Re: [Toaster] [toaster] [review-request] 9154: fixes for customimage
details 'no package found'Sorry I've only just got to this, Dave.
The code generally looks fine.
My only question is why you've added an element with a different id to hold
the alternative no results area. Is there any reason it can't have the same id="no- package-results" as the standard area?Similarly, the input element could have the name "#new-search-input-
"+ctx.tableName so that its content is reset by the existing code in table.js.This could (I think) remove the need for any changes to table.js.
Elliot
On 16 March 2016 at 17:29, Dave Lerner <[email protected]> wrote:
Branch: toaster-next, master
Defect: 9154
Summary: Fixes when search for customimage packages has no results.jshint: done
html5 validation: doneTest cases and expected results
-------------------------------
Setup
-----
Build a custom imageStatic Text
-----------
Select the custom image and enter an unknown package like "xxxxx".
Verify that the static text matches the spec with caveats below.
1. The spec shows a different header for both the no results and the results page. The spec was interpretted as being out-of-
date
with current implemenation, and the well "About package..." was assumed to be the current implementation replacment since it
shows
the packages included and other data.
2: The spec "search query" was assumed to be a place holder in
the design doc for a string that was the last unsucessful 'search query'.
Verify that the text field has the unmatched string xxxxxAll buttons - x, search, search all packages, search recipes
-----------------------------------------------------------------
X button:
click the x icon
Verify that the text input is cleared.
Verify that the X icon is cleared.
Verify "Search Add | Remove packages" placeholder in text field.Search:
enter openssl
click search
Verify back to customised screen with packages matching 'openssl'On customise image main page, append abc to openssl and click search
Verify back to the No packages found screen
On NO packages found page, change text from opensslabc to opensslxyz click search
Verify still on No Packages screenSearch all packages:
On the same 'opensslxyz' No packages found page, click Search all packages
Verify back to unfiltered customised image pageRecipes:
Enter helloworld, click search
On 'No packages found' page, click the hyperlink "searching the list of
recipes"
Verify that the software recipes page appears.--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
Quoted 4 lines · David M (Wind River)
Hi Elliot,
I applied the patch to today's toaster-next, recommitted, and retested per original email tests. The tests passed.
Reviewed again, looks good, sent to bitbake-devel and added to toaster-next.
Elliot
Quoted 204 lines
The patch is at the tip of poky-contrib/dlerner/9154-v2 . Dave
Quoted 6 lines
-----Original Message-----
From: Smith, Elliot [mailto:[email protected]]
Sent: Thursday, April 07, 2016 8:15 AM
To: Lerner, Dave
Cc: Belen Barros Pena (Intel); [email protected]
Subject: Re: [Toaster] [toaster] [review-request] 9154: fixes forcustomimage details
Quoted 5 lines
'no package found'
Hello Dave.
I tried to merge your patch into toaster-next today, but it
unfortunately wouldn't apply
Quoted 3 lines
cleanly.
Could you please rebase? As it's a single commit, I'm happy to take it
from the tip of a
Quoted 9 lines
branch rather than you having to re-submit it.
Thanks.
ElliotOn 6 April 2016 at 15:47, Smith, Elliot <[email protected]> wrote:
On 6 April 2016 at 15:42, Lerner, Dave <[email protected]>Quoted 3 lines · wrote:
It's been a while, but as I recall both the HTML5
validator I used and the
Quoted 1 line
toaster coding standards mandate that element ids must be unique on a
page. The page
Quoted 1 line
loads both sections, with and without data, so reusing the same element
id as I did in
Quoted 5 lines
the first pass failed the validation test (and standards).
Right, that makes sense. I didn't realise both inputs would be
visible at the same
Quoted 3 lines
time (I should have paid more attention to Belen's design).
(Though, as an aside, issues like this are exactly why I don't use
IDs and prefer
Quoted 8 lines
data-* attributes instead.)
I will review it again.
Thanks,
ElliotQuoted 6 lines
Dave
________________________________
From: [email protected] [
Quoted 5 lines
behalf of Smith, Elliot [[email protected]]
Sent: Wednesday, April 06, 2016 9:18 AM
To: Lerner, Dave
Cc: Belen Barros Pena (Intel); [email protected]
Subject: Re: [Toaster] [toaster] [review-request] 9154:fixes for customimage
Quoted 8 lines
details 'no package found'
Sorry I've only just got to this, Dave.
The code generally looks fine.
My only question is why you've added an element with a
different id to hold
Quoted 1 line
the alternative no results area. Is there any reason it can't have the
same id="no-
Quoted 3 lines
package-results" as the standard area?
Similarly, the input element could have the name
"#new-search-input-
Quoted 1 line
"+ctx.tableName so that its content is reset by the existing code in
table.js.
Quoted 2 lines
This could (I think) remove the need for any changes to
table.js.
Quoted 5 lines
Elliot On 16 March 2016 at 17:29, Dave Lerner <Quoted 6 lines · [email protected]> wrote:
Branch: toaster-next, master
Defect: 9154
Summary: Fixes when search for customimagepackages has no results.
Quoted 10 lines
jshint: done
html5 validation: doneTest cases and expected results
-------------------------------
Setup
-----
Build a custom imageQuoted 3 lines
Static Text
-----------
Select the custom image and enter an unknownpackage like "xxxxx".
Quoted 1 line
Verify that the static text matches the spec
with caveats below.
Quoted 1 line
1. The spec shows a different header for both
the no results
Quoted 1 line
and the results page. The spec was
interpretted as being out-of-
Quoted 2 lines
date
with current implemenation, and the well"About package..." was
Quoted 1 line
assumed to be the current implementation
replacment since it
Quoted 3 lines
shows
the packages included and other data.
2: The spec "search query" was assumed to bea place holder in
Quoted 1 line
the design doc for a string that was the
last unsucessful 'search
Quoted 2 lines
query'.
Verify that the text field has the unmatchedstring xxxxx
Quoted 2 lines
All buttons - x, search, search all packages,
search recipes
Quoted 1 line
-----------------------------------------------------------------
Quoted 5 lines
X button:
click the x icon
Verify that the text input is cleared. Verify that the X icon is cleared. Verify "Search Add | Remove packages"placeholder in text field.
Quoted 5 lines
Search:
enter openssl
click search
Verify back to customised screen with packagesmatching 'openssl'
Quoted 2 lines
On customise image main page, append abc to
openssl and click search
Quoted 2 lines
Verify back to the No packages found screen
On NO packages found page, change text fromopensslabc to opensslxyz
Quoted 11 lines
click search
Verify still on No Packages screenSearch all packages:
On the same 'opensslxyz' No packages found page, click Search all packages
Verify back to unfiltered customised image pageRecipes:
Enter helloworld, click search
On 'No packages found' page, click the hyperlink"searching the list of
Quoted 31 lines
recipes"
Verify that the software recipes page appears.--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
Signature · 3 lines
Elliot Smith Software Engineer Intel Open Source Technology Centre