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:
simcha90
2021-04-15 17:43:29 +03:00
committed by GitHub
parent 68e11cd47f
commit 8ef572a412
78 changed files with 1536 additions and 958 deletions

View File

@@ -70,7 +70,8 @@ const propTypes = {
sliceCanEdit: PropTypes.bool.isRequired,
addSuccessToast: PropTypes.func.isRequired,
addDangerToast: PropTypes.func.isRequired,
ownCurrentState: PropTypes.object,
ownState: PropTypes.object,
filterState: PropTypes.object,
};
const defaultProps = {
@@ -262,7 +263,8 @@ export default class Chart extends React.Component {
sliceCanEdit,
addSuccessToast,
addDangerToast,
ownCurrentState,
ownState,
filterState,
handleToggleFullSize,
isFullSize,
} = this.props;
@@ -371,7 +373,8 @@ export default class Chart extends React.Component {
dashboardId={dashboardId}
initialValues={initialValues}
formData={formData}
ownCurrentState={ownCurrentState}
ownState={ownState}
filterState={filterState}
queriesResponse={chart.queriesResponse}
timeout={timeout}
triggerQuery={chart.triggerQuery}