Commit Graph

1634 Commits

Author SHA1 Message Date
Kyle Fang
e29f9cba17 Passing @metadata through to the destinationObject in RelationShip mapping. 2013-04-12 16:30:21 +08:00
Blake Watters
75fbe7df92 Style tweak in dispatch_async of completion blocks 2013-04-10 17:46:02 -04:00
Blake Watters
fab6eec894 Remove obtaining permanent managedObjectID when adding newly created object to the in memory cache. refs #1329 2013-04-10 09:22:33 -04:00
Blake Watters
4b5c26e948 Fix some erroneous comments in the documentation 2013-04-08 10:43:30 -04:00
Blake Watters
64a15e2b87 Revert "Add another shared object factory method flavor."
This reverts commit 6c842b4fdb.
2013-04-03 14:17:27 -04:00
Jeff Arena
6c842b4fdb Add another shared object factory method flavor. 2013-04-02 11:58:54 -04:00
Blake Watters
5052b61c4e Fix issues with 304 caching when there are no Fetch Request Blocks registered that match the URL. closes #1294 2013-03-23 23:49:34 -04:00
Blake Watters
24c0a25519 Fix incorrect serialization of a single object inputted as an array. closes #1289 2013-03-20 10:39:14 -04:00
Blake Watters
a0a0adf7d1 Make deletion of newly inserted objects that fail validation configurable. closes #1281 2013-03-16 15:26:04 -04:00
Doug Tabuchi
2f11970432 Add currentOffset to RKPaginator 2013-03-14 22:55:59 -04:00
Blake Watters
96b9d6f683 Rework deletion operations to avoid deleting objects that would be valid if mapping we allowed to assign them to the desintation relationship. refs #1225 2013-03-14 20:13:32 -04:00
Blake Watters
8ff6f62297 Add assertions to RKMIMETypeSerialization and RKTestFixture 2013-03-14 11:49:50 -04:00
Blake Watters
e831e03ccb Add workaround to avoid potential crash during execution of deletion operations on iOS 5. closes #1266 2013-03-13 22:28:24 -04:00
Blake Watters
90fe39e8e9 Fix issue with RKPathAndQueryStringFromURLRelativeToURL function dropping trailing slashes due to reliance on [NSURL path]. fixes #1220 2013-03-12 18:57:13 -04:00
Blake Watters
34b8a30b06 Improve RKPathMatcher so that it only evaluates a path match positively if the number of slashes in the source string matches the number of slashes in the pattern. closes #1212, closes #1192 2013-03-10 16:37:35 -04:00
Blake Watters
334085def5 Drop the NSBundle category and instead migrate the functionality directly into RKTestFixture. This category seems unnecessary. 2013-03-10 15:09:43 -04:00
Blake Watters
2003715e2e Switch to using non-overlapping property and ivar for RKHTTPRequestOperation HTTP error. refs #1140 2013-03-10 14:52:50 -04:00
Blake Watters
e62a9862d7 Rework RKManagedObjectMappingOperationDataSource to avoid performing mutable(Array|Set|OrderedSet)ValueForKeyPath: unless there are existing objects and the identificationAttributes are nil. refs #1232 2013-03-10 14:22:38 -04:00
Blake Watters
2581d21762 Add test case covering deletion of object before use in managed object request operation. refs #1252 2013-03-10 13:30:47 -04:00
Blake Watters
dd74867c79 Fix issue where targetObject was not set appropriately when mapping a non-managed object via RKManagedObjectResponseMapperOperation. fixes #1268 2013-03-10 13:12:17 -04:00
Blake Watters
59ced3b32a Obtain a permanent NSManagedObjectID when adding a newly created NSManagedObject to the RKInMemoryManagedObjectCache to avoid potential for duplicated objects during concurrent mapping. refs #1260 2013-03-10 11:48:31 -04:00
Blake Watters
ca3828f6ef Add workaround for logging crash under iOS 5. closes #1256 2013-03-10 00:28:21 -05:00
Blake Watters
f00e309619 Add conditional passing of parameters into the AFHTTPClient to support OAuth signing. fixes #1200 2013-03-09 23:48:01 -05:00
Blake Watters
5d31166509 Revert "Pass parameters into AFHTTPClient instance to help with OAuth signing. closes #1200"
This reverts commit 4634d66e53.
2013-03-09 23:43:00 -05:00
Blake Watters
4634d66e53 Pass parameters into AFHTTPClient instance to help with OAuth signing. closes #1200 2013-03-09 23:41:27 -05:00
Blake Watters
fd265420b9 Add support for RKRequestMethodAny in relationship routes. fixes #1205 2013-03-09 23:35:47 -05:00
Charlie Savage
6375eecc25 Add countermeasure to prevent occurrence of NSObjectInaccessibleException on ios 5. closes #1208 2013-03-09 23:27:13 -05:00
Blake Watters
de5aed6bde Fix incorrect type transformation when the destination class is a mutable class. fixes #1201 2013-03-09 23:03:06 -05:00
Blake Watters
1c2cdc4eef Configure RKManagedObjectImporter to set the mapper operation instance as the parent operation for the RKManagedObjectMappingOperationDataSource instance. This enables relationship connection between objects that are created without an intervening save. 2013-03-09 17:49:53 -05:00
Blake Watters
3ac8d162f8 Add documentation regarding revised implementation of 304 (Not Modified) optimization in RKManagedObjectRequestOperation 2013-03-09 10:15:06 -05:00
Blake Watters
5329ef450e Fix function declaration for RKCacheableStatusCodes 2013-03-07 21:17:51 -05:00
Yannick Reifschneider
7f5b0fec97 Unescape URL metadata mapping parameters if route required parameter escaping 2013-03-07 21:17:51 -05:00
Blake Watters
e805bbc41e Improve documentation regarding registration of transformation blocks. closes #1270 2013-03-07 21:00:45 -05:00
Charlie Savage
535255a686 Fix RKReplaceAssignmentPolicy. The problem was that new values for the relationship were gathered before the old values were deleted. Therefore if one of the new values was the same as the old value, the valueForRelationship collection would contain a deleted managed - not good.
Also fixed:
* The if statement near line 674 was incorrectly negated
 * Setting the relationship value around line 676 was redundant since it was done in the mapCoreDataToManyRelationshipValue:withMapping method.
