Merge lp:~sinzui/launchpad/registry-tales-2 into lp:launchpad
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 11077 | ||||||||
Proposed branch: | lp:~sinzui/launchpad/registry-tales-2 | ||||||||
Merge into: | lp:launchpad | ||||||||
Diff against target: |
97 lines (+22/-9) 4 files modified
lib/lp/registry/browser/tests/milestone-views.txt (+15/-4) lib/lp/registry/templates/distroseries-needs-packaging.pt (+2/-1) lib/lp/registry/templates/distroseries-packaging.pt (+2/-1) lib/lp/registry/templates/milestone-index.pt (+3/-3) |
||||||||
To merge this branch: | bzr merge lp:~sinzui/launchpad/registry-tales-2 | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Leonard Richardson (community) | Approve | ||
Review via email: mp+28760@code.launchpad.net |
Description of the change
This is my branch to adjust the cache rules for registry pages.
lp:~sinzui/launchpad/registry-tales-2
Diff size:
Launchpad bug:
https:/
https:/
Test command: ./bin/test -vv \
-t milestone-views -t packaging-views \
-t xx-sourcepackag
Pre-
Target release: 10.06
Adjust the cache rules for registry pages
-------
Bug #599614 [bad caching in milestone page]
"Assigned to you" <- the data is user-specific, pubic, not private
Bug #599818 [distroseries +packaging and +needs-packaging could cache]
Recent schema changes make data retrieval for +packaging and +needs-
packaging much faster, but packages are added/removed from +packaging and
+needs-
information. A 30 minute public cache will help the pages display quicker.
Rules
-----
Bug #599614 [bad caching in milestone page]
* Use "private" cache so that the "Assigned to you" information is really
about you.
* Add a test for this since it is now understood that the information
is personalised.
Bug #599818 [distroseries +packaging and +needs-packaging could cache]
* Add tal:content=
+
QA
--
Bug #599614 [bad caching in milestone page]
* As anonymous, visit an old milestone that you know you were assigned
bug.
* Verify it states that no bugs or blueprints are assigned to you.
* Login.
* Verify the page states the number of bugs or blueprints assigned to you.
Bug #599818 [distroseries +packaging and +needs-packaging could cache]
* Visit https:/
* Load the page 5 times and verify it does not timeout once it renders
(staging will probably not timeout because if the schema changes)
* Visit https:/
* Load the page 5 times and verify it does not timeout once it renders
Lint
----
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Test
----
* lib/lp/
* Revised the test to work with only the content under test.
* Added a test for the cache rules of the activity portlet.
Implementation
--------------
* lib/lp/
* Added a 30 minute public cache.
* lib/lp/
* Added a 30 minute public cache.
* lib/lp/
* Changed the cache rules from public to private.
If I had fixed this I would have kept the overall project counts cached as public, and just made the assigned bugs count private. I don't have a good feel for whether the cost of recalculating them actually makes that worthwhile.