Closed
Bug 515676
Opened 15 years ago
Closed 15 years ago
Allow giving objects to PUT/POST without Filters to avoid stringify([parse(stringify(stringify(obj)))])
Categories
(Firefox :: Sync, defect, P1)
Firefox
Sync
Tracking
()
RESOLVED
FIXED
0.7
People
(Reporter: Mardak, Assigned: Mardak)
References
Details
Right now we need to serialize data before giving it to a Resource for PUT/POST. For Collections, it needs to gather an array of Records, so we end up serializing then parsing them to make them into objects then stringifying the whole array.
Assignee | ||
Comment 1•15 years ago
|
||
http://hg.mozilla.org/labs/weave/rev/42a21d3d0bc1 Get rid of Filters and automatically JSON.stringify PUT/POST data that aren't strings, so plain Records can be passed in to PUT and POST. This leverages toJSON of Records to provide an object that can be serialized. Fix up client record serialize/deserialize to still escape/unescape non-ASCII.
Assignee: nobody → edilee
Status: NEW → RESOLVED
Closed: 15 years ago
Priority: -- → P1
Resolution: --- → FIXED
Target Milestone: --- → 0.7
Updated•6 years ago
|
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•