Comments (5)
This will be more difficult that it might first seem, which probably explains Apple's reluctance.
The problem is to come up with a set of deltas that when reapplied on devices that have stores in different states, leave them in the same state. For all other types of property, this is the case, but doing this for ordered data may be difficult.
from ensembles.
Just noticed this, which may invalidate my bug concerning NSOrderedSet. Does this mean that until this is implemented, Ensembles simply won't work with models that use ordered sets?
from ensembles.
I don’t think it will work, no. It’s certainly untested. Sorry.
from ensembles.
What may work for this is simply storing the index of each inserted or moved object in the ordered set. When a conflict arises, we just perform the updates in order, resulting in a final set of indexes that are not guaranteed to be unique. We then sort deterministically, first on index, then on global id, and reindex to get final positions. This should be deterministic, leaving all devices consistent.
from ensembles.
Merged in 5ee1408
from ensembles.
Related Issues (20)
- Error merging: Error Domain=CDEErrorDomain Code=201 "(null)" HOT 6
- No synchronization happening HOT 7
- Ensembles slowing down device dramatically HOT 19
- didSaveMergeChangesWith callback never called HOT 6
- Strange merging error HOT 7
- iOS 12 users can no longer sync HOT 4
- Push 1.7.2 and 1.8 to Cocoapods Trunk HOT 7
- Removing from set doesn't remove from other devices, causes re-add HOT 2
- Command PhaseScriptExecution failed with a nonzero exit code HOT 2
- Idiomatic iOS Demo - Unable to resolve build file: XCBCore.BuildFile
- ensembles - Error in merge: Error Domain=CDEErrorDomain Code=201 “(null)” HOT 5
- CloudKit Working? Does Anyone have actually have Subscription, etc. working? HOT 3
- Crash in persistentStoreEnsemble: globalIdentifiersForManagedObjects: - uniqueIdentifier - entity is not KeyValueCoding compliant HOT 14
- FR: Ensembles to sync Realm database across devices
- CoreData + Ensembles migration issue HOT 3
- iOS 14 warning CDEObjectChange.propertyChangeValues is using a nil or insecure value HOT 2
- Build Warnings - iOS 12 and above HOT 8
- Apple silicon Macs support issue - The app links with libraries that are not present on Mac HOT 2
- [general] 'NSKeyedUnarchiveFromData' should not be used to for un-archiving and will be removed in a future release HOT 14
- Dropbox Expired Access Token HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ensembles.