Merge lp:~bac/launchpad/getnewcache into lp:launchpad
Proposed by
Brad Crittenden
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 13548 | ||||
Proposed branch: | lp:~bac/launchpad/getnewcache | ||||
Merge into: | lp:launchpad | ||||
Prerequisite: | lp:~abentley/launchpad/json-serialization | ||||
Diff against target: |
336 lines (+258/-8) 5 files modified
lib/canonical/launchpad/webapp/configure.zcml (+19/-0) lib/canonical/launchpad/webapp/namespace.py (+53/-2) lib/canonical/launchpad/webapp/templates/launchpad-model.pt (+13/-0) lib/canonical/launchpad/webapp/tests/test_view_model.py (+167/-0) lib/lp/translations/browser/tests/test_sharing_details.py (+6/-6) |
||||
To merge this branch: | bzr merge lp:~bac/launchpad/getnewcache | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benji York (community) | code | Approve | |
Review via email: mp+69476@code.launchpad.net |
Commit message
Provide namespace ++model++ for retrieving a view's JSON cache.
Description of the change
= Summary =
Add a namespace ++model++ so that using it returns a fresh JSON cache for the object or view referenced.
== Pre-implementation notes ==
Lots of conferring with Aaron and Gary.
== Tests ==
bin/test -vvt '(test_
== Demo and Q/A ==
Go to any Launchpad page and append ++model++, e.g.
https:/
https:/
To post a comment you must log in.
This branch looks good. I have a couple of concerns that I'd like you
to take under consideration.
We should do a quick (but not overly taxing) audit to identify existing
views that populate the JSON cache post-initialization and attempt to
fix them.
We should also consider a mechanism to "close" the JSON cache after view
initialization to prevent people from accidentally putting data in it
too late.
In launchpad-model.pt (line 121 of the diff): we probably want more
mellow header text.