-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
LiveQueries and Roles in v3.1.x #5393
Comments
I've noticed the issue as well, which comes from the addition of The
This provides a much better performance, but we might want to provide a way to configure this cache. |
@flovilmart I can make a PR if you point me to the approach you find most sensible.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I’m not really an expert in this area. If you can open a PR with failing cases that would be great. There is a separate issue opened. |
We are having an issue with this and @ridem 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 |
Thanks for opening this issue!
|
Closing via #8026 |
Issue Description
If we use ACL Roles with Live Queries there is an issue where the records with ACL (latest created Role) doesn't work and after logout or restart of the server everything looks OK till next created Role then the issue popups again.
I found that in v3.0.0 everything works fine till commit Adds support for CLP in Live query (no support for roles yet)
Steps to reproduce
Here is a simple HTML test page where you can reproduce the issue with few clicks.
Here is the screen capture with the issue in action.
The text was updated successfully, but these errors were encountered: