mirror of
https://github.com/apache/superset.git
synced 2026-04-25 19:14:27 +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:
@@ -209,6 +209,7 @@ export const buildV1ChartDataPayload = ({
|
||||
resultFormat,
|
||||
resultType,
|
||||
setDataMask,
|
||||
ownState,
|
||||
}) => {
|
||||
const buildQuery =
|
||||
getChartBuildQueryRegistry().get(formData.viz_type) ??
|
||||
@@ -226,6 +227,7 @@ export const buildV1ChartDataPayload = ({
|
||||
result_type: resultType,
|
||||
},
|
||||
{
|
||||
ownState,
|
||||
hooks: {
|
||||
setDataMask,
|
||||
},
|
||||
@@ -266,6 +268,7 @@ export const exportChart = ({
|
||||
resultFormat = 'json',
|
||||
resultType = 'full',
|
||||
force = false,
|
||||
ownState = {},
|
||||
}) => {
|
||||
let url;
|
||||
let payload;
|
||||
@@ -284,6 +287,7 @@ export const exportChart = ({
|
||||
force,
|
||||
resultFormat,
|
||||
resultType,
|
||||
ownState,
|
||||
});
|
||||
}
|
||||
postForm(url, payload);
|
||||
|
||||
Reference in New Issue
Block a user