Commit Graph

56 Commits

Author SHA1 Message Date
Blake Watters
9fa7a11fcf Update connection mapping signatures on RKEntityMapping to be more idiomatic 2012-08-15 16:35:54 -04:00
Blake Watters
37c70e4c27 Migrate path utilities to C functions instead of encapsulating into static methods on RKDirectory to reduce API size 2012-08-14 09:57:27 -04:00
Blake Watters
4cc61e9913 Flip test to using hasBeenDeleted as isDeleted does not work across managed object contexts 2012-08-07 17:19:18 -04:00
Blake Watters
64c378a8bf Fix warnings related to deprecation of managed object store save 2012-08-07 17:04:17 -04:00
Blake Watters
6cc54fae9f Fix crashes during test suite execution due to delay during processing of NSManagedObjectContextDidSaveNotification 2012-08-07 16:59:19 -04:00
Blake Watters
232b3eb861 Implemented new search engine for managed objects. 2012-08-01 18:12:53 -04:00
Blake Watters
07aadeebdf Reimplemented the managed object store, converted managed object seeder to importer, cleaned up test breakage. 2012-07-26 17:33:35 -04:00
Blake Watters
5af66a4e89 Finalized to existingObjectWithID: approach after benchmarking fetch request strategy 2012-07-20 16:09:58 -04:00
Blake Watters
093a76e7b2 Migrated to a single entity cache for the primary MOC instead of one per thread 2012-07-20 15:41:47 -04:00
Blake Watters
6b315fbd54 Updates to entity cache and other components to operate in parent/child context world. 2012-07-20 14:48:09 -04:00
Blake Watters
e952f451fb Eliminated the use of the ActiveRecord pattern across the library. 2012-07-20 14:48:09 -04:00
Blake Watters
6af38b8b6d Obtain permanent object ID's for managed objects before sending via RKManagedObjectLoader 2012-07-17 16:26:21 -04:00
Blake Watters
a8f64e7982 Continued cleanup related to managed object context work 2012-07-17 13:44:50 -04:00
Blake Watters
b25a1833b3 Ported RestKit to using managed object contexts with concurrency types. Numerous cleanups and API updates. 2012-07-16 22:47:06 -04:00
Blake Watters
cfa0df1841 Breakthrough on parent/child MOC setup 2012-07-13 14:11:48 -04:00
Blake Watters
f0706dbdbf Work in progress
Conflicts:
	Code/CoreData/RKManagedObjectLoader.h
	Code/CoreData/RKManagedObjectLoader.m
	Code/CoreData/RKManagedObjectMapping.m
	Code/CoreData/RKManagedObjectMappingOperation.m
	Code/CoreData/RKManagedObjectStore.m
	Code/CoreData/RKManagedObjectThreadSafeInvocation.h
	Code/CoreData/RKManagedObjectThreadSafeInvocation.m
	Code/CoreData/RKSearchableManagedObject.m
	Code/ObjectMapping/RKObjectLoader.m
	Code/ObjectMapping/RKObjectMapper.h
	Code/ObjectMapping/RKObjectMappingOperation.m
	RestKit.xcodeproj/project.pbxproj
	Tests/Logic/CoreData/RKManagedObjectThreadSafeInvocationTest.m
2012-07-13 13:07:42 -04:00
Blake Watters
da47c3161e Use pragma invocations to suppress deprecation warnings for tests against legacy API's. refs #593 2012-07-11 13:09:26 -04:00
Charlie Savage
ec27cc8bf3 Fix up merge errors on tests. 2012-07-11 12:14:28 -04:00
Charlie Savage
f0e8bbe284 Update new connectRelationship implementation based on feedback from Blake. 2012-07-11 12:14:28 -04:00
Jawwad Ahmad
abb46c382c Ensure the stars for all pointers belong to the variable rather than the type. Refs #614 2012-06-04 22:47:30 -04:00
Jawwad Ahmad
eaa5484b01 Placing opening braces on a new line for methods to match Apple convention. Refs #614
Used uncrustify's "nl_fdef_brace = add" option to detect issues.
2012-06-04 00:36:19 -04:00
Jawwad Ahmad
746f31c26d Fix issues identified by uncrustify's "sp_assign = add" option. Refs #614 2012-06-03 23:14:09 -04:00
Jawwad Ahmad
10433089a4 Strip trailing whitespace. Refs #614 2012-06-03 22:33:31 -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
98c8780a31 Implemented support for type coercions in primaryKeyAttribute API's. closes #758 2012-05-23 17:25:48 -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
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
Boris Dušek
e932c31cde Update RKObjectManager to observe changes to the reachability observer of
the underlying RKClient object. refs #717
2012-05-16 15:10:18 -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
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
6fd71650e5 Fix broken unit tests related to Core Data cache skipping optimization 2012-04-04 12:19:24 -04:00
Blake Watters
457a6126cf Refresh copyright notices for all source files 2012-04-04 09:08:54 -04:00
Blake Watters
2ce8de2d4b Add test cases for both In Memory and Fetch Request cache strategies to RKManagedObjectMappingTest 2012-04-04 08:20:08 -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
John Stallings
e07ea7910b Ensure RKManagedObjectLoader invokes onDidFailWithError as well as the delegate callback. refs #624 2012-03-30 09:01:11 -04:00
Brian Morton
a1d7991d29 Fix failing cache hit test by adding the appropriate rootKeyPath to the mapping. 2012-03-20 22:39:13 -07:00
Blake Watters
bc82f5a1ac Integrated support and test coverage for mapping relationships onto NSOrderedSet values. closes #578 2012-03-20 22:14:31 -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
868372272f Ported RestKit tests over to using the RKTestFactory and completed documentation. fixes #318 2012-03-15 23:06:49 -04:00
Blake Watters
57183b364f Fix for warning emitted due to elimination of findOrCreateInstanceOfEntity:. Search Word functionality restored. closes #584
* Updates to the Core Data layer such that NSManagedObjectContexts now have a reference to the managed object store
they belong to.
* NSManagedObject instances can now return the managed object store they belong to.
* Relaxed the coupling to the sharedManager present within the RKSearchableManagedObject class.
* Expanded documentation of RKSearchableManagedObject
2012-03-14 17:08:02 -04:00
Blake Watters
1bd3bfd514 Fix retain cycle issue with queued relationship connection. fixes #588 2012-03-12 20:42:52 -04:00
Blake Watters
1c59f5fc1e Cleaned up the naming on RKManagedObjectStore to primaryManagedObjectContext and managedObjectContextForCurrentThread 2012-03-09 09:02:21 -05:00
Blake Watters
53bbeca099 Clean up build issues on OS X 2012-02-25 12:07:06 -05:00
Jeff Arena
32ab17fe0b Incorporate code review feedback 2012-02-23 22:39:27 -05:00