[Toaster] V3: [review-request][PATCH] 8186 - The Builds tab in the project page is missing the 'Latest project builds'
Reyna, David
david.reyna at windriver.com
Mon Sep 28 21:08:22 PDT 2015
Hi Elliot,
> “I think this heading should be hidden unless there are one or more "Latest builds".”
V3: I have found the fix and I have updated my branch “dreyna/project_mrb_8186”. You also got a free rebase so that my patch applies to today’s tree.
FYI, it turns out that the “{%if mru.count > 0%}” was not sufficient because in this case “mru” was an empty structure, and the weird Django thing is that “mru.count” returns in that case the string “%S” - which is not an empty string - and that is why you observed this issue.
- David
From: Smith, Elliot [mailto:elliot.smith at intel.com]
Sent: Monday, September 28, 2015 5:36 AM
To: Reyna, David
Cc: BARROS PENA, BELEN; toaster at yoctoproject.org
Subject: Re: V2: [Toaster] [review-request][PATCH] 8186 - The Builds tab in the project page is missing the 'Latest project builds'
On 27 September 2015 at 05:28, Reyna, David <david.reyna at windriver.com<mailto:david.reyna at windriver.com>> wrote:
V2: I have made the formatting changes as per Belén and Michael.
dreyna/project_mrb_8186
I have also confirmed that the formatting and text remains unaffected for the build page (which shares "mrb_section.html").
The styling looks fine now, thanks.
But I notice that the "Latest builds" section is displayed on the "Project builds" even where there are no latest builds, so you get just the heading with no builds underneath it.
I think this heading should be hidden unless there are one or more "Latest builds".
Elliot
- David
> -----Original Message-----
> From: Reyna, David
> Sent: Thursday, September 24, 2015 8:30 AM
> To: BARROS PENA, BELEN
> Cc: SMITH, ELLIOT (elliot.smith at intel.com<mailto:elliot.smith at intel.com>)
> Subject: RE: [Toaster] [review-request][PATCH] 8186 - The Builds tab
> in the project page is missing the 'Latest project builds'
>
> > In my opinion, this might be worth doing.
>
> Ok.
>
> > -----Original Message-----
> > From: Barros Pena, Belen [mailto:belen.barros.pena at intel.com<mailto:belen.barros.pena at intel.com>]
> > Sent: Thursday, September 24, 2015 2:41 AM
> > To: Reyna, David; SMITH, ELLIOT
> > Cc: toaster at yoctoproject.org<mailto:toaster at yoctoproject.org>
> > Subject: Re: [Toaster] [review-request][PATCH] 8186 - The Builds tab
> > in the project page is missing the 'Latest project builds'
> >
> >
> >
> > On 23/09/2015 15:59, "Reyna, David" <david.reyna at windriver.com<mailto:david.reyna at windriver.com>>
> wrote:
> >
> > >Hi Elliot,
> > >
> > >I can certainly do the things you describe, but it means branching
> > >"mrb_section.html" or addition conditionals therein, which I was
> > hoping
> > >to avoid at this
> > > date.
> >
> > In my opinion, this might be worth doing. Text might seem a small
> > thing,
> > but it does help people know where they are and not get lost. If we
> > use
> > conditionals to show the right text or we create a separate template
> I
> > am
> > not too fuzzy about, but it would be nice to get the right headings
> in
> > place.
> >
> > Thanks!!
> >
> > Belén
> >
> > >
> > >- David
> > >
> > >From: Smith, Elliot [mailto:elliot.smith at intel.com<mailto:elliot.smith at intel.com>]
> > >
> > >Sent: Wednesday, September 23, 2015 7:45 AM
> > >To: Reyna, David
> > >Cc: BARROS PENA, BELEN; toaster at yoctoproject.org<mailto:toaster at yoctoproject.org>
> > >Subject: Re: [Toaster] [review-request][PATCH] 8186 - The Builds
> tab
> > in
> > >the project page is missing the 'Latest project builds'
> > >
> > >
> > >
> > >Hello David.
> > >
> > >On 23 September 2015 at 11:02, Reyna, David
> > <david.reyna at windriver.com<mailto:david.reyna at windriver.com>>
> > >wrote:
> > >I have posted a patch for 8186:
> > > dreyna/project_mrb_8186
> > >
> > >
> > >I've had a look at this branch, and it seems to be working well.
> > >
> > >
> > >
> > >However, the styling doesn't quite seem to match the design Belen
> > >provided
> (https://bugzilla.yoctoproject.org/attachment.cgi?id=2669).
> > >
> > >
> > >
> > >* The "Latest builds" heading should be in a smaller font without
> an
> > >underline, to match the "Project builds" heading.
> > >
> > >
> > >
> > >* "Latest builds" should probably read "Latest project builds" to
> > more
> > >easily differentiate these builds from those shown on the all
> builds
> > page.
> > >
> > >
> > >
> > >* In the design, the heading is "All project builds" rather than
> > "Project
> > >builds", to contrast with "Latest project builds".
> > >
> > >
> > >
> > >I'm not sure how important these details are (I don't know how
> > closely we
> > >try to stick to designs), but I thought I'd mention them anyway.
> > >
> > >
> > >
> > >On a different point, it would be great if we could include tests
> for
> > >view code like this. It should be fairly easy to test that the
> > correct
> > >builds are shown for a project under the different circumstances
> you
> > >described. See toastergui/tests.py
> > > for some examples. (Of course, tests aren't mandatory.)
> > >
> > >
> > >
> > >Cheers,
> > >
> > >Elliot
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > * I have tested it against two different projects that have
> unique
> > >builds, and I only see those most recent builds for the respective
> > >projects.
> > >
> > > * When I select a project without builds, I see "Latest builds"
> > with
> > >nothing listed as expected, and with no crashing.
> > >
> > > * I was able to easily reuse "_get_latest_builds(prj)" with the
> > project
> > >parameter in the view, and insert "mrb_section.html" for the
> > template.
> > >
> > >- David
> > >
> > >--
> > >_______________________________________________
> > >toaster mailing list
> > >toaster at yoctoproject.org<mailto:toaster at yoctoproject.org>
> > >https://lists.yoctoproject.org/listinfo/toaster
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >--
> > >Elliot Smith
> > >Software Engineer
> > >Intel Open Source Technology Centre
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20150929/72ea0cfc/attachment-0001.html>
More information about the toaster
mailing list