Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chad Russell  
View profile  
 More options Apr 18 2008, 6:15 pm
From: "Chad Russell" <cruss...@myspace.com>
Date: Fri, 18 Apr 2008 15:15:39 -0700
Local: Fri, Apr 18 2008 6:15 pm
Subject: requestSendMessage proposal

Hey all, here at MySpace we've come across an issue with
opensocial.requestSendMessage, so I'd like to propose a change to it for
the 0.8 spec.

The spec calls for "recipients" to be passed in, which is essentially an
idSpec.  When we display the popup dialog we don't do any server action
until the user hits the "send" button.  So what we actually want is an
opensocial.Person object passed up, which, according to spec, must
contain the ID, image and URL.  That's enough for us to populate the UI
without hitting the server for that information.

This seems a natural way of doing things, I imagine a common use-case
of: fetching the viewer's friends when the app loads, displaying a
"friend picker", attaching each friend to the corresponding
opensocial.Person object, then when clicked initiate a
requestSendMessage and pass in the Person.  If you have the ID of a
friend, then I think you must have the Person object, correct?  Is there
another way for an app to know my friend's IDs beyond a
newFetchPeopleRequest -- which returns opensocial.Person objects, or
possibly persisting the social graph?

Currently we are forced to have requestSendMessage go fetch the person
object given the ID, and in the callback show the popup UI.  This is
pretty ugly, especially considering that to get that ID we have already
probably made a newFetchPeopleRequest.

So my proposal is to allow both IDs and Person objects to be passed up
into requestSendMessage, as I'm sure I just missed the use case where an
app has the ID but not the Person, but it'd really work well for us to
allow both.

Any thoughts?

Thanks,

Chad Russell

cruss...@myspace.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Graham Spencer  
View profile  
 More options Apr 18 2008, 6:18 pm
From: Graham Spencer <g...@google.com>
Date: Fri, 18 Apr 2008 15:18:48 -0700
Local: Fri, Apr 18 2008 6:18 pm
Subject: Re: requestSendMessage proposal

Can you cache the id->person mapping when person objects are delivered to
the application? That way you could retrieve the person object without a
server round trip. If the id isn't in the cache, then a round trip is
required anyway, either by library code or by the app code.

--g


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amar Gandhi  
View profile  
 More options Apr 18 2008, 6:26 pm
From: "Amar Gandhi" <am...@google.com>
Date: Fri, 18 Apr 2008 15:26:41 -0700
Local: Fri, Apr 18 2008 6:26 pm
Subject: RE: requestSendMessage proposal

orkut is about to implement user-to-user messaging and we have a related
ask.

for abuse reasons, orkut will allow the app to pass in atmost one person.
users can select ppl using an orkut friend picker dialog that will show upon
requestSendMessage.  the application should get back the list of friends
that the user selected.  so, for an events application, the application can
see all the friends invited to the party.

so the requested change is for the callback to return the list of users that
the message will be sent to.

  _____  

From: opensocial-and-gadgets-spec@googlegroups.com
[mailto:opensocial-and-gadgets-spec@googlegroups.com] On Behalf Of Chad
Russell
Sent: Friday, April 18, 2008 3:16 PM
To: opensocial-and-gadgets-spec@googlegroups.com
Subject: requestSendMessage proposal

Hey all, here at MySpace we've come across an issue with
opensocial.requestSendMessage, so I'd like to propose a change to it for the
0.8 spec.

The spec calls for "recipients" to be passed in, which is essentially an
idSpec.  When we display the popup dialog we don't do any server action
until the user hits the "send" button.  So what we actually want is an
opensocial.Person object passed up, which, according to spec, must contain
the ID, image and URL.  That's enough for us to populate the UI without
hitting the server for that information.

This seems a natural way of doing things, I imagine a common use-case of:
fetching the viewer's friends when the app loads, displaying a "friend
picker", attaching each friend to the corresponding opensocial.Person
object, then when clicked initiate a requestSendMessage and pass in the
Person.  If you have the ID of a friend, then I think you must have the
Person object, correct?  Is there another way for an app to know my friend's
IDs beyond a newFetchPeopleRequest -- which returns opensocial.Person
objects, or possibly persisting the social graph?

Currently we are forced to have requestSendMessage go fetch the person
object given the ID, and in the callback show the popup UI.  This is pretty
ugly, especially considering that to get that ID we have already probably
made a newFetchPeopleRequest.

So my proposal is to allow both IDs and Person objects to be passed up into
requestSendMessage, as I'm sure I just missed the use case where an app has
the ID but not the Person, but it'd really work well for us to allow both.

Any thoughts?

Thanks,

Chad Russell

cruss...@myspace.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
fernman@gmail.com  
View profile  
 More options Apr 18 2008, 10:05 pm
From: "fern...@gmail.com" <fern...@gmail.com>
Date: Fri, 18 Apr 2008 19:05:45 -0700 (PDT)
Local: Fri, Apr 18 2008 10:05 pm
Subject: Re: requestSendMessage proposal
good ideas! :)

+3 for response of sendMessage to return the actual sender list.
+2 for allowing to pass in Person objects
+1 for having an ID->PersonObject cache

On Apr 18, 3:26 pm, "Amar Gandhi" <am...@google.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cassie  
View profile  
 More options Apr 20 2008, 1:27 pm
