-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Relationship Distribution gives inconsistent results when changing the limit parameter #6319
Comments
Results of our initial debug session with @marieflorescontact :
Problem: Could we include the data restrictions into the aggregation query directly ? |
Update: EDIT: the injection concerns the relationships itself, not the objects from/to this relationship so it's normal. |
Shall we increase the MAX_AGGREGATION_SIZE to give us more room? I'm unsure of the perf cost here (cc @richard-julien). |
After some discussions, we agreed on the following solution:
On the technical side it means changing the API of Frontend side, this will simplify greatly the fragment (no more |
Here is how it looks with #6323 |
Description
On this example dashboard:
https://testing.octi.staging.filigran.io/dashboard/workspaces/dashboards/d4374a78-de09-4a00-a5c3-37b673bcea8b
The 2 widgets are the same (second one duplicated from the first), I only changed the "limit" parameter of the second one (from 10 to 20).
One widget gives 0 results, the other gives 2 results.
This bug will not happen if the user has BYPASS capabilty, so test with a user with only access to knowledge + dashboards.
I also tested with a user with ALL capabilities but not BYPASS, the bug happens. So probably a part of the code excluded when user has BYPASS.
Environment
Testing environment 6.0
See user/role/dashboard with mention "6319"
Screenshots (optional)
The text was updated successfully, but these errors were encountered: