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

Issue 2897041: Patch for common container: make gadgets can be rendered successfully

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by qiaoysun
Modified:
13 years, 5 months ago
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Working sample page on the new container, there are some issues we have to fix: 1. change the getMetadata request from "osapi.gadgets.metadata.get" to "osapi.gadgets.metadata" in service.js. 2. add pubsub-2 support in container. 3. remove the leading "//" when generating iframeUrl. 4. fix the security token issue if the gadget requires security-token feature. 5. need provide the container value in the sample page.

Patch Set 1 #

Patch Set 2 : refine the patch according to your comments #

Patch Set 3 : A latest patch integrated with Michael's change #

Patch Set 4 : Latest patch #

Total comments: 1

Patch Set 5 : Fix another bug: site id is not the same as iframeId,need add a util funtiocn to extract siteid #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -14 lines) Patch
features/src/main/javascript/features/container/gadget_holder.js View 1 2 3 4 1 chunk +10 lines, -12 lines 0 comments Download
features/src/main/javascript/features/container/gadget_site.js View 1 chunk +2 lines, -2 lines 0 comments Download
features/src/main/javascript/features/container/util.js View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 28
qiaoysun
13 years, 6 months ago (2010-11-04 13:54:24 UTC) #1
qiaoysun
On 2010/11/04 13:54:24, qiaoysun wrote: The corresponding JIRA is : https://issues.apache.org/jira/browse/SHINDIG-1460
13 years, 6 months ago (2010-11-04 13:59:51 UTC) #2
zhoresh
On 2010/11/04 13:59:51, qiaoysun wrote: > On 2010/11/04 13:54:24, qiaoysun wrote: > > The corresponding ...
13 years, 6 months ago (2010-11-04 18:22:25 UTC) #3
Han Nguyen
On 2010/11/04 18:22:25, zhoresh wrote: > On 2010/11/04 13:59:51, qiaoysun wrote: > > On 2010/11/04 ...
13 years, 6 months ago (2010-11-04 20:28:46 UTC) #4
mhermanto
On 2010/11/04 20:28:46, Han Nguyen wrote: > On 2010/11/04 18:22:25, zhoresh wrote: > > On ...
13 years, 6 months ago (2010-11-04 20:40:34 UTC) #5
Han Nguyen
On 2010/11/04 20:40:34, mhermanto wrote: > On 2010/11/04 20:28:46, Han Nguyen wrote: > > On ...
13 years, 6 months ago (2010-11-05 08:38:14 UTC) #6
qiaoysun
refine the patch according to your comments
13 years, 6 months ago (2010-11-05 08:45:18 UTC) #7
qiaoysun
refine the patch according to your comments
13 years, 6 months ago (2010-11-05 08:55:42 UTC) #8
qiaoysun
On 2010/11/04 20:40:34, mhermanto wrote: > On 2010/11/04 20:28:46, Han Nguyen wrote: > > On ...
13 years, 6 months ago (2010-11-05 09:19:17 UTC) #9
qiaoysun
On 2010/11/05 09:19:17, qiaoysun wrote: > On 2010/11/04 20:40:34, mhermanto wrote: > > On 2010/11/04 ...
13 years, 6 months ago (2010-11-05 09:29:10 UTC) #10
mhermanto
On Fri, Nov 5, 2010 at 2:19 AM, <qiaoysun@gmail.com> wrote: > On 2010/11/04 20:40:34, mhermanto ...
13 years, 6 months ago (2010-11-06 03:06:57 UTC) #11
qiaoysun
A latest patch integrated with Michael's change
13 years, 6 months ago (2010-11-08 10:48:41 UTC) #12
qiaoysun
A latest patch integrated with Michael's change
13 years, 6 months ago (2010-11-08 11:10:14 UTC) #13
qiaoysun
On 2010/11/08 11:10:14, qiaoysun wrote: > A latest patch integrated with Michael's change Could you ...
13 years, 6 months ago (2010-11-08 11:11:21 UTC) #14
mhermanto
Wrt removing the mapping of osapi services to endpoint cause us not to find the ...
13 years, 6 months ago (2010-11-08 19:54:41 UTC) #15
qiaoysun
Thanks Michael! Wrt the rpc relay, I keep the old logic. As the pubsub2 feature ...
13 years, 6 months ago (2010-11-09 03:09:49 UTC) #16
qiaoysun
Latest patch
13 years, 6 months ago (2010-11-09 03:10:44 UTC) #17
johnfargo
I think I've somehow missed where pubsub-2 uses its own transport mechanism :) http://codereview.appspot.com/2897041/diff/34001/features/src/main/javascript/features/container/gadget_holder.js File ...
13 years, 5 months ago (2010-11-10 23:22:16 UTC) #18
qiaoysun
In iframe.js, when the iframecontainer is init, it calls: OpenAjax.gadgets.rpc.setupReceiver( internalID, relay ); If we ...
13 years, 5 months ago (2010-11-11 02:10:58 UTC) #19
johnfargo
On Wed, Nov 10, 2010 at 6:10 PM, 孙巧云 <qiaoysun@gmail.com> wrote: > In iframe.js, when ...
13 years, 5 months ago (2010-11-11 02:17:20 UTC) #20
qiaoysun
On 2010/11/11 02:17:20, johnfargo wrote: > On Wed, Nov 10, 2010 at 6:10 PM, 孙巧云 ...
13 years, 5 months ago (2010-11-11 02:26:40 UTC) #21
johnfargo
I've done a bunch of rpc code maintenance, yes. I'd be happy to integrate such ...
13 years, 5 months ago (2010-11-11 02:50:28 UTC) #22
qiaoysun
Fix another bug: site id is not the same as iframeId,need add a util funtiocn ...
13 years, 5 months ago (2010-11-11 07:36:49 UTC) #23
qiaoysun
On 2010/11/11 07:36:49, qiaoysun wrote: > Fix another bug: site id is not the same ...
13 years, 5 months ago (2010-11-11 07:39:00 UTC) #24
qiaoysun
Is there any comment to the latest patch? If not, could you help to commit ...
13 years, 5 months ago (2010-11-15 02:42:11 UTC) #25
mhermanto
Code looks fine. Shortly/manually verifying this in our setup. On Sun, Nov 14, 2010 at ...
13 years, 5 months ago (2010-11-15 18:20:28 UTC) #26
mhermanto
The retrieving of gadget holder and site by id (and iframe id) is convoluted. It's ...
13 years, 5 months ago (2010-11-15 20:44:14 UTC) #27
qiaoysun
13 years, 5 months ago (2010-11-16 03:07:42 UTC) #28
lgtm, thank you!