From: Cassie <d...@google.com>
Date: Sun, 20 Apr 2008 19:27:36 +0200
Local: Sun, Apr 20 2008 1:27 pm
Subject: Re: requestSendMessage proposal

Okay, well the request for having sendMessage return the actual sender list
is here with no consensus: (so please respond!)
http://groups.google.com/group/opensocial-and-gadgets-spec/browse_frm...

The id to person cache is implementation specific, so myspace can decide on
whether they want themselves.

As for changing from idSpec->person. Myspace, if you still want it, the spec
change would look like this:
(I have it relying on the IdSpec object proposal just for simplicity. I'll
take it out if that one doesn't go through)

 * @param {Array<opensocial.Person> || opensocial.IdSpec} recipients An
array
 *     of people or an idSpec indicating who to send the message to.
opensocial.requestSendMessage = function(recipients, message, opt_callback)
{};

Thanks.
- Cassie

On Sat, Apr 19, 2008 at 4:05 AM, fern...@gmail.com <fern...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Reinoud Elhorst  
View profile  
 More options Apr 21 2008, 7:58 am
From: "Reinoud Elhorst" <rein...@hyves.nl>
Date: Mon, 21 Apr 2008 13:58:05 +0200
Local: Mon, Apr 21 2008 7:58 am
Subject: Re: requestSendMessage proposal

On allowing person array on the requestSendMessage: It doesn't seem to be
enough on the usecase you're describing. What guarantees do you have that
the application hasn't tampered with the person object. It might supply you
with a person object with the id of your old girlfriend, and the name of
your current girlfriend. So the user that has to agree to the message being
sent in the popup has no secure way of knowing who the recipients are.

I guess this could be solved again by a signature, or checking the supplied
names against the names in the database after the message has been sent, but
this seems to me to be as much trouble as caching the id-->name as Graham
suggested.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cassie  
View profile  
 More options Apr 28 2008, 7:20 am
From: Cassie <d...@google.com>
Date: Mon, 28 Apr 2008 13:20:42 +0200
Local: Mon, Apr 28 2008 7:20 am
Subject: Re: requestSendMessage proposal

Chad (or someone else from myspace) - do you think you could respond to this
thread with your thoughts?
Thanks!

- Cassie


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chad Russell  
View profile  
 More options Apr 28 2008, 1:48 pm
From: "Chad Russell" <cruss...@myspace.com>
Date: Mon, 28 Apr 2008 10:48:55 -0700
Local: Mon, Apr 28 2008 1:48 pm
Subject: RE: requestSendMessage proposal

Sure... we've been following the philosophy that no one will want to use
the "destroy my relationship" app described below, and they'll uninstall
it, and it will never be successful.  We exposed this functionality on
MySpace weeks ago and have had no problems.

Chad

From: Cassie [mailto:d...@google.com]
Sent: Monday, April 28, 2008 4:21 AM
To: opensocial-and-gadgets-spec@googlegroups.com; Chad Russell
Subject: Re: requestSendMessage proposal

Chad (or someone else from myspace) - do you think you could respond to
this thread with your thoughts?
Thanks!

- Cassie

On Mon, Apr 21, 2008 at 1:58 PM, Reinoud Elhorst <rein...@hyves.nl>
wrote:

On allowing person array on the requestSendMessage: It doesn't seem to
be enough on the usecase you're describing. What guarantees do you have
that the application hasn't tampered with the person object. It might
supply you with a person object with the id of your old girlfriend, and
the name of your current girlfriend. So the user that has to agree to
the message being sent in the popup has no secure way of knowing who the
recipients are.

I guess this could be solved again by a signature, or checking the
supplied names against the names in the database after the message has
been sent, but this seems to me to be as much trouble as caching the
id-->name as Graham suggested.

On Sun, Apr 20, 2008 at 7:27 PM, Cassie <d...@google.com> wrote:

Okay, well the request for having sendMessage return the actual sender
list is here with no consensus: (so please respond!)
http://groups.google.com/group/opensocial-and-gadgets-spec/browse_frm/th
read/04d654c18fc52c06#
<http://groups.google.com/group/opensocial-and-gadgets-spec/browse_frm/t
hread/04d654c18fc52c06>

The id to person cache is implementation specific, so myspace can decide
on whether they want themselves.

As for changing from idSpec->person. Myspace, if you still want it, the
spec change would look like this:
(I have it relying on the IdSpec object proposal just for simplicity.
I'll take it out if that one doesn't go through)

 * @param {Array<opensocial.Person> || opensocial.IdSpec} recipients An
array
 *     of people or an idSpec indicating who to send the message to.
opensocial.requestSendMessage = function(recipients, message,
opt_callback) {};

Thanks.
- Cassie

On Sat, Apr 19, 2008 at 4:05 AM, fern...@gmail.com <fern...@gmail.com>
wrote:

good ideas! :)

+3 for response of sendMessage to return the actual sender list.
+2 for allowing to pass in Person objects
+1 for having an ID->PersonObject cache

On Apr 18, 3:26 pm, "Amar Gandhi" <am...@google.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cassie  
View profile  
 More options Apr 30 2008, 10:20 am
From: Cassie <d...@google.com>
Date: Wed, 30 Apr 2008 16:20:57 +0200
Local: Wed, Apr 30 2008 10:20 am
Subject: Re: requestSendMessage proposal

This thread does not seem to be getting enough positive consensus for 0.8 so
I would like to close this thread and continue the discussion for 0.9
Thanks.

- Cassie


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google