Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

feat: upgrade @superset-ui to v0.12 #183

Merged
merged 10 commits into from
Aug 26, 2019
Merged

feat: upgrade @superset-ui to v0.12 #183

merged 10 commits into from
Aug 26, 2019

Conversation

kristw
Copy link
Collaborator

@kristw kristw commented Aug 25, 2019

💔 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 or v0.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.

  • rename payload to queryData
  • rename filters to initialValues
  • unnest onAddFilter, onError, setControlValue, setTooltip from hooks

3. Update types imported from @superset-ui/chart

  • Several types are no longer in @superset-ui/chart and moved into the new package @superset-ui/query in v0.12
  • A few types are also renamed.

4. Update storybooks and READMEs

Update <SuperChart> props

Test

I have verified all stories in storybook and they work like before.
Note: The legacy table and pivot_table examples are not working due to wrong webpack configuration which I will address in another PR.

@kristw kristw requested a review from a team as a code owner August 25, 2019 05:17
@codecov
Copy link

codecov bot commented Aug 25, 2019

Codecov Report

Merging #183 into master will not change coverage.
The diff coverage is 50%.

Impacted file tree graph

@@           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
Impacted Files Coverage Δ
.../superset-ui-plugin-chart-table/src/processData.ts 81.81% <ø> (ø) ⬆️
...perset-ui-plugin-chart-table/src/processMetrics.ts 66.66% <ø> (ø) ⬆️
...erset-ui-plugin-chart-word-cloud/src/buildQuery.ts 100% <ø> (ø) ⬆️
...s/superset-ui-plugin-chart-table/src/buildQuery.ts 62.5% <0%> (ø) ⬆️
...t-ui-plugin-chart-word-cloud/src/transformProps.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1df3779...29c098e. Read the comment docs.

@netlify
Copy link

netlify bot commented Aug 25, 2019

Deploy preview for superset-ui-plugins ready!

Built with commit 29c098e

https://deploy-preview-183--superset-ui-plugins.netlify.com

Copy link
Contributor

@etr2460 etr2460 left a 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() {}
Copy link
Contributor

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure! can do.

@kristw kristw merged commit 74d75f2 into master Aug 26, 2019
@delete-merged-branch delete-merged-branch bot deleted the kristw--bump-v12 branch August 26, 2019 19:07
Yria added a commit to dooub/superset-ui-plugins that referenced this pull request Oct 28, 2019
* 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
nytai pushed a commit to preset-io/superset-ui-plugins that referenced this pull request Apr 27, 2020
nytai pushed a commit to preset-io/superset-ui-plugins that referenced this pull request Apr 27, 2020
* 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
lexisstv pushed a commit to utrace-ltd/superset-ui-plugins that referenced this pull request Jun 1, 2020
* 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants