Order scatter plot data by usage instead of efficiency statistic. #323
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The limit on the scatter plot stores is set to 3000. If there are more than 3000 data points, we want to prioritize showing users with the most usage on the system first. This change sets the order_by parameter to sort by the usage statistic descending.
I also disabled turboThreshold for the charts - https://api.highcharts.com/highcharts/plotOptions.series.turboThreshold. Having this enabled was causing the color coding of efficient vs inefficient points to not work as expected when the limit met the turboThreshold and there is no performance benefit for us having it enabled as the data being plotted does not fit into the following categories as taken from the Highcharts docs: "When a series contains a data array that is longer than this, only one dimensional arrays of numbers, or two dimensional arrays with x and y values are allowed."
Motivation and Context
Fixes issue: https://app.asana.com/0/1201929110850019/1202109495471984/f
This issue was found while testing for XSEDE10.0 release.
Tests performed
Changes were tested on my port on metrics-dev.
https://metrics-dev.ccr.buffalo.edu:9001/#main_tab_panel:efficiency
Types of changes
Checklist: