-
-
Notifications
You must be signed in to change notification settings - Fork 877
Implemented PFObject.deleteAll through PFObjectBatchController. #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This still needs some cleanup and tests, but the implementation is about as concrete as it would get. |
1240bed
to
11f2392
Compare
All done, waiting for you review. |
NSDictionary *errorResult = result[@"error"]; | ||
NSDictionary *successResult = result[@"success"]; | ||
|
||
id<PFObjectControlling> controller = [[object class] objectController]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we have access to the data source here? Why go through the class dispatch method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Objects can have different object controllers, say UserController or InstallationController, where those have extra logic on top of the bare object controller.
11f2392
to
6ced5df
Compare
@@ -172,4 +257,21 @@ - (void)testUniqueObjectsValidation { | |||
omitObjectsWithData:YES])); | |||
} | |||
|
|||
- (void)testUniqueObjectsUsingFilter { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's test the duplicate use case as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already done.
7345ccc
to
3359087
Compare
3359087
to
69e5064
Compare
Implemented PFObject.deleteAll through PFObjectBatchController.
deleteAll
not properly deleting objects from LDS, as well as not updating thedeleted
property on state