Issue Details (XML | Word | Printable)

Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Joeri Sykora
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

How should the user fields be updated during a network connect

Created: 14/Sep/12 11:50 AM   Updated: 02/Oct/12 12:59 PM   Resolved: 02/Oct/12 12:57 PM
Component/s: dalicore-social
Affects Version/s: None
Fix Version/s: 0.9.14

Time Tracking:
Not Specified

Participants: Joeri Sykora and johanvos

 Description  « Hide

When you connect to an external network anonymously (without specifying an existing user uid), a new user object will be created for you and the fields firstName, lastName and depiction will be set from the available information from the external network. However, when you connect to an external network through an existing user, those user fields will never be updated. In most cases, this is probably the best solution, but sometimes you would like DaliCoreSocial to update the user fields regardless. This is currently not possible.

Joeri Sykora added a comment - 14/Sep/12 11:51 AM

The easiest solution for now, would be to add an optional boolean query parameter "update" which defaults to false. When the value of the parameter is true, then the available information from the external network that we are connecting to will be stored in the fields of the provided user.

johanvos added a comment - 17/Sep/12 07:08 AM

That should work.
Apart from that, different social networks maintain different bits of information. I think it makes sense to have a method that allows to "update" user parameters with information in a specific social network. E.g. take my picture from Facebook, and my last name from Twitter.
But this is post-connect behaviour. We should keep the connect method as simple as possible (adding the optional boolean "update" query is fine), and allow for more fine-grained update outside the connect method.

Joeri Sykora added a comment - 02/Oct/12 12:57 PM

Added the query parameter with name "update" to the connect methods, which should contain either "true" or "false". The default value when the parameter is not provided is "false".

When the user already exists and is being connected to an external network it did not yet connect to and the value of the "update" parameter is "true", then the first name, the last name, the screen name and the depiction of the user will be updated with the information provided by the new external the user is being connected to.

Joeri Sykora made changes - 02/Oct/12 12:57 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 0.9.14 [ 16002 ]
Resolution Fixed [ 1 ]
Joeri Sykora added a comment - 02/Oct/12 12:59 PM

Release 0.9.14

Joeri Sykora made changes - 02/Oct/12 12:59 PM
Status Resolved [ 5 ] Closed [ 6 ]