Blake Watters
014a4dbdff
Merge branch 'release/0.10.1' into development
2012-05-25 23:33:54 -04:00
Blake Watters
fa88dd44ef
Fix type mismatch assertion in cases where JSON/XML payload contains a string value for an integer primary key. fixes #754
2012-05-24 19:09:39 -04:00
Blake Watters
680ca666d6
Update RKTestFactory to silence logging output during setup/tear down operations. closes #764
...
* Introduced new logging helpers for silencing components.
* Check for existence of data store at path before firing deletion to avoid log warning on failure.
* Silence logging for reachability and cache during factory initialization of RKClient and RKObjectManager
* Adjust log levels on cache components from info to debug
2012-05-24 12:53:45 -04:00
Blake Watters
98c8780a31
Implemented support for type coercions in primaryKeyAttribute API's. closes #758
2012-05-23 17:25:48 -04:00
Blake Watters
871ab1389e
Ensure managed object connections are established across appropriate managed object contexts
2012-05-21 13:09:27 -04:00
Blake Watters
dc47a7aae3
Ensure managed object connections are established across appropriate managed object contexts
2012-05-21 13:04:56 -04:00
Blake Watters
31191f59b6
Migrate initialization of default error mapping from RKObjectManager to RKObjectMappingProvider
2012-05-21 12:09:27 -04:00
Eric Chamberlain
01607a9a09
Fix for https://github.com/RestKit/RestKit/issues/709 - [RKManagedObjectThreadSafeInvocation serializeManagedObjectsForArgument:withKeyPaths:] is not properly serializing managed objects
...
Fixed RKManagedObjectThreadSafeInvocation to properly handle serialization when the key is a keyPath.
Updated RKManagedObjectThreadSafeInvocationTest to test keyPath keys.
2012-05-19 17:01:41 -04:00
Blake Watters
f585d34f91
Ensure creation of Application Data directory when initializing Managed Object Store. fixes #657
2012-05-19 16:29:01 -04:00
Blake Watters
489bb0423a
Fix static analyzer issues
2012-05-18 20:01:56 -04:00
Blake Watters
016f13dad0
Convert all tabs to four spaces. refs #743
2012-05-17 18:10:59 -04:00
Blake Watters
fcb973056b
Cleanup trailing whitespace. refs #743
2012-05-17 18:00:16 -04:00
Blake Watters
ee30436ea6
Ensure managed object loader instances are finalized on failure to save managed object store. closes #721
2012-05-17 09:32:01 -04:00
Blake Watters
3fb2b023fa
Integrate optimization for utilizing the managed object cache when connecting relationships. closes #693
...
Thanks to Ed McManus (emcmanus) for the implementation.
2012-05-16 19:09:05 -04:00
Blake Watters
95b38b1f37
Add Block_copy() invocation to ensure the fetch request block is transferred to the heap. refs #738
2012-05-16 16:09:08 -04:00
Blake Watters
2c704e6fdc
Merge branch 'feature/635-accelerate-entity-cache' into development
2012-05-15 19:42:19 -04:00
Blake Watters
9bf89ebec1
Completed documentation and testing for managed object cache overhaul. refs #635
2012-05-15 12:49:42 -04:00
Blake Watters
9e75eb14bd
Cacheing -> Caching
2012-05-12 19:24:18 -04:00
Blake Watters
15f41c6622
Clean tests, added cached predicate usage for fetch request cache strategy. refs #739
2012-05-12 19:18:29 -04:00
Blake Watters
a01d47316c
Added new logging component for Core Data cacheing subsystem. Fixed performance degradation in entity cache. Enabled RKManagedObjectCacheing callbacks to accelerate mapping, disabled processPendingChanges
2012-05-04 23:19:14 -04:00
Blake Watters
fbcef6abd5
First functional cut at new Core Data cacheing implementation. Tests clean, needs polishing.
2012-05-04 22:15:30 -04:00
Blake Watters
5a53fdbf1e
Added test coverage for creation of duplicate objects. refs #661
2012-04-30 20:31:28 -04:00
Blake Watters
1edaaa5eb2
Restore inadvertently removed release of fetch request. refs #661
2012-04-24 09:36:13 -04:00
Blake Watters
8262e596c1
Fix issue with duplication of objects when JSON/XML contains a string primary key value and the model
...
expects a number when the Fetch Request based managed object cache is in use. refs #661
2012-04-23 22:26:35 -04:00
Blake Watters
4b394f8c1e
Prevent creation of duplicate managed objects due to notifications from the MOC failing to be posted often enough. refs #661
2012-04-23 00:15:08 -04:00
Blake Watters
9c6316cb45
Merge pull request #673 from timmehmainframe/patch-1
...
delegate would always be nil for managedObjectStore:didFailToCopySeedDat...
2012-04-17 23:53:43 -04:00
Blake Watters
e70bd93158
Recreate the MOC after deletion of persistent store using a seed database. fixes #676
2012-04-17 23:50:28 -04:00
Ed McManus
0df8c7ea73
Fix spelling of persistent store.
2012-04-14 11:48:22 -07:00
Aaron Crespo
22225cf8a0
Fixed Static analysis warnings.
2012-04-11 22:44:58 -04:00
Blake Watters
0d80bc3744
Switch default cacheStrategy to RKFetchRequestManagedObjectCache. closes #660
2012-04-10 15:16:28 -04:00
Blake Watters
b27be1cbc5
Invoke self instead of self.delegate in thread safe invocation from managed object loader. refs #655
2012-04-10 11:33:36 -04:00
Blake Watters
b9d72ce7fc
Fixed invalid spelling RKManagedObjectCacheing -> RKManagedObjectCaching. Updated filenames to match.
2012-04-09 17:38:22 -04:00
Blake Watters
b18abc04ed
Fix broken build from merge of 0.10.0
2012-04-06 00:04:20 -04:00
Blake Watters
a8483ca643
Merge branch 'release/0.10.0' into development
2012-04-04 20:19:43 -04:00
Blake Watters
457a6126cf
Refresh copyright notices for all source files
2012-04-04 09:08:54 -04:00
Blake Watters
61aefd5eda
Restore default cache strategy to In Memory Cache
2012-04-04 08:20:21 -04:00
Blake Watters
d943d9b932
Ensure In Memory Cache is scoped to the target managed object context
2012-04-04 08:17:23 -04:00
Blake Watters
9cffb75174
Add Objective-C Category fix to mapping provider core data extensions
...
and add source file to OS X build target.
2012-04-03 23:39:55 -04:00
Blake Watters
73f7bf88a2
Ensure that managed object mapping instances fail to initialize if they target
...
a managedObjectClass that is not part of the project (i.e. source files are missing).
2012-04-03 23:39:43 -04:00
Blake Watters
ddf2cb1a79
Added support for connecting relationships where the destination entity does not have an inherited
...
managedObjectClass. refs #627 [AWAITING TESTS]
2012-04-03 23:39:42 -04:00
Blake Watters
67d5cf08c1
Log the name of the entity during failure to connect relationships
2012-04-03 23:39:42 -04:00
Blake Watters
8aedbeb1a5
Added helper methods for deleting managed object stores
2012-04-03 23:39:42 -04:00
Blake Watters
a545c3942b
Integrated primaryKey extension to NSEntityDescription and refactored cache strategy
...
classes to eliminate issues with duplicated objects. closes #611 , #612 , #613 , #618
* NSEntityDescription is now aware of the primaryKeyAttribute. Can be configured via
Interface Builder within Xcode or programatically.
* Added findByPrimaryKey: interface to the Core Data extensions.
* Relaxed dependencies on RKManagedObjectMapping across the system now that primaryKey is
available without a reference to the mapping.
2012-04-03 23:39:42 -04:00
Blake Watters
1b324ccc80
Temporary workaround for duplicated objects caused by RKInMemoryMappingCache. refs #612
...
There are some issues with the current implementation of the RKInMemoryMappingCache that
are allowing the creation of duplicated objects. This commit switches the default cacheStrategy
to RKFetchRequestMappingCache. The primary key branch (#613 ) contains architecture
improvements that allow for a robust fix to the issues in the memory based cache.
2012-03-31 16:44:35 -04:00
Blake Watters
947694deb1
Temporary workaround for duplicated objects caused by RKInMemoryMappingCache. refs #612
...
There are some issues with the current implementation of the RKInMemoryMappingCache that
are allowing the creation of duplicated objects. This commit switches the default cacheStrategy
to RKFetchRequestMappingCache. The primary key branch (#613 ) contains architecture
improvements that allow for a robust fix to the issues in the memory based cache.
2012-03-31 16:38:34 -04:00
Blake Watters
170060549f
Fix exception for Core Data could not fulfill a fault within RKInMemoryEntityCache. fixes #611 , refs #618
2012-03-30 22:37:10 -04:00
John Stallings
e07ea7910b
Ensure RKManagedObjectLoader invokes onDidFailWithError as well as the delegate callback. refs #624
2012-03-30 09:01:11 -04:00
Blake Watters
368f5bf11a
Fix issue with incorrect quoting within the mapping cache causing duplicated objects. closes #598 . refs #578
2012-03-20 21:11:29 -04:00
Blake Watters
0d709dbc07
Migrate dangling invocations of NSLog -> RKLog. refs #578
2012-03-20 20:43:14 -04:00
Blake Watters
a84f52376a
Merge pull request #595 from cfis/ObjectStoreRelease
...
Missing Release For Object store
2012-03-15 14:45:36 -07:00