Giter VIP home page Giter VIP logo

Comments (6)

dwrensha avatar dwrensha commented on September 2, 2024

I am able to reproduce this problem. It seems that there is an unfortunate interaction between three things:

  1. Meteor's built-in logic that subscribes a user to their own Users record, including the full profile field.
  2. Wekan's 'board' publication, which relies on some complicated magic from the cottz:publish-relations package to publish partial profiles for all members of a board. Somehow this seems to overwrite the profile data that the client receives from (1).
  3. Wekan's usage of SubsManager, which implies that subscriptions to 'board' don't get stopped when the user navigates away.

from wekan.

dwrensha avatar dwrensha commented on September 2, 2024

#20 works around the problem.

from wekan.

dwrensha avatar dwrensha commented on September 2, 2024

#21 works around the problem and seems less likely than #20 to cause other problems.
Of course, it still would be good to understand the root problem here! I suspect there is a bug in the cottz:publish-relations package.

from wekan.

xet7 avatar xet7 commented on September 2, 2024

Some errors on current version of pull request #20

from wekan.

dwrensha avatar dwrensha commented on September 2, 2024

I believe the main problem is that this cursor will call subscription.added() with an incomplete version of the user's profile. If that call to added() happens before Meteor's autopublish of user.profile happens, then it is the only piece of the profile that the client will see. #25 fixes this problem by avoiding the current user in this 'boards' publish.

from wekan.

dwrensha avatar dwrensha commented on September 2, 2024

Fixed by #25.

from wekan.

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.