Merge lp:~mwhudson/loggerhead/bug-383631 into lp:loggerhead
Proposed by
Michael Hudson-Doyle
Status: | Merged |
---|---|
Approved by: | John A Meinel |
Approved revision: | 463 |
Merged at revision: | 462 |
Proposed branch: | lp:~mwhudson/loggerhead/bug-383631 |
Merge into: | lp:loggerhead |
Diff against target: |
45 lines (+5/-5) 2 files modified
loggerhead/templates/breadcrumbs.pt (+1/-1) loggerhead/util.py (+4/-4) |
To merge this branch: | bzr merge lp:~mwhudson/loggerhead/bug-383631 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John A Meinel | Needs Information | ||
Review via email: mp+87877@code.launchpad.net |
Description of the change
This branch fixes the linked bug, twice over:
1) It changes the URLs of the in-branch breadcrumbs to be based on paths, like everything else in Loggerhead has been for years.
2) It removes 'file_id' from the set of query arguments that the (disgusting, I'd forgotten how horrible this bit was) machinery used by context_url preserves, now that we never ever generate a url with a file_id argument.
Cheers,
mwh
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 1/8/2012 10:54 PM, Michael Hudson-Doyle wrote: reviewers) /bugs.launchpad .net/loggerhead /+bug/383631 /code.launchpad .net/~mwhudson/ loggerhead/ bug-383631/ +merge/ 87877
> Michael Hudson-Doyle has proposed merging
> lp:~mwhudson/loggerhead/bug-383631 into lp:loggerhead.
>
> Requested reviews: Loggerhead Reviewers (loggerhead-
> Related bugs: Bug #383631 in loggerhead: "Breadcrumbs while
> annotating a file in head shows the most recent revision in the url
> instead of head" https:/
>
> For more details, see:
> https:/
>
> This branch fixes the linked bug, twice over:
>
> 1) It changes the URLs of the in-branch breadcrumbs to be based on
> paths, like everything else in Loggerhead has been for years.
>
> 2) It removes 'file_id' from the set of query arguments that the
> (disgusting, I'd forgotten how horrible this bit was) machinery
> used by context_url preserves, now that we never ever generate a
> url with a file_id argument.
>
> Cheers, mwh
I love getting rid of file_id in the URLs, but will this break
existing URLs if people are saving them somewhere? ISTR some people
wanted a good way to point people at :head of a file like README, etc.
I especially like this: '/'.join( dir_parts[ :index + 1])), dir_parts[ :index + 1]),
- - 'file_id': inv.path2id(
+ 'path': '/'.join(
Internally it was already doing paths, and forcing a translation to
file_id at this part.
Anyway, if it is incompatible, is there a way we could try to migrate
gracefully?
review: needsinfo
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
W3/UACgkQJdeBCY SNAAOPCQCfX+ WJIFLOagJvmKJnL y+/tKXJ HidXeMLPZLnOIUa P0
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk8
snsAn0jlmnE6b3D
=UHk1
-----END PGP SIGNATURE-----