-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DataStore.save() with condition (#355)
* Adding condition to save() * Adding condition to save() * Add predicate to mutation event * QueryPredicate Codable conformance * add ingestor disposition logic * test for conditional request failed * Add ProcessMutationErrorFromCloudOperation to check when there is a successful responnse with graphql errors. If the graphQL error is conditional failed, then retrieve the latest remote model, and apply it to local storage. * Adding simple AnyQueryPredicate test * - Moved delete mutation event out of SyncMutationToCloudOperation to after possibly exeuction of ProcessMutationErrorFromCloudOperation. - Added unit test for ProcessMutationErrorFromCloudOperation * Add E2E test for conditional save failed * minor changes - AnyModelTester class rename - unit test parallelization fix - add correct error from StorageEngine for save() * Removed Codable conformance for QueryPredicate and serialize graphQL version of QueryPredicate into JSON string * remove fetch and save when processing conditional save failed * clean up, api tests, plugin core tests * minor comment update * Code clean up - use GraphQLFilter typealias, 'JSON' casing, DataStore error naming, removed QueryPredicateInput, updated MutationEvent's field as graphQLFiilterJSON * rename parameter to `filter` * Move GraphQLFilter serialization under GraphQLFilterConverter
- Loading branch information
Showing
56 changed files
with
1,179 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.