Comments (8)
Hi @Klaudas,
Regarding point number 1, let me restate in my own words to make sure I understand your issue:
- You have a content type
A
that has a one-to-many field that holds an array of typeB
- You add more entries of type
B
and additionally, reference those entries in your one-to-many field on typeA
. - You do another sync operation after publishing everything, but the references are not showing up in your
NSManagedObject
instances of typeA
.
Is this correct?
Regarding the second issue, is it the same issue as described in this Github issue comment? If so, the answer is the same as it is there—it is unfortunately a limitation of the API.
It turns out that that adding a new locale to a space will not cause subsequent sync calls to return "new" content for assets ("new" in this case refering to populating the asset for all locales on the space with fallback-locale logic reflected).
I think the best strategy would be either to do another initial sync; or you could write a script to update your assets in some manner.
from contentful-persistence.swift.
- Yes, that is correct,
- It seems that it only affects iOS, Android works perfectly fine.
from contentful-persistence.swift.
Hey @Klaudas ,
I haven't been able to try reproducing this today since I've been busy. I will see what I can do tomorrow however. If this issue is urgent, then I suggest opening a support ticket at support.contentful.com where I can better guarantee faster response times.
from contentful-persistence.swift.
A quick update: I was able to reproduce the issue, but I have not yet identified the root cause. It seems that linking new assets and publishing correctly resolves them in the CoreData database, but linking new entries does not.
from contentful-persistence.swift.
@Klaudas actually, I must rescind my earlier comment...earlier today, I created a model to manually test, but what I forgot to do when I created this model was add the relevant line for the one-to-many field to the static func fieldMapping() -> [FieldName: String]
function.
After adding the relevant line, I have tested both incrementally adding a new reference to my one-to-many links array, and also doing an initial sync and I see all the expected content every time.
This library also has tests that assert that one-to-many links are properly stored in CoreData and that the references are resolved. Thus, after my investigation, I cannot confirm that there is a bug and must assume, for now, that there might be a configuration issue with your project.
If you need help troubleshooting your project, then I suggest opening a support request so we can take a look at your project and content together.
from contentful-persistence.swift.
@Klaudas did you ever figure this out?
from contentful-persistence.swift.
@Klaudas is this issue still relevant?
from contentful-persistence.swift.
Closed due to inactivity
from contentful-persistence.swift.
Related Issues (20)
- [BUG] SynchronizationManager.seedDBFromJSONFiles throwing incorrect invalidFilePath HOT 1
- [Documentation] Missing reference to contentful-utilities HOT 2
- [BUG] Incremental sync issues with 0.17.1 HOT 5
- Changing of handling symbol arrays causes crash while seeding DB HOT 3
- After updating to the latest version of SDK 0.17.4, app crashes while syncing
- Crash on launch; dyld Symbol not found in Swift 5.4 / XCode 12.5 HOT 1
- To One relationship with mapped relationship name results in crash while trying to sync HOT 1
- Crash after mutating model that removes a references within resolveRelationships when cached.
- Sync not removing invalid relationships? HOT 1
- Sync not removing invalid relationships if a full sync is performed
- 'Cannot find 'SyncInfo' in scope' when loaded via SPM HOT 3
- Error When Building contentful-persistence.swift in Cartfile with new version of Swift
- SynchronizationManager.sync() throws JSON Decoding exception
- Update podspec to use contentful 5.0.0 HOT 1
- Property cannot be marked @NSManaged because its type cannot be represented in Objective-C HOT 2
- Use of unresolved identifier 'SyncInfo' HOT 1
- Update podspec HOT 2
- Persisting RichTextDocument HOT 12
- Force re-sync all the data possible? HOT 5
- Coredata relationship not getting synced when un-publishing and publishing an entry with reference HOT 3
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 contentful-persistence.swift.