mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[ES|QL] Make the dashboard SO lighter (#172130)
## Summary This PR makes the dashboard SO lighter by removing the initialContext from the state. It is not needed after the navigation from Discover to Dashboard and can create SO size problems as it contains a lot of information for the transition.
This commit is contained in:
parent
2ff6a7cfd4
commit
cb3fd2132f
2 changed files with 3 additions and 0 deletions
|
@ -401,6 +401,7 @@ describe('Textbased Data Source', () => {
|
|||
);
|
||||
expect(suggestions[0].state).toEqual({
|
||||
...state,
|
||||
initialContext: undefined,
|
||||
fieldList: textBasedQueryColumns,
|
||||
indexPatternRefs: [
|
||||
{
|
||||
|
@ -552,6 +553,7 @@ describe('Textbased Data Source', () => {
|
|||
);
|
||||
expect(suggestions[0].state).toEqual({
|
||||
...state,
|
||||
initialContext: undefined,
|
||||
fieldList: textBasedQueryColumns,
|
||||
indexPatternRefs: [
|
||||
{
|
||||
|
|
|
@ -145,6 +145,7 @@ export function getTextBasedDatasource({
|
|||
const query = context.query;
|
||||
const updatedState = {
|
||||
...state,
|
||||
initialContext: undefined,
|
||||
fieldList: textBasedQueryColumns,
|
||||
...(context.dataViewSpec.id
|
||||
? {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue