This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 271
feat: split superset-ui/query from superset-ui/chart #178
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kristw
changed the title
Kristw query package
feat: split superset-ui/query from superset-ui/chart
Jun 18, 2019
Deploy preview for superset-ui ready! Built with commit 0b8613e |
Deploy preview for superset-ui ready! Built with commit 8b528de |
etr2460
reviewed
Jun 19, 2019
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
import getChartBuildQueryRegistry from '../registries/ChartBuildQueryRegistrySingleton'; | ||
import getChartMetadataRegistry from '../registries/ChartMetadataRegistrySingleton'; | ||
import { AnnotationLayerMetadata } from '../types/Annotation'; |
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.
Judging from the name, AnnotationLayerMetadata
seems more related to charts than queries. why is it being pulled out here?
@etr2460 I have put the |
etr2460
approved these changes
Jul 26, 2019
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 then!
BREAKING CHANGE: some api and types are removed from @superset-ui/chart and moved to /query
kristw
force-pushed
the
kristw--query-package
branch
from
August 13, 2019 18:29
6ecff97
to
8b528de
Compare
kristw
changed the title
feat: split superset-ui/query from superset-ui/chart
breaking: split superset-ui/query from superset-ui/chart
Aug 13, 2019
kristw
changed the title
breaking: split superset-ui/query from superset-ui/chart
BREAKING: split superset-ui/query from superset-ui/chart
Aug 13, 2019
kristw
changed the title
BREAKING: split superset-ui/query from superset-ui/chart
feat: split superset-ui/query from superset-ui/chart
Aug 13, 2019
kristw
added a commit
that referenced
this pull request
Apr 17, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
💔 Breaking Changes
A. Some functions and types are removed from
@superset-ui/chart
and moved to new package@superset-ui/query
buildQueryContext
buildQueryObject
QueryObject
There is no change to the functionalities.
Fix #176
B.
ChartFormData
is renamed toQueryFormData
This is to better reflect what the object actually is. Historically,
formData
in Superset stores all information necessary to reproduce a chart, which includeWe have always considered
formData
to be a single type that contains both information in the context of Superset app (incubator-superset
). However, after the development of embeddable charts, we see the following use cases:query
part offormData
.formData
.It seems more logical to separate the two parts of
formData
into its own type.QueryFormData
, which is what@superset-ui/query
handles.buildQueryObject
convertsQueryFormData
toQueryObject
.ChartFormData
, which varies chart by chart and can be defined in the@superset-ui/plugins
packages.Currently,
ChartFormData
is referenced inplugin-chart-table
which is still under development, anddataportal
Migration guide
@superset-ui/chart
to@superset-ui/query
@superset-ui/chart
as dependency, also add@superset-ui/query
ChartFormData
toQueryFormData
.