Merge lp:~thumper/launchpad/kill-bad-form-preloads into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Tim Penhey on 2010-10-20 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11770 |
| Proposed branch: | lp:~thumper/launchpad/kill-bad-form-preloads |
| Merge into: | lp:launchpad |
| Diff against target: |
60 lines (+17/-10) 3 files modified
lib/lp/code/templates/branch-index.pt (+11/-8) lib/lp/code/templates/branch-information.pt (+1/-1) lib/lp/code/templates/branch-related-bugs-specs.pt (+5/-1) |
| To merge this branch: | bzr merge lp:~thumper/launchpad/kill-bad-form-preloads |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Jeroen T. Vermeulen (community) | code js | 2010-10-19 | Approve on 2010-10-20 |
|
Review via email:
|
|||
Commit Message
Only load the link bug and subscription ++form++ when the user is logged in.
Description of the Change
Several simple changes to stop lots of 404s.
Only do the javascript binding and loading of the forms if the user is logged in.
Windmill tests should be sufficient.
| Robert Collins (lifeless) wrote : | # |
| Tim Penhey (thumper) wrote : | # |
We can't easily trigger the login from the ajax calls. By not hooking up the link bug, we are leaving the link there, but not connected to ajax. That way they do get sent to the login page, even though they then go to an icky non-js version for linking a bug.
The edit button just shouldn't be there if they are not able to edit.
| Jeroen T. Vermeulen (jtv) wrote : | # |
We discussed on IRC. It's annoying that this isn't tested, but a windmill test would be overkill. Alternatives won't help enough to carry their weight.
Rockstar came up with a good suggestion for the longer term: the login check should happen inside the widget.

I think this is an improvement for now, but wouldn't it be nice to
have a login triggered if someone tries something, rather than having
the form appear less complete? (Perhaps I misunderstand what happens).