Closed Bug 642980 Opened 15 years ago Closed 15 years ago

cleanup account objects

Categories

(Mozilla Labs :: F1, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mixedpuppy, Unassigned)

Details

The account object contains unnecessary redundancy for historical reasons and needs to be cleaned up. Here's a sample of what currently is created: { "username": "mozmotest", "profile": { "displayName": "Shane Carav\u0119o", "providerName": "Twitter", "photos": [{ "type": "profile", "value": "url to image"}], "accounts": [{ "username": "mytestaccount", "domain": "twitter.com", "userid": 1234567890}], "published": "Thu Sep 02 19:53:53 +0000 2010", "identifier": "http://twitter.com/?id=1234567890"}, "domain": "twitter.com", "oauth_token_secret": "My Super Secret OAuth Token", "userid": "1234567890", "updated": "2011-03-18T14:03:58.742713", "oauth_token": "My less than secret OAuth token", "key": "3e464104-51a3-11e0-9b46-d49a200eaa62" }
Which fields would be removed? The schema might be of importance here for bug 642656 and bug 642660.
I would remove username,userid,domain from the top level of the object, and rely on the accounts in the profile. key is also something that I think is unnecessary (holdover from the server side db). And maybe updated can go. The profile object could be used as a basis for other public api's (profile.get from openwebapps?).
Status: NEW → RESOLVED
Closed: 15 years ago
Component: Server: Share → F1
Product: Mozilla Services → Mozilla Labs
QA Contact: share-server → f1
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.