Merge lp:~salgado/offspring/builder_details into lp:offspring
Proposed by
Guilherme Salgado
Status: | Merged |
---|---|
Approved by: | Kevin McDermott |
Approved revision: | 110 |
Merged at revision: | 110 |
Proposed branch: | lp:~salgado/offspring/builder_details |
Merge into: | lp:offspring |
Prerequisite: | lp:~salgado/offspring/list-views |
Diff against target: |
164 lines (+50/-11) 6 files modified
Makefile (+2/-2) lib/offspring/web/queuemanager/tests/test_views.py (+25/-7) lib/offspring/web/queuemanager/views.py (+14/-1) lib/offspring/web/templates/queuemanager/builder_details.html (+1/-1) lib/offspring/web/templates/queuemanager/builds.html (+4/-0) lib/offspring/web/templates/queuemanager/projects.html (+4/-0) |
To merge this branch: | bzr merge lp:~salgado/offspring/builder_details |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kevin McDermott | Approve | ||
Review via email: mp+84295@code.launchpad.net |
Description of the change
Update the builder_details view to omit details of the current job if the user has no rights to see it.
Also shows a small padlock icon next to private projects on both the list of projects and the list of builds
To post a comment you must log in.
=== modified file 'lib/offspring/ web/queuemanage r/tests/ test_views. py'
+ # Stub Lexbuilder. average_ load because it executes some SQL that's not
+ # supported by sqlite3 and we're not interested in testing it here.
Can you file a bug to fix this?
I would have fixed it when I was fixing the metrics code, but I'm not sure I fully understand what it's calculating (and the docstring isn't very helpful).
It looks to be calculating the % of the day that builds take for all builds that finish the same day as they start?
=== modified file 'lib/offspring/ web/queuemanage r/views. py'
+def builders(request):
+ # builder_list is a dictionary where keys are Lexbuilder instances to be
+ # shown and the values represent whether or not the information about the
+ # builder's current job should be shown to the current user.
Why no docstring?
+def builder_ details( request, builderName):
+ # Here we don't filter out the builders working on private projects (as we
Again, no docstring, and this doesn't handle unknown builder names very well...
Other than that it looks pretty good...
My usual annoyances with things like...
+ projects = projects. select_ related( 'project_ group') .order_ by(
+ "project_group")
Why change between different quote types in the same statement?
And running PEP8 on view.py is horrific...but hey :-)