2013-03-07 20:55:42 -05:00
Blake Watters
a9ef1fe39d Introduce a new heuristic based approach for determining if a response can skip the mapping process. Also introduces a new Network + CoreData logging component and reduces the chattiness of the debug logging level for Core Data Network events. 2013-03-07 19:25:14 -05:00
Christian Himmelsbach
4c1d010e91 fix: To one relationships, that have a nested destination keypath are not correctly mapped to JSON 2013-03-07 14:55:07 -05:00
Blake Watters
318f9659f6 Move management of RKResponseHasBeenMapped to RKObjectRequestOperation instead of RKManagedObjectRequestOperation. Add unit tests. 2013-03-07 14:39:31 -05:00
Blake Watters
d47a0c9ffd Add support for retrying RKObjectRequestOperation and RKManagedObjectRequestOperation by conforming to NSCopying. closes #1224 2013-03-07 13:55:11 -05:00
Jeff Arena
948209b254 Remove wasNotModified method in favor of setting a flag on cached response entries to determine if mapping can be skipped. 2013-03-07 13:08:30 -05:00
Blake Watters
0e19f5deb1 Add NSURLConnectionDataDelegate to protocol declaration for AFURLConnectionOperation to avoid compiler error in some cases. closes #1249 2013-03-07 10:24:49 -05:00
Blake Watters
490b233daf Add countermeasure to avoid crash in cxx_destruct during deallocation of mapping result 2013-02-25 11:28:50 -05:00
Blake Watters
f36dcded83 Change system import into user import for RestKit/Network.h. closes #1244 2013-02-21 23:10:07 -05:00
Blake Watters
47eed616ef Fix crash due to execution of RKDeleteInvalidNewManagedObject from outside of the dispatch queue of the NSManagedObjectContext that owns the object. fixes #1251 2013-02-21 23:02:23 -05:00
Blake Watters
45c70292e6 Adjust RKSearchIndexer logging to ensure output is emitted when the indexer hits 100% 2013-02-19 12:40:06 -05:00
Victor Widell
2fa9b52dba The "teamMembers" variable was not used.
The variable "relationship" is not defined, and looks like it should be "teamMembers" instead.

This is a bit inconsequent with the example above, that is named "userRelationship". Either both or neither of them should include the word "relationship".
2013-02-15 18:27:28 +01:00
Victor Widell
429a5d36f1 The relationship variable was missing.
In the example, a variable named "relationship" is used, but not created. On the line above, another variable "userRelationship" is created but not used.

I'm assuming this is a typo, and they are supposed to be the same?
2013-02-15 18:18:10 +01:00
Victor Widell
888efff2e7 addAttributeMappings: doesn't exist.
I'm guessing it's a typo and the intended method is addAttributeMappingsFromArray:.
2013-02-15 14:12:15 +01:00
Blake Watters
88246423bb Fix invalid selector usage in managed object data source. fixes #1236 2013-02-14 22:55:12 -05:00
Blake Watters
a19f1a5ff1 Allow assertion to pass if localObject is returned nil 2013-02-07 17:37:14 -05:00
Blake Watters
e7352f7919 Clarify logging for HTTP operation when cancelled 2013-02-07 17:36:50 -05:00