Giter VIP home page Giter VIP logo

Comments (8)

loudmouth avatar loudmouth commented on August 11, 2024

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 type B
  • You add more entries of type B and additionally, reference those entries in your one-to-many field on type A.
  • You do another sync operation after publishing everything, but the references are not showing up in your NSManagedObject instances of type A.

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.

Klaudas avatar Klaudas commented on August 11, 2024

@loudmouth,

  1. Yes, that is correct,
  2. It seems that it only affects iOS, Android works perfectly fine.

from contentful-persistence.swift.

loudmouth avatar loudmouth commented on August 11, 2024

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.

loudmouth avatar loudmouth commented on August 11, 2024

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.

loudmouth avatar loudmouth commented on August 11, 2024

@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.

loudmouth avatar loudmouth commented on August 11, 2024

@Klaudas did you ever figure this out?

from contentful-persistence.swift.

matelo avatar matelo commented on August 11, 2024

@Klaudas is this issue still relevant?

from contentful-persistence.swift.

jroehl avatar jroehl commented on August 11, 2024

Closed due to inactivity

from contentful-persistence.swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.