-
Notifications
You must be signed in to change notification settings - Fork 77
Conversation
Codecov Report
@@ Coverage Diff @@
## master #183 +/- ##
=======================================
Coverage 34.25% 34.25%
=======================================
Files 12 12
Lines 216 216
Branches 21 21
=======================================
Hits 74 74
Misses 132 132
Partials 10 10
Continue to review full report at Codecov.
|
Deploy preview for superset-ui-plugins ready! Built with commit 29c098e |
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.
one question about NOOP
, otherwise lgtm!
@@ -20,17 +20,12 @@ | |||
import isTruthy from './utils/isTruthy'; | |||
import { formatLabel } from './utils'; | |||
|
|||
function NOOP() {} |
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.
is this preferred to const NOOP = () => {};
? I find defining a function like this as a constant at the top of the file a bit more readable
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.
sure! can do.
* commit '0916c62e98b7cf9f30212cb155a00748db29f043': (171 commits) v0.11.0 feat: upgrade @superset-ui to v0.12 (apache-superset#183) v0.10.46 fix(force to publish new version): force to publish new version v0.10.45 fix(fix issues in superset): fix issues in superset v0.10.44 fix: move react to table peerdependency (apache-superset#179) v0.10.43 docs: update thumbnails (apache-superset#178) v0.10.42 fix(fix types): fix types test(added more tests): added more tests fix(tablevis): update datatable change docs: update change log refactor(address code review comments): address code review comments v0.10.41 feat: update type for line chart series (apache-superset#175) build(bump the verions): bump the verions build(migrate to lunar 2*): migrate to lunar 2* ... # Conflicts: # packages/superset-ui-legacy-plugin-chart-pivot-table/package.json # packages/superset-ui-legacy-plugin-chart-table/package.json # packages/superset-ui-legacy-plugin-chart-table/src/Table.js # packages/superset-ui-legacy-preset-chart-nvd3/package.json # packages/superset-ui-preset-chart-xy/src/Line/Encoder.ts # packages/superset-ui-preset-chart-xy/src/encodeable/AbstractEncoder.ts
* build: update dependencies * feat: replace payload with queryData * feat: replace payload with queryData * fix: rename hooks * fix: types from query package * fix: more typings * docs: update readme * fix: import query * fix: change NOOP to const * fix: update dependency versions
* build: update dependencies * feat: replace payload with queryData * feat: replace payload with queryData * fix: rename hooks * fix: types from query package * fix: more typings * docs: update readme * fix: import query * fix: change NOOP to const * fix: update dependency versions
💔 Breaking Changes:
Many changes to the plugins are required to make them compatible with
@superset-ui/xxx
v0.12
. After the changes in this PR, these plugin packages are no longer backward compatible with@superset-ui/xxx
v0.10
orv0.11
, therefore worth calling out as breaking changes.What were changed?
1. Version bump dependencies
2. Update
transformProps.(js|ts)
Several fields in
chartProps
are changed.payload
toqueryData
filters
toinitialValues
onAddFilter
,onError
,setControlValue
,setTooltip
fromhooks
3. Update types imported from
@superset-ui/chart
@superset-ui/chart
and moved into the new package@superset-ui/query
inv0.12
4. Update storybooks and READMEs
Update
<SuperChart>
propsTest
I have verified all stories in storybook and they work like before.
Note: The legacy
table
andpivot_table
examples are not working due to wrong webpack configuration which I will address in another PR.