ModifyQuery: Improve typing for modifyQuery and query hints (#52326)

* ModifyQuery: Improve typing

* Elasticsearch: Added `modifyQuery` method to add filters in Explore (#52313)

* fixed elasticsearch `QueryFixAction` type

Co-authored-by: Sven Grossmann <Svennergr@gmail.com>
This commit is contained in:
Ivana Huckova
2022-07-18 14:13:34 +02:00
committed by GitHub
parent b2736ac1fe
commit 8ff152f98f
12 changed files with 68 additions and 44 deletions

View File

@@ -150,11 +150,11 @@ export class Explore extends React.PureComponent<Props, ExploreState> {
};
onClickFilterLabel = (key: string, value: string) => {
this.onModifyQueries({ type: 'ADD_FILTER', key, value });
this.onModifyQueries({ type: 'ADD_FILTER', options: { key, value } });
};
onClickFilterOutLabel = (key: string, value: string) => {
this.onModifyQueries({ type: 'ADD_FILTER_OUT', key, value });
this.onModifyQueries({ type: 'ADD_FILTER_OUT', options: { key, value } });
};
onClickAddQueryRowButton = () => {