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
mobile vs. desktop pie chart does not show all values #3192
Comments
(In [6516]) Fixes #3192, fixed bug in UserSettings where GroupBy filter was queued instead of applied directly & fixed regression where generic filters were run when displaying pie graphs. NOTES:
|
The disableGenericFilters() seems dangerous here - because the graph must sometimes apply generic filter data (eg. I haven't tested but filtering with filter_pattern or using filter_truncate should still work) ? Were the generic filters causing a problem in the case of pie graphs ? |
Replying to matt:
The limit filter was reducing the number of values before. Also, this bug was introduced (I think) w/ #3004 (or maybe the 'report was generated on' issue) when I put the postDataTableLoaded call in there, so the generic filters were never called before. (Which might be another bug, I guess :)). We could enable generic filters and move the call to after the AddSummaryRow filter is used. |
Replying to capedfuzz:
Umh OK but can you take this call out then? ;-)
Sounds good, as long as they run before the queued filters |
Replying to matt:
I think the call was needed for #3004, so priority filters will be run on a view.
Just tried this and it won't work. datatable.js will send the filter_limit parameter when switching to the pie graph view. I'll investigate alternative solutions. |
(In [6558]) Fixes #3192, allow limit filter to be skipped by ViewDataTable descendents & skip in GenerateGraphData. |
Maybe this problem could be fixed in the Javascript rather than changing the Api of postDataTableLoadedFromAPI() - changing Core API is always risky and more hacky. For example maybe the commit [6558] could be reverted the following
|
Replying to matt:
I thought of that, but it won't work. If you remove the params when loading a graph, the table won't have the limit/offset when you switch back. Which is also why I didn't add a disableLimit method (like the disableSort method). |
I think it's OK if the tables don't have the limit information after looking at the graph... Limit can be lost when switching contest, we want to keep: Searched string, Flattened, etc. but not limit. |
I guess if you're ok w/ that info being lost, the change you proposed will work, but I don't see the problem w/ disabling the limit filter for graphs. Graphs will always provide an overview of all the information not a subsection of it, so limit/offset will never have any meaning for them. Deleting the parameters in the JS to avoid a bug in the php seems more hacky than allowing descendants of ViewDataTable to customize behavior. |
Looks good - can I please make one more request,
|
Attachment: Patch for always showing mobile/desktop rows. |
I had to add a new filter for the last request (since API methods can get DataTable_Arrays). Take a look and let me know if it's good to commit. |
Look good - however you can just inline the filter in this case, since it's as simple as creating the filter, and minimizing number of small filters is better. |
(In [6617]) Fixes #3192, modified getMobileVsDesktop report to always show Mobile/Desktop rows, even if there're visits of one type. |
(In [6623]) Refs #3192 refactoring |
(In [6625]) Refs #3192 forgot this file! |
Reported in forum
Also it seems the pie graphs use filter_limit instead of filter_truncate?
The text was updated successfully, but these errors were encountered: