Giter Site home page Giter Site logo

Comments (2)

marciogurka avatar marciogurka commented on August 25, 2024

Initial debugging shows that on Scheduler/crud/AbstractCrudManagerMixin.js on the sync() function we need to verify the forceSync flag.

from support.

ghulamghousdev avatar ghulamghousdev commented on August 25, 2024

We are already checking for forceSync. If you check the getChangesetPackage in AbstractCrudManagerMixin, you are gonna see that when there are no changes and forceSync is set to true, we are still returning an object with request and revision id.

However in getChangesetPackage in CrudManager we are checking that if the pack is not null, which is true in our case, we check for single assignment mode which also becomes true in our testCase example, we are removing the assignments. And just below that, we are validating storeIds and as changes are already undefined in the pack, (!this.crudStores.some(storeInfo => pack[storeInfo.storeId])) becomes true and we are returning null in that case. So i have added that check to execute that piece of code only when there are some changes on crudManager. We don't want that piece of code being executed if there are no changes.

from support.

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.