-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
fix: custom SQL in the XAxis #21847
fix: custom SQL in the XAxis #21847
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21847 +/- ##
==========================================
- Coverage 66.82% 66.82% -0.01%
==========================================
Files 1805 1805
Lines 69070 69079 +9
Branches 7373 7379 +6
==========================================
+ Hits 46159 46164 +5
- Misses 21005 21009 +4
Partials 1906 1906
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
429c6cc
to
2a8d8fa
Compare
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 - also left an optional naming idea to consider.
@@ -30,7 +30,7 @@ export const pivotOperator: PostProcessingFactory<PostProcessingPivot> = ( | |||
queryObject, | |||
) => { | |||
const metricLabels = ensureIsArray(queryObject.metrics).map(getMetricLabel); | |||
const xAxis = getXAxis(formData); | |||
const xAxis = getXAxisLabel(formData); |
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.
Just a thought: As we now have different utils for extracting the column and the label, should we be more specific here and call this xAxisLabel
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.
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.
@ zhaoyongjie I believe @villebro was referring to the variable name as opposed to the function, i.e.,
const xAxisLabel = getXAxisLabel(formData);
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.
@john-bodley update these at PR
import { PostProcessingFactory } from './types'; | ||
|
||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
export const prophetOperator: PostProcessingFactory<PostProcessingProphet> = ( | ||
formData, | ||
queryObject, | ||
) => { | ||
const xAxis = getXAxis(formData); | ||
const xAxis = getXAxisLabel(formData); |
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.
same here (and in other places below, too)
38db585
to
2a8d8fa
Compare
SUMMARY
To fix custom SQL can't apply on the XAxis when FF is enable.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
After
Before
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION