mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
refactor(native-filters): update dataMask and ExtraFormData schema (#13983)
* refactor: updates usage of `ownFilters` to `ownState` * refactor: update dataMask (final) * lint: fix lint * refactor: revert feat * fix: fix missed chart configuration * add filter set migration * apply new changes * fix migration revision * update migration * fix jest mock * js lint * fix test types * update tests and types * remove append_form_data from tests * fix findExistingFilterSet tests * add migration test Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
This commit is contained in:
@@ -53,11 +53,7 @@ const createProps = () => ({
|
||||
show_perc: true,
|
||||
sort_x_axis: 'alpha_asc',
|
||||
sort_y_axis: 'alpha_asc',
|
||||
extra_form_data: {
|
||||
custom_form_data: {},
|
||||
override_form_data: {},
|
||||
append_form_data: {},
|
||||
},
|
||||
extra_form_data: {},
|
||||
},
|
||||
tableSectionHeight: 156.9,
|
||||
chartStatus: 'rendered',
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import { styled, t } from '@superset-ui/core';
|
||||
import { JsonObject, styled, t } from '@superset-ui/core';
|
||||
import Collapse from 'src/common/components/Collapse';
|
||||
import Tabs from 'src/common/components/Tabs';
|
||||
import Loading from 'src/components/Loading';
|
||||
@@ -105,10 +105,12 @@ export const DataTablesPane = ({
|
||||
tableSectionHeight,
|
||||
onCollapseChange,
|
||||
chartStatus,
|
||||
ownState,
|
||||
}: {
|
||||
queryFormData: Record<string, any>;
|
||||
tableSectionHeight: number;
|
||||
chartStatus: string;
|
||||
ownState?: JsonObject;
|
||||
onCollapseChange: (openPanelName: string) => void;
|
||||
}) => {
|
||||
const [data, setData] = useState<{
|
||||
@@ -142,6 +144,7 @@ export const DataTablesPane = ({
|
||||
formData: queryFormData,
|
||||
resultFormat: 'json',
|
||||
resultType,
|
||||
ownState,
|
||||
})
|
||||
.then(response => {
|
||||
// Only displaying the first query is currently supported
|
||||
|
||||
Reference in New Issue
Block a user