mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
chore: bump superset-ui and update references to queriesData (#22)
* chore: update references to queriesData * fix: add legacy time sections * fix: add missing deps
This commit is contained in:
parent
687b70d640
commit
9e10e04dbe
@ -48,8 +48,8 @@
|
|||||||
"@airbnb/config-typescript": "^2.1.2",
|
"@airbnb/config-typescript": "^2.1.2",
|
||||||
"@airbnb/nimbus": "^2.1.3",
|
"@airbnb/nimbus": "^2.1.3",
|
||||||
"@superset-ui/commit-config": "^0.0.9",
|
"@superset-ui/commit-config": "^0.0.9",
|
||||||
"@superset-ui/chart-controls": "^0.15.0",
|
"@superset-ui/chart-controls": "^0.16.3",
|
||||||
"@superset-ui/core": "^0.15.0",
|
"@superset-ui/core": "^0.16.3",
|
||||||
"@types/enzyme": "^3.10.5",
|
"@types/enzyme": "^3.10.5",
|
||||||
"@types/jest": "^25.1.1",
|
"@types/jest": "^25.1.1",
|
||||||
"@types/jsdom": "^12.2.4",
|
"@types/jsdom": "^12.2.4",
|
||||||
|
@ -33,8 +33,8 @@ Then use it via `SuperChart`. See [storybook](https://apache-superset.github.io/
|
|||||||
width={600}
|
width={600}
|
||||||
height={600}
|
height={600}
|
||||||
formData={...}
|
formData={...}
|
||||||
queryData={{
|
queriesData={[{
|
||||||
data: {...},
|
data: {...},
|
||||||
}}
|
}]}
|
||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
@ -46,8 +46,8 @@
|
|||||||
"xss": "^1.0.6"
|
"xss": "^1.0.6"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@superset-ui/chart-controls": "^0.15.0",
|
"@superset-ui/chart-controls": "^0.16.3",
|
||||||
"@superset-ui/core": "^0.15.0",
|
"@superset-ui/core": "^0.16.3",
|
||||||
"react": "^15 || ^16"
|
"react": "^15 || ^16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
import { sections } from '@superset-ui/chart-controls';
|
||||||
import { t, validateNonEmpty, legacyValidateInteger } from '@superset-ui/core';
|
import { t, validateNonEmpty, legacyValidateInteger } from '@superset-ui/core';
|
||||||
import timeGrainSqlaAnimationOverrides, {
|
import timeGrainSqlaAnimationOverrides, {
|
||||||
columnChoices,
|
columnChoices,
|
||||||
@ -38,6 +39,7 @@ import {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
controlPanelSections: [
|
controlPanelSections: [
|
||||||
|
sections.legacyRegularTime,
|
||||||
{
|
{
|
||||||
label: t('Query'),
|
label: t('Query'),
|
||||||
expanded: true,
|
expanded: true,
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
import { sections } from '@superset-ui/chart-controls';
|
||||||
import { t, validateNonEmpty, legacyValidateInteger } from '@superset-ui/core';
|
import { t, validateNonEmpty, legacyValidateInteger } from '@superset-ui/core';
|
||||||
import { formatSelectOptions } from '../../utilities/utils';
|
import { formatSelectOptions } from '../../utilities/utils';
|
||||||
import { columnChoices } from '../../utilities/controls';
|
import { columnChoices } from '../../utilities/controls';
|
||||||
@ -36,6 +37,7 @@ import {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
controlPanelSections: [
|
controlPanelSections: [
|
||||||
|
sections.legacyRegularTime,
|
||||||
{
|
{
|
||||||
label: t('Query'),
|
label: t('Query'),
|
||||||
expanded: true,
|
expanded: true,
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
import { sections } from '@superset-ui/chart-controls';
|
||||||
import { t, validateNonEmpty } from '@superset-ui/core';
|
import { t, validateNonEmpty } from '@superset-ui/core';
|
||||||
import {
|
import {
|
||||||
filterNulls,
|
filterNulls,
|
||||||
@ -33,6 +34,7 @@ import {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
controlPanelSections: [
|
controlPanelSections: [
|
||||||
|
sections.legacyRegularTime,
|
||||||
{
|
{
|
||||||
label: t('Query'),
|
label: t('Query'),
|
||||||
expanded: true,
|
expanded: true,
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
import { sections } from '@superset-ui/chart-controls';
|
||||||
import { t, validateNonEmpty, legacyValidateInteger } from '@superset-ui/core';
|
import { t, validateNonEmpty, legacyValidateInteger } from '@superset-ui/core';
|
||||||
import { formatSelectOptions } from '../../utilities/utils';
|
import { formatSelectOptions } from '../../utilities/utils';
|
||||||
import { columnChoices } from '../../utilities/controls';
|
import { columnChoices } from '../../utilities/controls';
|
||||||
@ -36,6 +37,7 @@ import {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
controlPanelSections: [
|
controlPanelSections: [
|
||||||
|
sections.legacyRegularTime,
|
||||||
{
|
{
|
||||||
label: t('Query'),
|
label: t('Query'),
|
||||||
expanded: true,
|
expanded: true,
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
import { sections } from '@superset-ui/chart-controls';
|
||||||
import { t } from '@superset-ui/core';
|
import { t } from '@superset-ui/core';
|
||||||
import {
|
import {
|
||||||
filterNulls,
|
filterNulls,
|
||||||
@ -34,6 +35,7 @@ import {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
controlPanelSections: [
|
controlPanelSections: [
|
||||||
|
sections.legacyRegularTime,
|
||||||
{
|
{
|
||||||
label: t('Query'),
|
label: t('Query'),
|
||||||
expanded: true,
|
expanded: true,
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
import { sections } from '@superset-ui/chart-controls';
|
||||||
import { t } from '@superset-ui/core';
|
import { t } from '@superset-ui/core';
|
||||||
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
||||||
import { formatSelectOptions } from '../../utilities/utils';
|
import { formatSelectOptions } from '../../utilities/utils';
|
||||||
@ -45,6 +46,7 @@ import {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
controlPanelSections: [
|
controlPanelSections: [
|
||||||
|
sections.legacyRegularTime,
|
||||||
{
|
{
|
||||||
label: t('Query'),
|
label: t('Query'),
|
||||||
expanded: true,
|
expanded: true,
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
import { sections } from '@superset-ui/chart-controls';
|
||||||
import { t, validateNonEmpty } from '@superset-ui/core';
|
import { t, validateNonEmpty } from '@superset-ui/core';
|
||||||
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
||||||
import {
|
import {
|
||||||
@ -48,6 +49,7 @@ export default {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
controlPanelSections: [
|
controlPanelSections: [
|
||||||
|
sections.legacyRegularTime,
|
||||||
{
|
{
|
||||||
label: t('Query'),
|
label: t('Query'),
|
||||||
expanded: true,
|
expanded: true,
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
import { sections } from '@superset-ui/chart-controls';
|
||||||
import { t, validateNonEmpty } from '@superset-ui/core';
|
import { t, validateNonEmpty } from '@superset-ui/core';
|
||||||
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
import timeGrainSqlaAnimationOverrides from '../../utilities/controls';
|
||||||
import {
|
import {
|
||||||
@ -33,6 +34,7 @@ import {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
controlPanelSections: [
|
controlPanelSections: [
|
||||||
|
sections.legacyRegularTime,
|
||||||
{
|
{
|
||||||
label: t('Query'),
|
label: t('Query'),
|
||||||
expanded: true,
|
expanded: true,
|
||||||
|
@ -19,14 +19,14 @@
|
|||||||
const NOOP = () => {};
|
const NOOP = () => {};
|
||||||
|
|
||||||
export default function transformProps(chartProps) {
|
export default function transformProps(chartProps) {
|
||||||
const { width, height, rawFormData, queryData, hooks } = chartProps;
|
const { width, height, rawFormData, queriesData, hooks } = chartProps;
|
||||||
const { onAddFilter = NOOP, setControlValue = NOOP } = hooks;
|
const { onAddFilter = NOOP, setControlValue = NOOP } = hooks;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
formData: rawFormData,
|
formData: rawFormData,
|
||||||
height,
|
height,
|
||||||
onAddFilter,
|
onAddFilter,
|
||||||
payload: queryData,
|
payload: queriesData[0],
|
||||||
setControlValue,
|
setControlValue,
|
||||||
viewport: {
|
viewport: {
|
||||||
...rawFormData.viewport,
|
...rawFormData.viewport,
|
||||||
|
@ -37,8 +37,8 @@
|
|||||||
"viewport-mercator-project": "^6.1.1"
|
"viewport-mercator-project": "^6.1.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@superset-ui/chart-controls": "^0.15.0",
|
"@superset-ui/chart-controls": "^0.16.3",
|
||||||
"@superset-ui/core": "^0.15.0",
|
"@superset-ui/core": "^0.16.3",
|
||||||
"react": "^15 || ^16"
|
"react": "^15 || ^16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
export default function transformProps(chartProps) {
|
export default function transformProps(chartProps) {
|
||||||
const { formData, height, width, queryData, hooks } = chartProps;
|
const { formData, height, width, queriesData, hooks } = chartProps;
|
||||||
const { mapboxApiAccessToken, features } = queryData.data;
|
const { mapboxApiAccessToken, features } = queriesData[0].data;
|
||||||
const { config, autozoom, readonly } = formData;
|
const { config, autozoom, readonly } = formData;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -41,6 +41,8 @@
|
|||||||
"@types/storybook__react": "3.0.7",
|
"@types/storybook__react": "3.0.7",
|
||||||
"bootstrap": "^4.3.1",
|
"bootstrap": "^4.3.1",
|
||||||
"react": "^16.6.0",
|
"react": "^16.6.0",
|
||||||
|
"react-bootstrap": "^0.33.1",
|
||||||
|
"react-loadable": "^5.5.0",
|
||||||
"storybook-addon-jsx": "^7.1.0"
|
"storybook-addon-jsx": "^7.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -51,7 +53,7 @@
|
|||||||
"terser-webpack-plugin": "^2.1.0"
|
"terser-webpack-plugin": "^2.1.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@superset-ui/chart-controls": "^0.15.0",
|
"@superset-ui/chart-controls": "^0.16.3",
|
||||||
"@superset-ui/core": "^0.15.0"
|
"@superset-ui/core": "^0.16.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ export default [
|
|||||||
width={400}
|
width={400}
|
||||||
height={400}
|
height={400}
|
||||||
datasource={dummyDatasource}
|
datasource={dummyDatasource}
|
||||||
queryData={payload}
|
queriesData={[payload]}
|
||||||
formData={{
|
formData={{
|
||||||
datasource: '10__table',
|
datasource: '10__table',
|
||||||
viz_type: 'deck_arc',
|
viz_type: 'deck_arc',
|
||||||
|
@ -13,7 +13,7 @@ export default [
|
|||||||
width={400}
|
width={400}
|
||||||
height={400}
|
height={400}
|
||||||
datasource={dummyDatasource}
|
datasource={dummyDatasource}
|
||||||
queryData={payload}
|
queriesData={[payload]}
|
||||||
formData={{
|
formData={{
|
||||||
datasource: '5__table',
|
datasource: '5__table',
|
||||||
viz_type: 'deck_grid',
|
viz_type: 'deck_grid',
|
||||||
|
@ -13,7 +13,7 @@ export default [
|
|||||||
width={400}
|
width={400}
|
||||||
height={400}
|
height={400}
|
||||||
datasource={dummyDatasource}
|
datasource={dummyDatasource}
|
||||||
queryData={payload}
|
queriesData={[payload]}
|
||||||
formData={{
|
formData={{
|
||||||
datasource: '5__table',
|
datasource: '5__table',
|
||||||
viz_type: 'deck_hex',
|
viz_type: 'deck_hex',
|
||||||
|
@ -13,7 +13,7 @@ export default [
|
|||||||
width={400}
|
width={400}
|
||||||
height={400}
|
height={400}
|
||||||
datasource={dummyDatasource}
|
datasource={dummyDatasource}
|
||||||
queryData={payload}
|
queriesData={[payload]}
|
||||||
formData={{
|
formData={{
|
||||||
datasource: '11__table',
|
datasource: '11__table',
|
||||||
viz_type: 'deck_path',
|
viz_type: 'deck_path',
|
||||||
|
@ -14,7 +14,7 @@ export default [
|
|||||||
width={400}
|
width={400}
|
||||||
height={400}
|
height={400}
|
||||||
datasource={dummyDatasource}
|
datasource={dummyDatasource}
|
||||||
queryData={payload}
|
queriesData={[payload]}
|
||||||
formData={{
|
formData={{
|
||||||
datasource: '9__table',
|
datasource: '9__table',
|
||||||
viz_type: 'deck_polygon',
|
viz_type: 'deck_polygon',
|
||||||
@ -80,7 +80,7 @@ export default [
|
|||||||
width={400}
|
width={400}
|
||||||
height={400}
|
height={400}
|
||||||
datasource={dummyDatasource}
|
datasource={dummyDatasource}
|
||||||
queryData={geojsonPayload}
|
queriesData={[geojsonPayload]}
|
||||||
formData={{
|
formData={{
|
||||||
datasource: '9__table',
|
datasource: '9__table',
|
||||||
viz_type: 'deck_polygon',
|
viz_type: 'deck_polygon',
|
||||||
|
@ -13,7 +13,7 @@ export default [
|
|||||||
width={400}
|
width={400}
|
||||||
height={400}
|
height={400}
|
||||||
datasource={dummyDatasource}
|
datasource={dummyDatasource}
|
||||||
queryData={payload}
|
queriesData={[payload]}
|
||||||
formData={{
|
formData={{
|
||||||
datasource: '5__table',
|
datasource: '5__table',
|
||||||
viz_type: 'deck_scatter',
|
viz_type: 'deck_scatter',
|
||||||
|
@ -13,7 +13,7 @@ export default [
|
|||||||
width={400}
|
width={400}
|
||||||
height={400}
|
height={400}
|
||||||
datasource={dummyDatasource}
|
datasource={dummyDatasource}
|
||||||
queryData={payload}
|
queriesData={[payload]}
|
||||||
formData={{
|
formData={{
|
||||||
datasource: '5__table',
|
datasource: '5__table',
|
||||||
viz_type: 'deck_screengrid',
|
viz_type: 'deck_screengrid',
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user