On 2010/11/15 20:44:14, mhermanto wrote:
> The retrieving of gadget holder and site by id (and iframe id) is
> convoluted. It's confusing to users and to myself (I had to spend time to
> figure this out). However, I've consolidated them, and hopefully, cleared
> this up. Users should *not* be using gadget_holder directly. Instead, they
> should work with container and gadget_site (and not another level
> gadget_holder). In your case, you should already have a handle to site from
> container.newGadgetSite(), and you can call site.getActiveGadgetHolder(),
> should you need the holder. I have committed the rest of your changes --
> here <http://svn.apache.org/viewvc?rev=1035438&view=rev>,
> diff<http://codereview.appspot.com/3120041/>.
> Let me know how this goes.
> 
> 
> 
> 
> On Mon, Nov 15, 2010 at 10:20 AM, Michael Hermanto <mhermanto@gmail.com>wrote:
> 
> > Code looks fine. Shortly/manually verifying this in our setup.
> >
> >
> > On Sun, Nov 14, 2010 at 6:42 PM, <mailto:qiaoysun@gmail.com> wrote:
> >
> >> Is there any comment to the latest patch? If not, could you help to
> >> commit the changes? Thanks!
> >>
> >>
> >>
> >> On 2010/11/11 07:39:00, qiaoysun wrote:
> >>
> >>> On 2010/11/11 07:36:49, qiaoysun wrote:
> >>> > Fix another bug: site id is not the same as iframeId,need add a util
> >>>
> >> funtiocn
> >>
> >>> to
> >>> > extract siteid
> >>>
> >>
> >>  In gadgetHolder, add a prefix to the siteId as iframeId, but when
> >>> getGadgetSite(0), it need gadgetHolder's iframeId equal siteId which
> >>>
> >> will cause
> >>
> >>> error.
> >>>
> >>
> >>
> >>
> >> http://codereview.appspot.com/2897041/
> >>
> >
> >
Sign in to reply to this message.

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