Code Monkey home page Code Monkey logo

Comments (7)

LucasAmos avatar LucasAmos commented on June 14, 2024 1

I have identified the cause of the issue.

The API request space.getEntries({ links_to_entry: ids.entry, skip: 0, limit: 1000 }) sometimes returns an empty items array.

I have reproduced the error programatically and this bug manifests because the contentful API is eventually consistent. Adding a delay between linking the VariationContainer to the HomePage and fetching the entries that link to the HomePage mitigates the bug.

from apps.

whitelisab avatar whitelisab commented on June 14, 2024 1

@juancarlosjr97 Thanks for reaching out! This ticket has not been prioritized, but I will provide an update when we are working on it.

from apps.

whitelisab avatar whitelisab commented on June 14, 2024

Hi @LucasAmos! Thank you for raising this issue. As communicated through our support process, we have captured this issue in our backlog and will prioritize it as soon as possible.

from apps.

whitelisab avatar whitelisab commented on June 14, 2024

Just another quick update @LucasAmos. I am going to close this issue and we will continue to communicate updates to you about this bug through our internal support process. Thank you!

from apps.

juancarlosjr97 avatar juancarlosjr97 commented on June 14, 2024

Any update on this ticket? As this has been closed makes following it up is practically impossible.

from apps.

juancarlosjr97 avatar juancarlosjr97 commented on June 14, 2024

@whitelisab... As @LucasAmos mentioned, the issue is the line

space.getEntries({ links_to_entry: ids.entry, skip: 0, limit: 1000 }),
that does not return the expected response but instead an empty array.

The reason, we think, is happening is because when the entry is created, it opens immediately the drawer and does the fetch of the L86, but as Contentful has just created the entry, the relationship does not exist yet, and if the patch of the parent entry with the newly created entry happens before the fetch data of L86 the array returns correct data, but if it happens after, it returns an empty array as the linked relationship does not exist yet.

Long story short, it requires an await for however long contentful takes to save an empty when a change happens on the UI and does the path.

from apps.

juancarlosjr97 avatar juancarlosjr97 commented on June 14, 2024

I have raised an MR to fix the bug - #4621 @whitelisab.

Please, if you could review it and merge it as we need this fix.

from apps.

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.