Bot releases are hidden (Show)
Published by 3lvis about 8 years ago
Adds support for mapping camelCase to-one relationships. For example:
{
"id": 0,
"legalTenant": {
"id": 0
}
}
Published by 3lvis about 8 years ago
Check example here: https://github.com/hyperoslo/Sync/issues/254
Thanks to the stellar @RobinFalko for reporting this issue 👏 💐
Published by 3lvis about 8 years ago
Thanks @achirkof for reporting this bug ❤️
Published by 3lvis about 8 years ago
Updated NSManagedObject-HYPPropertyMapper to 4.0.0 which now moved all it's date parsing to DateParser. Head over the release notes for more information:
Published by 3lvis about 8 years ago
Published by 3lvis about 8 years ago
Update NSManagedObject-HYPPropertyMapper to add support for deciseconds and microseconds in date parsing.
Published by 3lvis about 8 years ago
Published by 3lvis about 8 years ago
weak
NSPredicate. Removing the weak holds the reference which is the expected behaviour #250Published by 3lvis about 8 years ago
Published by 3lvis about 8 years ago
Published by 3lvis about 8 years ago
Update dependencies:
It was completely rewritten in Swift, biggest change is that DATAFilterOperation
is now DATAFilter.Operation
.
https://github.com/3lvis/DATAFilter/releases/tag/0.11.0
Added more initializers and some naming improvements to make it easier to support NSPersistentContainer in the future.
Published by 3lvis over 8 years ago
Swift 3 support.
Published by 3lvis over 8 years ago
Adds support for selecting different operation types, so far Sync has being inserting items found in JSON but not locally, removing items found locally but not in JSON and updating items found both in JSON and locally. This vesion allows you to change that, so you can choose to just insert, just delete, just update or any combination of those things.
PR: https://github.com/hyperoslo/Sync/pull/223
let firstImport = // First import of users
Sync.changes(firstBatch, inEntityNamed: "User", dataStack: dataStack, operations: [.All]) {
// All users have been imported, they are happy
}
// Likely after some changes have happened, here usually Sync would remove the not found items
let secondImport = // Second import of users
Sync.changes(secondImport, inEntityNamed: "User", dataStack: dataStack, operations: [.Insert, .Update]) {
// Here new users have been imported, existing users have been updated, and not found users have been ignored
}
Published by 3lvis over 8 years ago
Published by 3lvis over 8 years ago
Since now Sync is a subclass of NSOperation
the sky is the limit! 😱
Issues: #216 #93
let operation = Sync(changes: users, inEntityNamed: "User", predicate: nil, dataStack: dataStack)
operation.start()
The handling of syncing relationships by providing only the id instead of the full JSON object has been improved.
Issues: #215 #218 #220
Checkout the simplified sections for more information.
https://github.com/hyperoslo/Sync#one-to-many-simplified
https://github.com/hyperoslo/Sync#one-to-one-simplified
By the way, even though is not documented yet, this also works with many-to-many without problems.
Published by 3lvis over 8 years ago
Published by 3lvis over 8 years ago
Published by 3lvis over 8 years ago
Update internal APIs, dependencies and README's to encourage usage of id
instead of remoteID
for the local primary key.
Published by 3lvis over 8 years ago
NSManagedObject-HYPPropertyMapper
to 3.6.2
. Basically just removes those awful printf
and NSLogs
https://github.com/hyperoslo/NSManagedObject-HYPPropertyMapper/releases/tag/3.6.2
Published by 3lvis over 8 years ago
Fix bug where miliseconds weren't taken in account (https://github.com/hyperoslo/NSManagedObject-HYPPropertyMapper/pull/105)