* [version 2 review-request] fix banner after customimage package add
@ 2016-02-23 17:03 Dave Lerner
2016-02-23 17:03 ` [PATCH 1/1 Version 2] toaster: " Dave Lerner
0 siblings, 1 reply; 4+ messages in thread
From: Dave Lerner @ 2016-02-23 17:03 UTC (permalink / raw)
To: toaster, belen.barros.pena, michael.g.wood
Branch: toaster-next
Defect: 9101
Summary: version2: toaster: fix banner after customimage package add
v1 vs v2 change: Removed patch to views.py that will be addressed in a different manner for a different defect per review comments from Michael.
Test Setup
----------
Build core-image-sato in order to capture package dependencies for tests.
Create a new custom image based on core-image-minimal.
Test with the pacakge atk which has 3 unadded dependencies: libpcre, glib-2.0, and libffi.
Make certain that old orm_customimage_* tables are empty, no residuals from
prior runs.
Test cases and expected results
-------------------------------
Verify that adding a package with unaddded dependencies will add the dependencies visually and in the build by:
Click the 'add package' button for package atk.
Click 'add package' in the popup modal dialog to add the 3 dependencies.
Verify that all 4 packages, atk and 3 dependents, now show buttons with
labels 'remove package' instead of 'add...'
Build the image.
Verify in the built image under packages that all 4 packages are added
to the image using the right panel Packages and clicking each package.
Verify that adding a package with either
- a package with dependency list already added or in the image,
- or without dependency list
correctly shows the addition of 1 package in the banner.
Remove atk, then add it back atk.
Verify that banner says
"You have added <bold>1</bold> package to myimage : atk"
Note: only 1 package because dependencies were not removed in previous
step.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1 Version 2] toaster: fix banner after customimage package add
2016-02-23 17:03 [version 2 review-request] fix banner after customimage package add Dave Lerner
@ 2016-02-23 17:03 ` Dave Lerner
2016-02-24 10:04 ` Barros Pena, Belen
0 siblings, 1 reply; 4+ messages in thread
From: Dave Lerner @ 2016-02-23 17:03 UTC (permalink / raw)
To: toaster, belen.barros.pena, michael.g.wood
Correct formatting of the banner message after adding a package to a
custom image.
[YOCTO #9101]
Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
---
bitbake/lib/toaster/toastergui/static/js/customrecipe.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
index a1fe486..3c57899 100644
--- a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
+++ b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
@@ -127,7 +127,8 @@ function customRecipePageInit(ctx) {
if (targetPkg.hasOwnProperty('depsAdded') &&
targetPkg.depsAdded.length > 0) {
- msg += "added " + (targetPkg.depsAdded.length + 1);
+ msg += "added ";
+ msg += "<strong>" + (targetPkg.depsAdded.length + 1) + "</strong>";
msg += " packages to " + ctx.recipe.name + ": ";
msg += "<strong>" + targetPkg.name + "</strong> and its dependencies";
@@ -150,7 +151,9 @@ function customRecipePageInit(ctx) {
(targetPkg.depsAdded.length + 1) + " packages added");
} else {
- msg += ' <strong>' + targetPkg.name + '<strong>';
+ msg += "added <strong>1</strong>";
+ msg += " package to " + ctx.recipe.name + ": ";
+ msg += "<strong>" + targetPkg.name + "</strong>";
inlineNotify.text("1 package added");
}
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1 Version 2] toaster: fix banner after customimage package add
2016-02-23 17:03 ` [PATCH 1/1 Version 2] toaster: " Dave Lerner
@ 2016-02-24 10:04 ` Barros Pena, Belen
2016-02-25 14:25 ` Smith, Elliot
0 siblings, 1 reply; 4+ messages in thread
From: Barros Pena, Belen @ 2016-02-24 10:04 UTC (permalink / raw)
To: Lerner, David M (Wind River), toaster, Wood, Michael G
On 23/02/2016 18:03, "toaster-bounces@yoctoproject.org on behalf of Dave
Lerner" <toaster-bounces@yoctoproject.org on behalf of
dave.lerner@windriver.com> wrote:
>Correct formatting of the banner message after adding a package to a
>custom image.
>
>[YOCTO #9101]
I've tried several things, but I can no longer see the truncated message
when adding packages. So this seems to be working for me.
Thanks!
Belén
>
>Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
>---
> bitbake/lib/toaster/toastergui/static/js/customrecipe.js | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
>diff --git a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
>b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
>index a1fe486..3c57899 100644
>--- a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
>+++ b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
>@@ -127,7 +127,8 @@ function customRecipePageInit(ctx) {
> if (targetPkg.hasOwnProperty('depsAdded') &&
> targetPkg.depsAdded.length > 0) {
>
>- msg += "added " + (targetPkg.depsAdded.length + 1);
>+ msg += "added ";
>+ msg += "<strong>" + (targetPkg.depsAdded.length + 1) +
>"</strong>";
> msg += " packages to " + ctx.recipe.name + ": ";
> msg += "<strong>" + targetPkg.name + "</strong> and its
>dependencies";
>
>@@ -150,7 +151,9 @@ function customRecipePageInit(ctx) {
> (targetPkg.depsAdded.length + 1) + " packages added");
>
> } else {
>- msg += ' <strong>' + targetPkg.name + '<strong>';
>+ msg += "added <strong>1</strong>";
>+ msg += " package to " + ctx.recipe.name + ": ";
>+ msg += "<strong>" + targetPkg.name + "</strong>";
> inlineNotify.text("1 package added");
> }
>
>--
>1.9.1
>
>--
>_______________________________________________
>toaster mailing list
>toaster@yoctoproject.org
>https://lists.yoctoproject.org/listinfo/toaster
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1 Version 2] toaster: fix banner after customimage package add
2016-02-24 10:04 ` Barros Pena, Belen
@ 2016-02-25 14:25 ` Smith, Elliot
0 siblings, 0 replies; 4+ messages in thread
From: Smith, Elliot @ 2016-02-25 14:25 UTC (permalink / raw)
To: Barros Pena, Belen; +Cc: toaster
[-- Attachment #1: Type: text/plain, Size: 2516 bytes --]
Sent upstream and added to toaster-next.
Elliot
On 24 February 2016 at 10:04, Barros Pena, Belen <
belen.barros.pena@intel.com> wrote:
>
>
> On 23/02/2016 18:03, "toaster-bounces@yoctoproject.org on behalf of Dave
> Lerner" <toaster-bounces@yoctoproject.org on behalf of
> dave.lerner@windriver.com> wrote:
>
> >Correct formatting of the banner message after adding a package to a
> >custom image.
> >
> >[YOCTO #9101]
>
> I've tried several things, but I can no longer see the truncated message
> when adding packages. So this seems to be working for me.
>
> Thanks!
>
> Belén
>
> >
> >Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
> >---
> > bitbake/lib/toaster/toastergui/static/js/customrecipe.js | 7 +++++--
> > 1 file changed, 5 insertions(+), 2 deletions(-)
> >
> >diff --git a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
> >b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
> >index a1fe486..3c57899 100644
> >--- a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
> >+++ b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
> >@@ -127,7 +127,8 @@ function customRecipePageInit(ctx) {
> > if (targetPkg.hasOwnProperty('depsAdded') &&
> > targetPkg.depsAdded.length > 0) {
> >
> >- msg += "added " + (targetPkg.depsAdded.length + 1);
> >+ msg += "added ";
> >+ msg += "<strong>" + (targetPkg.depsAdded.length + 1) +
> >"</strong>";
> > msg += " packages to " + ctx.recipe.name + ": ";
> > msg += "<strong>" + targetPkg.name + "</strong> and its
> >dependencies";
> >
> >@@ -150,7 +151,9 @@ function customRecipePageInit(ctx) {
> > (targetPkg.depsAdded.length + 1) + " packages added");
> >
> > } else {
> >- msg += ' <strong>' + targetPkg.name + '<strong>';
> >+ msg += "added <strong>1</strong>";
> >+ msg += " package to " + ctx.recipe.name + ": ";
> >+ msg += "<strong>" + targetPkg.name + "</strong>";
> > inlineNotify.text("1 package added");
> > }
> >
> >--
> >1.9.1
> >
> >--
> >_______________________________________________
> >toaster mailing list
> >toaster@yoctoproject.org
> >https://lists.yoctoproject.org/listinfo/toaster
>
> --
> _______________________________________________
> toaster mailing list
> toaster@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/toaster
>
--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
[-- Attachment #2: Type: text/html, Size: 4238 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-25 14:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-23 17:03 [version 2 review-request] fix banner after customimage package add Dave Lerner
2016-02-23 17:03 ` [PATCH 1/1 Version 2] toaster: " Dave Lerner
2016-02-24 10:04 ` Barros Pena, Belen
2016-02-25 14:25 ` Smith, Elliot
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.