Skip to content

Commit

Permalink
[ES|QL] Make the dashboard SO lighter (elastic#172130)
Browse files Browse the repository at this point in the history
## 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.

(cherry picked from commit cb3fd21)

# Conflicts:
#	x-pack/plugins/lens/public/datasources/text_based/text_based_languages.test.ts
  • Loading branch information
stratoula committed Nov 29, 2023
1 parent 5748e27 commit 5a41dd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -401,6 +401,7 @@ describe('Textbased Data Source', () => {
);
expect(suggestions[0].state).toEqual({
...state,
initialContext: undefined,
fieldList: textBasedQueryColumns,
layers: {
newid: {
Expand Down
Expand Up @@ -125,6 +125,7 @@ export function getTextBasedDatasource({
const query = context.query;
const updatedState = {
...state,
initialContext: undefined,
fieldList: textBasedQueryColumns,
layers: {
...state.layers,
Expand Down

0 comments on commit 5a41dd8

Please sign in to comment.