-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
LiveQuery roles, poiner permissions are misssing #5839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@nangyal thanks for reporting. Would you be willed to tackle this one? |
Commented this in #5393 as well which I think has a better description of what is going wrong. We are having an issue with this and @ridem in #5393 has made a perfect analysis of what is wrong. Would be fun to make a PR on how to fix it but I am not sure how, I believe it could be quite tricky. Why it is important to fix:
I made a small workaround it is not optimal but as long as we have the liveQueryServer and the parseServer on the same server it will work:
This clears the cache as soon as a role is changed. It could easily be made smarter by fetching the users that belong to that role and only removing or editing those rows in the authCache |
Thank you @mullwaden I've been facing exactly the same issue with roles and fresh added users as described at #5393 You solution helped, I'll use it for now. I hope the final fix will be more efficient |
Is this in relation to an LQ event won't be fired if the related Role is updated? Or is this something else? E.g, if
Is called, related LQ objects with the role should fire an |
@dblythy the issue is that the cache can be outdated. So lets say a user is added to a role with RoleX and then tries to fetch a database row with the |
2 years past and still not fixed :) |
@nangyal Have you tried putting the LQ trigger on the role class? |
No, I solved it a different way [redacted] |
I note the code snippet referenced refers to the It's a little vague for what the issue actually is - and LiveQuery (to my testing) does support role based ACLs. @mullwaden I have reopened #5393 as I have been able to replicate the issue of role cache not updating when |
Is your feature request related to a problem? Please describe.
The LiveQuery Permission management not handle
roles and poiner permissions
Describe the solution you'd like
Describe alternatives you've considered
Additional context
parse-server/src/LiveQuery/ParseLiveQueryServer.js
Line 481 in 2e0940c
The text was updated successfully, but these errors were encountered: