-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
LiveQuery on Object Role Based don't send events for some users #5131
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
You should probably not have that many roles on a single user |
Jokes aside, we should use the .each instead of the query you’re right :) and use the iteration callback to populate an array of all roles. Is it something you’re be willing to make a Pr for? |
In effect |
This is about as good an example of a very simple, contained improvement imaginable. |
@Moumouls so what do you expect to happen? My best guest, the stale bot will close it :) |
Just to get back to the fact that a user should not have so much roles. I may not have fully understood the concept of roles. |
@flovilmart we can mark it as a future improvement! but currently I can't do a patch, when I have more time, I could do a clean PR;) |
I don’t have the time to give you a clean answer |
Allow to manage Live Query with User that have more than 100 Parse.Roles
* Fix Limitation Role #5131 Allow to manage Live Query with User that have more than 100 Parse.Roles * Clean Up * Add Custom Config Support and Test * Fix Auth Test * Switch to Async Function * Fix restWhere * Fix Test * Clean Final Commit * Lint Fix * Need to Fix Test Callback * Fixes broken test * Restore find() method in spy * adds restquery-each * small nit * adds changelog
Fixed by #5132 |
…unity#5132) * Fix Limitation Role parse-community#5131 Allow to manage Live Query with User that have more than 100 Parse.Roles * Clean Up * Add Custom Config Support and Test * Fix Auth Test * Switch to Async Function * Fix restWhere * Fix Test * Clean Final Commit * Lint Fix * Need to Fix Test Callback * Fixes broken test * Restore find() method in spy * adds restquery-each * small nit * adds changelog
Issue Description
When a Parse.User is linked in a more than 100 Parse.Role, a LiveQuery on a Role based Parse.Object send events in an unpredictable way, or even not sending events any more !
Steps to reproduce
Make a LiveQuery on Role Based Object with a Parse.User linked in more than 100 Parse.Role
Expected Results
The LiveQuery from the Parse.User receive events correctly
Actual Outcome
The LiveQuery from Parse.User not receive events or receive events in an unpredictable way
Environment Setup
Server
Database
Logs/Trace
Logs For a User that have more than 100 Parse.Role
2018-10-17T19:05:06.909Z - Original null | Current {...,"ACL":{"role:xxxxxxxxx":{"read":true,"write":true}},"__type":"Object","className":"Aptitude","objectId":"xxxxxxxx"} | Match: false, true, false, false(isCurrentMatched) | Query: ClassName:fieldOfTheQuery|["valueForTheQuery"]
Logs For a User that have less than 100 Parse.Role
2018-10-17T19:05:06.909Z - Original null | Current {...,"ACL":{"role:xxxxxxxxx":{"read":true,"write":true}},"__type":"Object","className":"Aptitude","objectId":"xxxxxxxx"} | Match: false, true, false, true(isCurrentMatched) | Query: ClassName:fieldOfTheQuery|["valueForTheQuery"]
Investigation on Parse.Server 3.1.0
.limit(99999)
@flovilmart what I was talking about on Twitter
The text was updated successfully, but these errors were encountered: