Skip to content

Ability to revert all changes or a single field on PFObject. #52

Closed
@nlutsenko

Description

@nlutsenko

After changing a single field on PFObject - there is no functionality to revert it back to the server state, even though we have the server state available internally. This is implemented in dotNet SDK via ParseObject.revert() method which reverts any changes to an object that were done after last successful save/fetch.

Implementation would require:

  • Add PFObject.revert() that would clear all operations in operationSetQueue and rebuild estimatedData
  • Add PFObject.revertObjectForKey(key: String) that would remove all operations for that key in operationSetQueue as well as rebuild estimatedData.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions