Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13)

Issue 9828043: Adds caching to interesting/search api calls

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by j.c.sackett
Modified:
10 years, 11 months ago
Reviewers:
rharding, mp+166051, matthew.scott
Visibility:
Public.

Description

Adds caching to interesting/search api calls * Caching mechanism added to search and editorial on their API calls. * Editorial can always cache, as it won't change within a user's session. * Search requires mechanism to see if search has changed, in which case we need to hit the API again. https://code.launchpad.net/~jcsackett/juju-gui/cache-api-calls/+merge/166051 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 20

Patch Set 2 : Adds caching to interesting/search api calls #

Total comments: 21

Patch Set 3 : Adds caching to interesting/search api calls #

Total comments: 1

Patch Set 4 : Adds caching to interesting/search api calls #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -154 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M app/subapps/browser/browser.js View 1 2 8 chunks +54 lines, -15 lines 0 comments Download
M app/subapps/browser/views/charmresults.js View 1 3 chunks +6 lines, -3 lines 0 comments Download
M app/subapps/browser/views/editorial.js View 1 2 3 3 chunks +120 lines, -98 lines 0 comments Download
M app/subapps/browser/views/search.js View 1 2 3 chunks +29 lines, -19 lines 0 comments Download
M app/subapps/browser/views/view.js View 1 2 2 chunks +0 lines, -15 lines 0 comments Download
M test-server.sh View 1 chunk +2 lines, -2 lines 0 comments Download
M test/test_browser_app.js View 1 1 chunk +18 lines, -1 line 0 comments Download
M test/test_browser_editorial.js View 1 1 chunk +50 lines, -0 lines 0 comments Download
M test/test_browser_search_view.js View 1 3 chunks +22 lines, -1 line 0 comments Download

Messages

Total messages: 10
j.c.sackett
Please take a look.
10 years, 11 months ago (2013-05-28 13:40:22 UTC) #1
rharding
I think there's a discussion to be had about making the cache a bit more ...
10 years, 11 months ago (2013-05-28 14:52:44 UTC) #2
j.c.sackett
https://codereview.appspot.com/9828043/diff/1/app/subapps/browser/browser.js File app/subapps/browser/browser.js (right): https://codereview.appspot.com/9828043/diff/1/app/subapps/browser/browser.js#newcode197 app/subapps/browser/browser.js:197: _searchChanged: function() { On 2013/05/28 14:52:44, rharding wrote: > ...
10 years, 11 months ago (2013-05-28 15:46:30 UTC) #3
j.c.sackett
Please take a look.
10 years, 11 months ago (2013-05-29 14:17:09 UTC) #4
rharding
Thanks, this looks a lot nicer. I think there's even more code to go. Please ...
10 years, 11 months ago (2013-05-29 14:29:36 UTC) #5
j.c.sackett
Comments addressed, changes coming. https://codereview.appspot.com/9828043/diff/9001/app/subapps/browser/browser.js File app/subapps/browser/browser.js (right): https://codereview.appspot.com/9828043/diff/9001/app/subapps/browser/browser.js#newcode320 app/subapps/browser/browser.js:320: this._cache.charms.destroy(); On 2013/05/29 14:29:36, rharding ...
10 years, 11 months ago (2013-05-29 15:04:01 UTC) #6
j.c.sackett
Please take a look.
10 years, 11 months ago (2013-05-29 15:17:16 UTC) #7
rharding
LGTM thanks for working on this. https://codereview.appspot.com/9828043/diff/17001/app/subapps/browser/views/editorial.js File app/subapps/browser/views/editorial.js (right): https://codereview.appspot.com/9828043/diff/17001/app/subapps/browser/views/editorial.js#newcode37 app/subapps/browser/views/editorial.js:37: * Editorial view ...
10 years, 11 months ago (2013-05-29 15:25:05 UTC) #8
matthew.scott
LGTM, thanks! https://codereview.appspot.com/9828043/diff/9001/app/subapps/browser/views/editorial.js File app/subapps/browser/views/editorial.js (right): https://codereview.appspot.com/9828043/diff/9001/app/subapps/browser/views/editorial.js#newcode37 app/subapps/browser/views/editorial.js:37: * Editorial view for landing pages. Trivial: ...
10 years, 11 months ago (2013-05-29 15:32:42 UTC) #9
j.c.sackett
10 years, 11 months ago (2013-05-29 16:39:41 UTC) #10
*** Submitted:

Adds caching to interesting/search api calls

* Caching mechanism added to search and editorial on their API calls.
* Editorial can always cache, as it won't change within a user's session.
* Search requires mechanism to see if search has changed, in which case we
need to hit the API again.

R=rharding, matthew.scott
CC=
https://codereview.appspot.com/9828043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b