Blake Watters
4208d6f80e
Cleanup inadventantly raised logging during tests
2013-03-25 10:09:51 -04:00
Blake Watters
ce5193d242
Bump AFNetworking Podspec dependency and submodule reference to 1.2.0
2013-03-25 10:09:33 -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
499071925b
Added test cases attempting to reproduce duplicated objects issue. refs #1228
2013-03-17 16:17:05 -04:00
Blake Watters
420d140484
Fix test breakage under Mac OS X
2013-03-16 18:04:27 -04:00
Blake Watters
29f6e7cc08
Added test case for NSMutableSet mapping on managed object. refs #1201
2013-03-16 15:39:13 -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
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
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
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
Panupan Sriautharawong
be7ccc7404
Add test coverage for connection of objects with temporary ID's. closes #1227
2013-03-09 17:49:14 -05:00
Blake Watters
cb108d28ba
Fix broken test coverage for 304 (Not Modified) optimization
2013-03-09 10:15:21 -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
02247695b1
Fix intermittent crashes during test execution
2013-03-07 15:33:11 -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
9a011357c5
Disable intermittently failing concurrency test until we can tackle it post 0.20.0
2013-02-07 12:47:56 -05:00
Blake Watters
986399f937
Fix test breakage related to use of dispatch_async within RKEntityByAttributeCache
2013-02-07 12:44:51 -05:00
Blake Watters
197a54bf60
Rework metadata mapping to fix breakage under OS X
2013-02-01 11:26:08 -05:00
Blake Watters
32c52f2d06
Enable metadata mapping for identification attributes. fixes #1202
2013-01-31 11:47:41 -05:00
Blake Watters
4f442b142f
Fix issue where NSManagedObject instances that are invalid due to missing require relationship when finished mapping, but are made valid by connected relationships are deleted prematurely. fixes #1179
2013-01-29 11:44:15 -05:00
Blake Watters
5d7669bcc1
Fix creation of duplicated managed objects when you map a nil source key path onto an indentification attribute. fixes #1194
2013-01-29 10:03:19 -05:00
Blake Watters
4840b4b63e
Fix crash when attempting to union a relationship with a nil value. fixes #1195
2013-01-28 17:22:33 -05:00
Blake Watters
039c7c443d
Fix issue where repeatedly mapping a to-many relationship without identification attributes would cause the first object in the relationship to be inappropriately reused
2013-01-26 12:10:55 -05:00
Blake Watters
d761de0ea7
Fix crash when attempting to map nil sourceKeyPath as identification attribute
2013-01-26 00:21:44 -05:00
Blake Watters
3e351509b3
Fix crash when accessing a named route with no object for interpolation
2013-01-25 17:27:38 -05:00
Blake Watters
0364d6c67b
Integrate support for metadata mapping routing data. refs #1174
2013-01-24 23:16:48 -05:00
Blake Watters
4c39918fdb
Implement support for flexible metdata mapping. closes #582 , #688
...
* Metadata mapping is implemented via an `NSProxy` object that stands in for the `sourceObject` of each `RKMappingOperation`
* Key paths that are prefixed with `@metadata.` are mapped against the `metadata` dictionary of the operation, else they hit the `sourceObject`.
* Metadata is implemented by merging a dictionary of data in from `RKObjectRequestOperation`, through to `RKResponseMapperOperation`, into `RKMapperOperation`, and all the way down into the `RKMappingOperation`, where it is available to each object. By convention, metdata is namespaced into subdictionaries.
2013-01-24 16:31:19 -05:00
Blake Watters
cd877860fd
Tweak docs, add test cases for mapping a response with a descriptor that does not specify any attributes/relationships
2013-01-23 15:26:52 -05:00
Blake Watters
23ca0c7ca4
Fix potential crash due to serious Core Data error from failing to obtain a permanent objectID for an object that was just saved to the persistent store, but whose objectID is stale. fixes #1183
2013-01-23 13:20:55 -05:00
Johannes Plunien
4ae497afb1
Add test to verify managedObjectContext on empty results.
2013-01-21 20:33:56 +01:00
Blake Watters
2351fc2472
Add unit test and fix for crash during eviction of cache keys during query for compound identification attributes. closes #1171
2013-01-21 13:18:42 -05:00
Blake Watters
2cf73d2436
Fix failed assertion when constructing an unprocessable response error for 5xx errors. closes #1169
2013-01-18 18:57:34 -05:00
Blake Watters
3d52c459aa
Add test case for empty 5xx response. refs #1169
2013-01-18 17:51:56 -05:00
Blake Watters
06f2fe9c7b
Radically simplify the implementation of managed object deletion and refetching within RKManagedObjectRequestOperation. closes #1163
...
1. Eliminates use of visitor in favor of aggregating mapping info during mapping. This avoids having to traverse the mapping graph.
1. Eliminate special case handling of cyclic key paths.
1. Eliminate issues with infinite recursion while traversing the mapping graph.
2013-01-18 12:20:51 -05:00
Blake Watters
f2abd1e107
Add test coverage verifying fix for crash during cyclic graph traversal in RKManagedObjectRequestOperation. closes #1142
2013-01-17 18:47:02 -05:00
Blake Watters
a65a50e8f7
Fix bug with mapping nested attribute values with identification attributes when the identification attribute is not the nesting key. fixes #1129
2013-01-17 11:34:40 -05:00
Blake Watters
a2ca2ec937
Fix crash when serializing NSDate properties mapped at nested keypaths. fixes #1134
2013-01-17 11:01:24 -05:00