[Toaster] image information - 2nd pass w/ faked dirinfo backend

Lerner, Dave dave.lerner at windriver.com
Wed Mar 12 17:19:20 PDT 2014



> -----Original Message-----
> From: Barros Pena, Belen [mailto:belen.barros.pena at intel.com]
> Sent: Monday, March 10, 2014 12:59 PM
> To: Lerner, Dave
> Cc: toaster at yoctoproject.org
> Subject: Re: image information - 2nd pass w/ faked dirinfo backend
> 
> On 10/03/2014 17:44, "Lerner, Dave" <dave.lerner at windriver.com> wrote:
> 
> >Partial response.  Still working on the rest...
> >
> >> -----Original Message-----
> >> From: Barros Pena, Belen [mailto:belen.barros.pena at intel.com]
> >> Sent: Monday, March 10, 2014 11:36 AM
> >> To: Lerner, Dave
> >> Cc: toaster at yoctoproject.org
> >> Subject: Re: image information - 2nd pass w/ faked dirinfo backend
> >>
> >> On 07/03/2014 22:49, "Lerner, Dave" <dave.lerner at windriver.com> wrote:
> >>
> >> >>> * For some reason, the help tooltips don¹t seem to be working when
> >>they
> >> >>> are inside a directory. The .hover-help class does not set the
> >> >>>visibility
> >> >>> to hidden, and the Bootstrap tooltips don¹t start up. I am not sure
> >>if
> >> >>> this is some weird interaction with the table plugin. They do work
> >>in
> >> >>>the
> >> >>> ones at the bottom of the table, which are shown by default. If we
> >> >>>cannot
> >> >>> get them to work, we will need to take them out. Maybe Farrell
> >>might be
> >> >>> able to give us a hand with this.
> >> >>>
> >> >I can't reproduce your problem. The hover help takes a while to appear,
> >> >but appears on a browser
> >> >on the server and a remote browser.  Or are you talking about the
> >> >'collapse' 'expand' hover tip?
> >> >
> >>
> >> I am talking about the help bubble next to the packages that have name
> >>!=
> >> installed_name in the Directory structure table. When you go to that
> >>page
> >> with your database, you can see some symlinks at the very bottom (bin,
> >> lib, lib64 and sbin). If you roll over the "Source package" cell for
> >>bin, for example, you will see the help bubble coming up, and if you hover
> >>over the help bubble, you will see that the tooltip has a black background
> >>with white font.
> >
> >I finally get it! the hover question mark bubble unconditionally appears
> >in an expanded row.  I'll fix this.
> >
> >But...
> >> If you expand a directory, for example 'var', you will that the "Source
> >> package" cell for the symlinks is shown always (instead of appearing
> >>when
> >> you hover over the cell) and when you hover over it the tooltip style is
> >> the one set by your browser (in mine is black font on a grey
> >>background).
> >
> >You will have to show me this problem I'm afraid.  Because the data is
> >_NOT_ coming from my database, but is from your server host or my server
> >host, ie 'faked backend'. What happens on my host may not match what is
> >happening on your host.
> >
> >Specifically when you say ...
> >> "Source package" cell for the symlinks is shown always
> >> (instead of appearing when you hover over the cell)
> >... I'm not sure what you mean.  Source package cell is unconditional,
> >symlink or not, if the inode is not a directory, according to how I
> >interpretted the spec.
> >
> >I'm sure a webex session will clear this up quickly if I can schedule one
> >with you.
> 
> Of course! Sorry about this: completely forgot you cannot see what I see.
> Shall I show you during the meeting on Wednesday?

With live data plus one faked top level file, I see this anomaly
For two different rows, one at the top (/) level and one expanded from /lib
- in the top level row for a faked file I've added,
++ help bubble is hidden until you traverse the mouse into the source-package cell
++ help tip is white font on black background
- in the expanded row 
++ help bubble is always visible
++ help tip is black font on white background

Unfortunately, I've spent much more than an hour on this and can't figure out why it's happening.  Since the bug is cosmetic (but I agree should be fixed) I think the issue be filed as a bugzilla bug along with my review request, so that if it takes 2 or more days to figure out, it doesn't impact the availability of the other features and pages.


> >
> >> >>
> >> >> * We need to implement the no results page for the search / filters.
> >> >>Once
> >> >> more, we should be able to reuse what is in builds.html
> >> >
> >>
> >> The h1 is saying "no packages". We should probably keep it consistent
> >>with
> >> the other Toaster pages and say "0 packages found"
> >
> >I was following the code below from recipes and tasks, which may have
> >bugs:
> >recipes.html
> ><h1>
> >  {% if request.GET.filter or request.GET.search and objects.count > 0  %}
> >      {{objects.paginator.count}}
> >recipe{{objects.paginator.count|pluralize}} found
> >  {%elif objects.paginator.count == 0%}
> >      No Recipes
> >  {%else%}
> >      Recipes
> >  {%endif%}
> > </h1>
> >
> >tasks.html
> ><h1>
> >  {% if request.GET.filter or request.GET.search and objects.count > 0  %}
> >      {{objects.paginator.count}}
> >task{{objects.paginator.count|pluralize}} found
> >  {%elif objects.paginator.count == 0%}
> >      No tasks
> >  {%else%}
> >      {{title}}
> >  {%endif%}
> > </h1>
> >---------------
> >As you can see, both recipes and tasks have the intention of showing "No
> >recipes" and "No tasks" but because the code tests objects.count instead
> >of objects.paginator.count the logic fails and they use the "0 found"
> >reporting method insted of intended "N ..."
> >
> >my code - target.html - correctly tests objects.paginator.count > 0
> ><h1>
> >  {% if request.GET.search and objects.paginator.count > 0 %}
> >     {{objects.paginator.count}}
> >package{{objects.paginator.count|pluralize}} found
> >  {% elif request.GET.search and objects.paginator.count == 0 %}
> >     No packages
> >  {% else %}
> >     {{target.target}}
> >  {% endif %}
> ></h1>
> >
> >I will change my code to use "0 <entities> found" (without the bugs), but
> >then we need a bug report to remove the dead code and the bugs from
> >recipes.html and tasks.html, so that they don't get 'fixed' and become
> >inconsistent with my code, correct?
> 
> Ah! Jeez, Monday brain. Now I get it :) No, no: let's keep your version.
> But in any case the heading is missing the 'found'. It just says "No
> packages" but it should say "No packages found", "No recipes found", "No
> builds found", etc

Done

> 
> >
> >(still reviewing the rest)
> >Dave
> >
> >
> 



More information about the toaster mailing list