Merge lp:~wgrant/launchpad/bug-540819-fix-builder-list-icons into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Aaron Bentley on 2010-03-30 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~wgrant/launchpad/bug-540819-fix-builder-list-icons | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
64 lines (+3/-11) 4 files modified
lib/canonical/launchpad/webapp/tales.py (+2/-9) lib/lp/soyuz/templates/builder-index.pt (+1/-0) lib/lp/soyuz/templates/buildfarmbranchjob-current.pt (+0/-1) lib/lp/soyuz/templates/buildfarmjob-current.pt (+0/-1) |
||||
| To merge this branch: | bzr merge lp:~wgrant/launchpad/bug-540819-fix-builder-list-icons | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Aaron Bentley (community) | 2010-03-27 | Approve on 2010-03-30 | |
|
Review via email:
|
|||
Commit Message
Move the icon for package builds in builder listings back to the start of the text, where it is for the other build types.
Description of the Change
This branch fixes the icon positioning on https:/
Before: http://
After: http://
This brings the binary build rendering back into line with historical behaviour, except that it will always show the BUILDING icon. Previously it would occasionally show the SFULLYBUILT icon for a fraction of a second at the end of a build, which could probably have been called a bug anyway.
| Aaron Bentley (abentley) wrote : | # |
| William Grant (wgrant) wrote : | # |
I discussed this a week or so ago with jtv and noodles, IIRC. Note that for Builds and SPRBs we already use fmt:link here -- but including the icon and other text in it is only appropriate in this particular context.
| William Grant (wgrant) wrote : | # |
20:55 < wgrant> jtv: The 'building' icon spacing on https:/
20:56 < jtv> wgrant: yes, it is. How appropriate it is depends a bit on your perspective: it's the build status, so I'm displaying it as part of the link to the build. It did simplify the code.
20:57 < jtv> wgrant: in fact this is the subject matter of a UI review that's currently somewhere in limbo.
20:57 < wgrant> jtv: The current spacing is definitely broken. I think the ordering is too, but that's up for debate.
20:58 < jtv> wgrant: I don't think I changed the ordering... did I?
20:58 < wgrant> It was '( ) Building _blah blah blah i386_'
20:58 < wgrant> It is now 'Building ( )_blah blah blah i386_'
20:59 < jtv> wgrant: oh, sorry, misunderstood you earlier. That's the part I was talking about all along.
20:59 < wgrant> jtv: Why does it make the code simpler?
20:59 < wgrant> Because it was looking at the build status to generate the icon?
21:00 < jtv> wgrant: and because it was easier to have a link formatter for builds.
21:01 < wgrant> jtv: Argh, where's the template for that?
21:01 * wgrant cannot find it.
21:01 < jtv> builder-index.pt
21:03 < wgrant> jtv: Looks like buildfarmbuildj
21:03 < jtv> ah yes, that's where the link happens now.
21:03 < jtv> That was another thing: we can't show that icon for a buildless job.
21:04 < jtv> So that's another way in which it belongs to the build, not the builder.
21:04 < wgrant> So, I think we should do what is done for the rest of the states.
21:04 < wgrant> And just use the currentlybuilding icon if there's a job assigned.
21:04 < wgrant> Regardless of state.
21:04 < jtv> That's fine by me.
21:06 < wgrant> jtv: Ah, so you already hardcode that icon form non-build BFJs?
21:07 < jtv> wgrant: I _think_ I did that in an earlier iteration but it didn't seem appropriate.
21:07 < wgrant> It appears to be in devel's buildfarmjob-
21:08 < jtv> wgrant: there was a lot of exploring to get it all in a sort of minimal working shape... I don't mind moving things around a bit now that we have a working situation.
21:09 < wgrant> Yep.

Has this had a preimplementation call? Is there no fmt:link formatter for these items, or is it somehow inappropriate?