-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(@cubejs-client/vue): Pivot config can use null from heuristics #7167
fix(@cubejs-client/vue): Pivot config can use null from heuristics #7167
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 8 Ignored Deployments
|
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7167 +/- ##
===========================================
- Coverage 71.16% 47.04% -24.13%
===========================================
Files 322 155 -167
Lines 53630 20749 -32881
Branches 5216 5216
===========================================
- Hits 38165 9761 -28404
+ Misses 15148 10669 -4479
- Partials 317 319 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@DPHonys Thanks for contributing! Could you please add a test for it? |
…ry - Correctly updates pivot config after chart type change
Hi @paveltiunov, after multiple hours of getting empty pivotConfig I've found out I needed to use $nextTick to get updated properties so I hope the test is correctly composed. 🙂 |
@paveltiunov Also added the same fix and test to the Vue3 package. 🙂 |
…ery - Correctly updates pivot config after chart type change
0598608
to
a30f53b
Compare
Check List
Issue Reference this PR resolves
[#7166] Vue package ignores
null
value after herusicticsnull
/undefined
fromdefaultHerusictics
method so the pivot config is not correctly updated and it behaves differently from it's React counterpart.Description of Changes Made (if issue reference is not provided)
defaultHerusictics
isundefined
then we pass the current pivot config but if it isnull
then we pass thenull
into theResultSet.getNormalizedPivotConfig
method.