Merge lp:~abentley/launchpad/translations-sharing into lp:launchpad
Status: | Merged |
---|---|
Merged at revision: | 13548 |
Proposed branch: | lp:~abentley/launchpad/translations-sharing |
Merge into: | lp:launchpad |
Prerequisite: | lp:~abentley/launchpad/reload-cache |
Diff against target: |
427 lines (+152/-118) 3 files modified
lib/lp/translations/javascript/sourcepackage_sharing_details.js (+49/-91) lib/lp/translations/javascript/tests/test_sourcepackage_sharing_details.html (+1/-0) lib/lp/translations/javascript/tests/test_sourcepackage_sharing_details.js (+102/-27) |
To merge this branch: | bzr merge lp:~abentley/launchpad/translations-sharing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
j.c.sackett (community) | Approve | ||
Review via email: mp+69531@code.launchpad.net |
Commit message
+sharing-details uses load_model.
Description of the change
= Summary =
Reduce roundtrips on +sharing-details page
== Proposed fix ==
Use the new lp.client.
the IJSONRequestCache.
== Pre-implementation notes ==
None
== Implementation details ==
This is based on ~abentley/
load_model functionality.
Most of the updates that happen on +sharing-details require updating more than
one object. In this branch, those methods are changed to use load_model,
via IOHandler.
TranslationShar
everything from a new copy of the model. This makes many existing functions
redundant, and so they are deleted.
IOHandler.
on success. This is now tested, using IORecorder. The simplification means
that chain_config is no longer needed for most operations; get_config can be
used instead.
== Tests ==
bin/test -t test_sourcepack
== Demo and Q/A ==
Go to the +sharing-details for a sourcepackage. All operations should succeed,
and do so quickly.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/canonical
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/canonical
lib/lp/
lib/lp/
lib/lp/
./lib/lp/
218: E251 no spaces around keyword / parameter equals
226: E251 no spaces around keyword / parameter equals
254: E251 no spaces around keyword / parameter equals
265: E251 no spaces around keyword / parameter equals
277: E251 no spaces around keyword / parameter equals
311: E251 no spaces around keyword / parameter equals
This looks good.
I'm really impressed by the cleanup of all the methods that update parts of an object into a method that updates everything; this is very cool work.