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

Issue 8648: Add data pipelining support to Shindig (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 6 months ago by awiner
Modified:
14 years, 9 months ago
Reviewers:
etnu00, louiscryan, uidude
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

Implementing a prototype of data pipelining in Shindig. The most recent patch set is missing: - support for <os:DataRequest> It also requires sign_owner and/or sign_viewer if the requested data refers to owner and/or viewer. This is https://issues.apache.org/jira/browse/SHINDIG-696

Patch Set 1 #

Patch Set 2 : Updated patch #

Patch Set 3 : Added unit tests, caching support, etc. #

Patch Set 4 : Added os:MakeRequest/ViewerRequest/OwnerRequest, fixed namespace, separated handling of <Preload> #

Patch Set 5 : Addressed (most of) Kevin's review, and resolved ongoing bitrot. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1489 lines, -285 lines) Patch
config/container.js View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
java/common/src/main/java/org/apache/shindig/common/xml/XmlUtil.java View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/DefaultGuiceModule.java View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/HttpCacheKey.java View 3 4 2 chunks +14 lines, -5 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/ConcurrentPreloaderService.java View 1 2 3 4 2 chunks +20 lines, -9 lines 1 comment Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/ConcurrentPreloads.java View 1 2 3 4 1 chunk +42 lines, -27 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/HttpPreloader.java View 1 2 3 4 4 chunks +40 lines, -22 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/NullPreloads.java View 4 1 chunk +3 lines, -6 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/PreloadedData.java View 2 chunks +3 lines, -1 line 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/Preloader.java View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/PreloaderService.java View 4 1 chunk +9 lines, -3 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/Preloads.java View 1 2 3 4 1 chunk +4 lines, -16 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/SocialPreloader.java View 1 2 3 4 1 chunk +223 lines, -0 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/render/HtmlRenderer.java View 1 2 3 4 5 chunks +50 lines, -3 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/render/RenderingContentRewriter.java View 1 2 3 4 4 chunks +15 lines, -15 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/spec/SocialData.java View 2 3 4 1 chunk +281 lines, -0 lines 2 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/spec/View.java View 1 2 3 4 6 chunks +39 lines, -2 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/http/HttpCacheKeyTest.java View 3 4 1 chunk +11 lines, -0 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/preload/ConcurrentPreloaderServiceTest.java View 1 2 3 4 5 chunks +61 lines, -48 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/preload/ConcurrentPreloadsTest.java View 1 2 3 4 4 chunks +72 lines, -40 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/preload/HttpPreloaderTest.java View 1 2 3 4 11 chunks +58 lines, -70 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/preload/PreloaderTestFixture.java View 1 chunk +72 lines, -0 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/preload/SocialPreloaderTest.java View 3 4 1 chunk +146 lines, -0 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/render/HtmlRendererTest.java View 3 4 6 chunks +86 lines, -2 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/render/RenderingContentRewriterTest.java View 4 2 chunks +13 lines, -13 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/spec/SocialDataTest.java View 3 1 chunk +163 lines, -0 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/spec/ViewTest.java View 3 4 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 10
awiner
Updated patch
15 years, 6 months ago (2008-11-13 00:59:58 UTC) #1
louiscryan
Looks awesome. Happy to commit http://codereview.appspot.com/8648/diff/28/223 File config/container.js (right): http://codereview.appspot.com/8648/diff/28/223#newcode78 Line 78: "gadgets.osDataUri" : "http://%host%/social/rpc", ...
15 years, 6 months ago (2008-11-14 22:39:22 UTC) #2
awiner
Uploaded new patch, including proper caching support, some tweaks for numeric attributes, and a bunch ...
15 years, 6 months ago (2008-11-16 00:17:26 UTC) #3
awiner
Added unit tests, caching support, etc.
15 years, 6 months ago (2008-11-16 00:18:13 UTC) #4
awiner
Added os:MakeRequest/ViewerRequest/OwnerRequest, fixed namespace, separated handling of <Preload>
15 years, 5 months ago (2008-12-08 23:37:51 UTC) #5
etnu00
http://codereview.appspot.com/8648/diff/401/426 File java/common/src/main/java/org/apache/shindig/common/xml/XmlUtil.java (right): http://codereview.appspot.com/8648/diff/401/426#newcode63 Line 63: builderFactory.setNamespaceAware(true); Is there any reason why this isn't ...
15 years, 5 months ago (2008-12-09 18:36:18 UTC) #6
etnu00
http://codereview.appspot.com/8648/diff/28/221 File java/gadgets/src/main/java/org/apache/shindig/gadgets/spec/View.java (right): http://codereview.appspot.com/8648/diff/28/221#newcode164 Line 164: // TODO: support hangman substitutions for social preloads? ...
15 years, 5 months ago (2008-12-09 18:38:12 UTC) #7
awiner
http://codereview.appspot.com/8648/diff/28/221 File java/gadgets/src/main/java/org/apache/shindig/gadgets/spec/View.java (right): http://codereview.appspot.com/8648/diff/28/221#newcode164 Line 164: // TODO: support hangman substitutions for social preloads? ...
15 years, 5 months ago (2008-12-09 19:26:48 UTC) #8
awiner
Addressed (most of) Kevin's review, and resolved ongoing bitrot.
15 years, 5 months ago (2008-12-10 22:16:16 UTC) #9
etnu00
15 years, 5 months ago (2008-12-10 23:29:15 UTC) #10
Looks good to me. Some last few comments on naming / style.

http://codereview.appspot.com/8648/diff/801/453
File
java/gadgets/src/main/java/org/apache/shindig/gadgets/preload/ConcurrentPreloaderService.java
(right):

http://codereview.appspot.com/8648/diff/801/453#newcode71
Line 71: // is counter-productive
It doesn't really matter though since the retrieval of the preloaded data blocks
until everything is complete. More wiring has to be done to make that behavior
work.

http://codereview.appspot.com/8648/diff/801/465
File java/gadgets/src/main/java/org/apache/shindig/gadgets/spec/SocialData.java
(right):

http://codereview.appspot.com/8648/diff/801/465#newcode40
Line 40: public class SocialData {
I'd suggest calling this PipelinedData or something along those lines. Not
everything in data pipelining is necessarily "social", including...

http://codereview.appspot.com/8648/diff/801/465#newcode43
Line 43: private final Map<String, Preload> httpPreloads;
this.
Sign in to reply to this message.

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