-
Notifications
You must be signed in to change notification settings - Fork 222
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
Fixes Bug 1191509 - New signature reports tab to show graphs based on date histogram aggregations #2940
Conversation
We could sort by which lines have the highest counts and just show the top 5 (but we'd have to choose between highest average and highest maximum count). Or we could just show the graph with 5 lines but let the user know that there are more lines, and let them select which they want to see? |
|
||
// Set the placeholder. | ||
this.$selectElement.select2({ | ||
'placeholder': 'Aggregate on...', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Aggregate on/Graph of
. Or something better.
Let's show only the top 4 lines, and use those with the maximum total number of results. To find out which are the top results, add a facet on the field, and use the results from that facet: they will be sorted by descending number. For example: http://socorro/supersearch/?_histogram.date=version&_facets=version Returns: {
"facets": {
"histogram_date": ["..."] ,
"version": [
{ "term": "WaterWolf", "count": 42 },
{ "term": "NightTrain", "count": 41 },
]
}
} On the graph, if there are more than 4 different lines, add a note saying something like "Showing top 4 results out of XX, not showing: a, b, c... ". |
New version with those changes. |
This is looking very very good! I'm excited to finally see graphs in the signature report page!!! :) I think the only comment I have is that when you hover a particular point, the MG tip tells you the number of crashes but does not tell you what it is for (for example, if I'm looking at a graph of count of crashes per version, when I hover a point I'd like it to tell me that these numbers are for version X or Y). And now for the actual last comment: where are my unit tests? :) |
@AdrianGaudebert Here they are! |
4c50188
to
bcdef45
Compare
@AdrianGaudebert Good to squash? |
Yes! Excellent! I'll merge as soon as it's ready to go. :) |
… date histogram aggregations
bcdef45
to
2a587d1
Compare
@AdrianGaudebert Done! |
Heh, I just noticed: when you have several graphs and you hover a point in one of the graphs, it changes the top-right legend for all graphs! Not sure if that's a bug in your code or in MG, but that's not a blocker anyway. I'm merging this anyway, can you file a bug to figure that issue out? |
Fixes Bug 1191509 - New signature reports tab to show graphs based on date histogram aggregations
Oops, yes I should be able to fix that! |
No description provided.