Merge lp:~milo/linaro-ci-dashboard/linkify-next-loop into lp:linaro-ci-dashboard
Proposed by
Milo Casagrande
Status: | Merged |
---|---|
Merged at revision: | 46 |
Proposed branch: | lp:~milo/linaro-ci-dashboard/linkify-next-loop |
Merge into: | lp:linaro-ci-dashboard |
Diff against target: |
440 lines (+127/-77) 22 files modified
dashboard/frontend/android_build/models/android_loop.py (+12/-0) dashboard/frontend/android_build/templates/android_loop_detail.html (+0/-7) dashboard/frontend/android_build/tests/test_android_build_clientresponse.py (+1/-2) dashboard/frontend/android_build/tests/test_android_build_views.py (+2/-0) dashboard/frontend/android_build/views/android_loop_detail_view.py (+0/-2) dashboard/frontend/android_textfield_loop/models/android_textfield_loop.py (+13/-0) dashboard/frontend/android_textfield_loop/templates/android_textfield_loop_detail.html (+0/-7) dashboard/frontend/android_textfield_loop/tests/test_android_textfield_clientresponse.py (+1/-2) dashboard/frontend/android_textfield_loop/views/android_textfield_loop_detail_view.py (+1/-2) dashboard/frontend/integration_loop/models/integration_loop.py (+13/-2) dashboard/frontend/integration_loop/templates/integration_loop_detail.html (+0/-7) dashboard/frontend/integration_loop/views/integration_loop_detail_view.py (+0/-2) dashboard/frontend/kernel_build/models/kernel_loop.py (+12/-0) dashboard/frontend/kernel_build/templates/kernel_loop_detail.html (+0/-7) dashboard/frontend/kernel_build/tests/test_kernel_build_clientresponse.py (+1/-2) dashboard/frontend/kernel_build/views/kernel_loop_detail_view.py (+0/-2) dashboard/frontend/models/loop.py (+15/-2) dashboard/frontend/models/textfield_loop.py (+1/-1) dashboard/frontend/templates/loop_detail.html (+21/-2) dashboard/frontend/templates/textfield_loop_detail.html (+2/-21) dashboard/frontend/tests/test_clientresponse.py (+1/-2) dashboard/frontend/views/loop_detail_view.py (+31/-5) |
To merge this branch: | bzr merge lp:~milo/linaro-ci-dashboard/linkify-next-loop |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stevan Radaković | Approve | ||
Review via email:
|
Description of the change
Thsi is a tentative implementation of the final detail of the detail view.
At the moment it works only for the textfield-based views, but if the implementation looks good enough, it can be extended to the others too.
The code added is commented, so should be clear what has been done.
Basically, I resolved this using the @permalink annotation in the model, and retrieving the correct instance from the generic Loop model from the fields.
The same approach might be used also in the JavaScript that creates the link for the 'build' path in the detail view.
To post a comment you must log in.
Hey Milo, looks nice!
Is there anyway we can move the get_next_loop model in the view tho?
Also, since we don't need any of the other permalink methods except detail and build, let's remove them.
And as we've spoken on IRC, let's remove everything related to the build_path now...