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

Issue 152119: Align OpenSocial and Poco in fields definitions in v 1.0

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 5 months ago by Jacky Wang
Modified:
14 years, 4 months ago
Base URL:
http://opensocial-resources.googlecode.com/svn/spec/
Visibility:
Public.

Description

According to the discussions on: http://wiki.opensocial.org/index.php?title=PoCo_Alignment_for_v1.0 And some early discussions: http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/dab9259d623c1397/bc704b41e6f5672b

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix the multiple / single resp object wording issue. #

Total comments: 20
Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -98 lines) Patch
draft/REST-API.xml View 1 27 chunks +126 lines, -73 lines 20 comments Download
draft/RPC-Protocol.xml View 2 chunks +26 lines, -25 lines 0 comments Download

Messages

Total messages: 9
Jacky Wang
14 years, 5 months ago (2009-11-13 07:46:49 UTC) #1
Lane
Thanks for digging into all these details! I think there are a few high-level issues ...
14 years, 5 months ago (2009-11-23 18:00:14 UTC) #2
Jacky Wang
Fix the multiple / single resp object wording issue.
14 years, 5 months ago (2009-11-24 07:36:11 UTC) #3
Jacky Wang
Thanks for Lane's review! @Jon, shall we have a quick sync on the XML-schema part? ...
14 years, 5 months ago (2009-11-24 07:40:24 UTC) #4
Jon Weygandt
Jacky - Shortly I'll release patch set 7 for: http://codereview.appspot.com/154120/show that should include the changes ...
14 years, 5 months ago (2009-11-24 18:13:10 UTC) #5
Jacky Wang
Thanks for Jon's review! I've reviewed these changes are merged into Issue 154120: http://codereview.appspot.com/154120 Thanks ...
14 years, 5 months ago (2009-12-01 10:40:34 UTC) #6
Jacky Wang
On 2009/11/24 07:40:24, Jacky.Chao.Wang wrote: > Thanks for Lane's review! > > @Jon, shall we ...
14 years, 5 months ago (2009-12-01 10:44:17 UTC) #7
Lane
On Tue, Dec 1, 2009 at 2:44 AM, <Jacky.Chao.Wang@gmail.com> wrote: > On 2009/11/24 07:40:24, Jacky.Chao.Wang ...
14 years, 5 months ago (2009-12-01 17:05:35 UTC) #8
Jacky Wang
14 years, 4 months ago (2009-12-07 08:38:57 UTC) #9
On 2009/12/01 17:05:35, Lane wrote:
> On Tue, Dec 1, 2009 at 2:44 AM, <mailto:Jacky.Chao.Wang@gmail.com> wrote:
> 
> > On 2009/11/24 07:40:24, Jacky.Chao.Wang wrote:
> >
> >> Thanks for Lane's review!
> >>
> >
> >  @Jon, shall we have a quick sync on the XML-schema part? I've made
> >>
> > some fields
> >
> >> changes to keep the spec compliant with Portable Contact (PoCo for
> >>
> > short) spec.
> >
> >  Thanks,
> >> Jacky
> >>
> >
> >  http://codereview.appspot.com/152119/diff/1/2
> >>
> >> File draft/REST-API.xml (right):
> >>
> >
> >  http://codereview.appspot.com/152119/diff/1/2#newcode192
> >> draft/REST-API.xml:192: <preamble>or, for those methods designed to
> >>
> > return only
> >
> >> one item:</preamble>
> >>
> >> Totally agree - my idea is: for those methods which designed to return
> >> collection, the return value should be collection, even it contains
> >>
> > only 1 item;
> >
> >> for those methods which designed to return item, only 1 item should be
> >>
> > returned.
> >
> >  Maybe we need to change the wording here a bit thus make sure the
> >>
> > above idea is
> >
> >> clearer. :)
> >>
> >
> >  There's a draft about this effort in the patch 2.
> >>
> >
> >  On 2009/11/23 18:00:14, Lane wrote:
> >> > This changes the intent of the spec.  The example says if you
> >>
> > request a list,
> >
> >> > but there is only one result, entry will be a single object, not an
> >>
> > array.
> >
> >> this
> >> > seems wrong...we should always return a collection if a collection
> >>
> > is
> >
> >> requested.
> >> >
> >> > The text you have says that all methods return a collection, in that
> >>
> > the
> >
> >> > response will container fields like itemsPerPage.  This doesn't make
> >>
> > sense for
> >
> >> > requests like getOnwer - where only a single object will ever be
> >>
> > returned.
> >
> >> >
> >> >
> >>
> >
> >  http://codereview.appspot.com/152119/diff/1/2#newcode271
> >> draft/REST-API.xml:271: &lt;entry
> >> xmlns="http://ns.opensocial.org/2008/opensocial"&gt;
> >> According to the mail I've received on Apr 23:
> >>
> >
> >  The only issue here is that we recently came to consensus that we
> >>
> > should be
> >
> >> using <entry> for all data types (instead of <person>, <activity>,
> >>
> > etc.).
> >
> >> Although this came after v0.9 was approved, but is basically a bug
> >>
> > (since we
> >
> >> state that we're aligned with PoCo) I'm hoping we can patch the spec
> >>
> > and get
> >
> >> this impl out for v0.9 releases.
> >>
> >
> >  Thus I change all the tags into <entry>.
> >>
> >
> >  On 2009/11/23 18:00:14, Lane wrote:
> >> > If I get this XML, how do I know to parse it as a person, activity,
> >>
> > or
> >
> >> something
> >> > else?
> >>
> >
> >  http://codereview.appspot.com/152119/diff/1/2#newcode1625
> >> draft/REST-API.xml:1625: <section title="Singular Person Fields">
> >> Thanks for point it out!  Is his addr Jon.Weygandt@gmail.com?
> >>
> >
> >  On 2009/11/23 18:00:14, Lane wrote:
> >> > Please work with Jon Weygandt to make sure these changes make it
> >>
> > into the
> >
> >> > Social-Gadget.xml file.
> >>
> >
> > Hi Lane,
> >
> > Ping. :)
> >
> > 1. Is the current patch interpreting the diff between returning an
> > collection and returning an object looks clear to you?
> >
> 
> I'm not sure what the 'current patch' is - there are a couple in this
> thread.  Please send a link.
> 
> >
> > 2. Do we need to convert people/activity... into "entry"?
> >
> 
> For PoCo client/servers to interact w/ OpenSocial these have to be 'entry'.
>  Returning a <person> element to a PoCo client is meaningless since PoCo
> only defines <entry>.
> 
> For OpenSocial's sake, I think we need some indication of the type of object
> in the entry so we can disambiguate the <entry> elements that contain person
> objects from those that contain activities.  Maybe this disambiguation isn't
> necessary - I think we need more input from the REST folks.
> 
> In any case, switching from <person> to <entry> is going to totally hose
> existing clients.  Any suggestions for a migration plan?  I think this comes
> back to versioning the API.
> 
> -Lane
> 
> >
> > Thanks,
> >
> > Jacky
> >
> > http://codereview.appspot.com/152119
> >
> 

Hi Lane,

Sorry for the late reply.

I'm contacting Jon and Arne, to merge my thoughts/changes with their patches,
given these 2 files actually will be replaced by those Core-*.xml and
Social-*.xml.

Thanks for your review!
- Jacky
Sign in to reply to this message.

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