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

Issue 1247044: Incorporate OpenAjax Hub as Pub-Sub Mechanism for Shindig

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by Javier Pedemonte
Modified:
13 years, 6 months ago
Reviewers:
Paul Lindner, shindig.remailer, johnfargo, woodstae, dev-remailer, Han Nguyen
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Preliminary support for using OpenAjax Hub as a pubsub mechanism for OpenSocial/Shindig. See http://wiki.opensocial.org/index.php?title=PubSub.next_Proposals for proposal. New feature is simply named "pubsub-2". This patch contains several files (OpenAjax-mashup.js, iframe.js, crypto.js) from an OpenAjax Hub branch, which uses Shindig RPC as the underlying transport layer for the Hub pubsub features. Due to the way OpenAjax Hub works, I needed to know in shindig-container.js whether a gadget requires the "pubsub-2" feature and if so use the Hub code to create the iframe. I wasn't sure what the best way to integrate that into shindig-container.js, so I just did it the easy way. This definitely needs work. Also, as per the discussion in the proposal linked above, the gadget side pubsub-2 API is accessible from a gadget instance object. For lack of a better place, I just put it in util.js.

Patch Set 1 #

Patch Set 2 : wiring metadata #

Patch Set 3 : Make sure relayUrl is absolute #

Patch Set 4 : Add security features to RPC #

Total comments: 28

Patch Set 5 : Fixes, move 'pubsub-2' feature to 'extras' #

Total comments: 3

Patch Set 6 : Remove 'gadgets.byId()', change 'pubsub-2' from instance- to static-based API #

Patch Set 7 : Alternative, cleaner shindig-container.js #

Patch Set 8 : Remainder patch #

Patch Set 9 : Prefix RPC security error enums; samplecontainer.js fix; small Hub code update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -124 lines) Patch
M content/container/sample-pubsub-2-publisher.xml View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M content/container/sample-pubsub-2-subscriber.xml View 1 2 3 4 5 6 2 chunks +3 lines, -5 lines 0 comments Download
M content/samplecontainer/samplecontainer.js View 1 chunk +7 lines, -2 lines 0 comments Download
M extras/src/main/java/org/apache/shindig/extras/ShindigExtrasGuiceModule.java View 1 chunk +1 line, -1 line 0 comments Download
M extras/src/main/javascript/features-extras/org.openajax.hub-2.0.4/OpenAjax-mashup.js View 1 chunk +1 line, -1 line 0 comments Download
M extras/src/main/javascript/features-extras/org.openajax.hub-2.0.4/feature.xml View 1 chunk +1 line, -1 line 0 comments Download
M extras/src/main/javascript/features-extras/org.openajax.hub-2.0.4/iframe.js View 8 8 chunks +15 lines, -13 lines 0 comments Download
M extras/src/main/javascript/features-extras/pubsub-2/pubsub-2.js View 5 6 3 chunks +16 lines, -21 lines 0 comments Download
M features/src/main/javascript/features/rpc/rpc.js View 3 4 4 chunks +6 lines, -8 lines 0 comments Download
M features/src/main/javascript/features/shindig.container/feature.xml View 1 chunk +1 line, -0 lines 0 comments Download
M features/src/main/javascript/features/shindig.container/shindig-container.js View 1 2 3 4 5 6 7 12 chunks +213 lines, -69 lines 0 comments Download

Messages

Total messages: 22
Javier Pedemonte
13 years, 11 months ago (2010-05-21 18:06:40 UTC) #1
Javier Pedemonte
wiring metadata
13 years, 10 months ago (2010-06-21 03:31:18 UTC) #2
Javier Pedemonte
Last patch: Have metadata call return feature parameters in JSON response. Used for pubsub wiring ...
13 years, 10 months ago (2010-06-21 03:32:59 UTC) #3
Javier Pedemonte
As mentioned in the description at the top, the code in shindig-container.js is not ideal: ...
13 years, 10 months ago (2010-06-21 14:26:16 UTC) #4
Javier Pedemonte
Last patch: I found that some places within the code (in shindig-container.js and rpc.js) assume ...
13 years, 9 months ago (2010-07-14 19:03:18 UTC) #5
Javier Pedemonte
The latest patch adds security features to the RPC layer, as described here: http://wiki.opensocial.org/index.php?title=PubSub.next_Proposals#Secure_rpc.
13 years, 9 months ago (2010-07-29 06:09:52 UTC) #6
johnfargo
This CL is huge, so I've cut my comments somewhere around half-way. I'm focusing on ...
13 years, 8 months ago (2010-08-12 06:39:54 UTC) #7
Javier Pedemonte
On 2010/08/12 06:39:54, johnfargo wrote: > In fact, on first glance it looks like the ...
13 years, 8 months ago (2010-08-13 03:01:52 UTC) #8
Javier Pedemonte
13 years, 8 months ago (2010-08-13 04:52:51 UTC) #9
Paul Lindner
Patch partially applied. thanks! Will go over the overlapping changes more closely tomorrow. http://codereview.appspot.com/1247044/diff/55001/56014 File ...
13 years, 8 months ago (2010-08-13 06:58:26 UTC) #10
Javier Pedemonte
On 2010/08/13 06:58:26, Paul Lindner wrote: > http://codereview.appspot.com/1247044/diff/55001/56014#newcode369 > features/src/main/javascript/features/core.util/util.js:369: 'byId' : > function(id) { ...
13 years, 8 months ago (2010-08-13 18:15:06 UTC) #11
Javier Pedemonte
13 years, 8 months ago (2010-08-13 22:30:08 UTC) #12
Javier Pedemonte
13 years, 8 months ago (2010-08-16 21:45:51 UTC) #13
Javier Pedemonte
Re: Patch Set 7 I quickly redid the shindig-container.js patch, to refactor the new code ...
13 years, 8 months ago (2010-08-17 21:09:05 UTC) #14
Javier Pedemonte
"gadgets.pubsub2" isn't a good namespace. It's tempting to re-use "gadgets.pubsub" from the original "pubsub" feature. ...
13 years, 8 months ago (2010-08-18 02:49:41 UTC) #15
Han Nguyen
On 2010/08/18 02:49:41, Javier Pedemonte wrote: > "gadgets.pubsub2" isn't a good namespace. > > It's ...
13 years, 8 months ago (2010-08-26 17:25:45 UTC) #16
Paul Lindner
It's a no-go on re-using pubsub, a few people have already shipped and will continue ...
13 years, 8 months ago (2010-08-27 12:08:03 UTC) #17
Javier Pedemonte
13 years, 8 months ago (2010-08-27 21:12:02 UTC) #18
Javier Pedemonte
Re: Patch Set 8 -- Patch for remaining files (not including RPC changes, which are ...
13 years, 8 months ago (2010-08-27 21:23:37 UTC) #19
Paul Lindner
thanks, will get to this asap. On Fri, Aug 27, 2010 at 2:23 PM, <jhpedemonte@gmail.com> ...
13 years, 8 months ago (2010-08-27 21:26:17 UTC) #20
Javier Pedemonte
13 years, 8 months ago (2010-08-31 02:14:36 UTC) #21
WoodstaE
13 years, 6 months ago (2010-10-18 14:45:20 UTC) #22
Minor typo under #Topics
(http://opensocial-resources.googlecode.com/svn/spec/proposals/1.1/inter-gadge...):
speicificaiton should be specification.
Sign in to reply to this message.

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