Merge lp:~adeuring/launchpad/bug-435556 into lp:launchpad
Proposed by
Abel Deuring
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~adeuring/launchpad/bug-435556 |
Merge into: | lp:launchpad |
Diff against target: |
142 lines (+78/-12) 2 files modified
lib/lp/bugs/stories/bugtask-management/xx-bugtask-edit-forms.txt (+55/-0) lib/lp/bugs/templates/bugtask-tasks-and-nominations-table-row.pt (+23/-12) |
To merge this branch: | bzr merge lp:~adeuring/launchpad/bug-435556 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | Approve | ||
Review via email: mp+14370@code.launchpad.net |
To post a comment you must log in.
This branch fixes bug 435556: Non-AJAX bugtask edit links always point to the context task.
This cause is trivial: The links were simply "static" links <a href="+ editstatus" >, so they all pointed to the edit page of the "current" bug task. The fix is trivial: Set the link target via a TAL expression. Note that when the template is rendered, the context is not the bug task as given by the URL of the page: The context is set in BugTasksAndNomi nationsView. _getTableRowVie w(), which is called by BugTasksAndNomi nationsView. getBugTaskAndNo minationViews( ), and the latter method sets the context to the "right" bugtask.
test: ./bin/test --test= xx-bugtask- edit-forms. txt
Lots of tests mention the +editstatus URL; without checking the relevance of them, a test run covering all of these tests is:
./bin/test -vv -f lp stories. bug-release- management upstream- bugprivacy bug-also- affects package- bug-task- authenticated. txt \ bugwatch- linkage. txt \ privileged- statuses. txt \ importance- change. txt \ editable- bug-task. txt \ email-address- bugtask. txt \ while-editing. txt \ to-malone. txt \ assignee- widget. txt \ create- question. txt \ bugs.txt \ account. txt \ milestones. txt \ milestone- on-distribution .txt \ reassignment- and-milestones. txt \
./bin/test -vv -f lp stories.
./bin/test -vv -f lp stories.
./bin/test -vv -t xx-edit-
-t xx-bugtask-
-t xx-bug-
-t xx-bug-
-t xx-view-
-t xx-edit-
-t xx-subscribe-
-t xx-switch-
-t xx-bugtask-
-t xx-bug-
-t xx-incomplete-
-t xx-bug-activity.txt \
-t xx-deactivate-
-t object-
-t xx-create-
-t xx-product-
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: bugs/stories/ bugtask- management/ xx-bugtask- edit-forms. txt bugs/templates/ bugtask- tasks-and- nominations- table-row. pt
lib/lp/
lib/lp/