-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(discover): Zerofill queries that are grouped by time #11384
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
Conversation
|
Do we want to have discover charts treat null values as 0? |
7dd78c5 to
b6a83fc
Compare
| result['project.name'] = projects[result['project.id']] | ||
| if 'project.id' not in requested_query['selected_columns']: | ||
| del result['project.id'] | ||
| if 'project.id' in result: |
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.
It's now possible this doesn't not exist in the result for time buckets that do not have any data.
b6a83fc to
261ca47
Compare
|
If we're zerofilling results for all queries with a rollup value provided, do we need the |
|
Also, would this mean that limits are kind of ignored on these types of queries? |
|
Can we bump the limit to 10k (that's what events is at)? Limit is not ignored, you'll have a result object with |
This will zerofill results when a query has the `rollup` parameter. This will give us more accurate charts when there are time periods without any events.
bd578c8 to
64df396
Compare
|
I don't have a strong opinion on the API limit, but can we keep the one that user can enter in the UI as 1000? |
|
I don't think I fully understand |
|
I removed the "assume as zero" option |
|
I'm not going to touch limit for now, widgets use |
lynnagara
left a comment
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.
LGTM
This will zerofill results when a query has the `rollup` parameter. This will give us more accurate charts when there are time periods without any events.
* master: (56 commits) feat(issues) Add skeleton for Org wide issues (#11420) fix(api): Fix broken spam email blocking code don't need this white background anymore and it causes a bug on hosted setup (#11436) fix(charts): Fix max value for WorldMapChart (#11404) feat(issues): Add issues icon to sidebar (#11439) build: Remove 'exports' from sourcemaps sources prefix (#11438) fix: Render integration description as markdown in search (#11441) ref: Import jquery when it's used (#11430) fix(ui): Render message params (#11432) ref(releases): Refactor projects/organization release overview (#11392) ref(groups): Refactor project group details (#11422) feat(2fa): Allow org to reset member 2fa (#11152) feat(api): Add relative stats period support to get_date_range_from_params (#11380) chore: Remove group-unmerge flag (#11431) fix(ui) Fix 'other' tag bucket to have a proper tooltip (#11433) build(dev): Add `yarn dev` script to start sentry devserver (#11360) ref(charts): Change PercentageBarChart -> PercentageAreaChart (#11401) feat(discover): Zerofill queries that are grouped by time (#11384) test: Add coverage for breadcrumb message scrubbing feat(releases): Add all organization release routes (#11377) ...
This will zerofill results when a query has the
rollupparameter. This will give us more accurate charts when there are time periods without any events.