Skip to content

Commit

Permalink
[8.11] [ES|QL] Make the dashboard SO lighter (elastic#172130) (elasti…
Browse files Browse the repository at this point in the history
…c#172145)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[ES|QL] Make the dashboard SO lighter
(elastic#172130)](elastic#172130)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-29T10:55:21Z","message":"[ES|QL]
Make the dashboard SO lighter (elastic#172130)\n\n## Summary\r\n\r\nThis PR
makes the dashboard SO lighter by removing the initialContext\r\nfrom
the state. It is not needed after the navigation from Discover
to\r\nDashboard and can create SO size problems as it contains a lot
of\r\ninformation for the
transition.","sha":"cb3fd2132f47d43e4d46b8f5b085195cb8dda806","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Visualizations","backport:prev-minor","Feature:ES|QL","v8.12.0","v8.11.2"],"number":172130,"url":"https://github.com/elastic/kibana/pull/172130","mergeCommit":{"message":"[ES|QL]
Make the dashboard SO lighter (elastic#172130)\n\n## Summary\r\n\r\nThis PR
makes the dashboard SO lighter by removing the initialContext\r\nfrom
the state. It is not needed after the navigation from Discover
to\r\nDashboard and can create SO size problems as it contains a lot
of\r\ninformation for the
transition.","sha":"cb3fd2132f47d43e4d46b8f5b085195cb8dda806"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172130","number":172130,"mergeCommit":{"message":"[ES|QL]
Make the dashboard SO lighter (elastic#172130)\n\n## Summary\r\n\r\nThis PR
makes the dashboard SO lighter by removing the initialContext\r\nfrom
the state. It is not needed after the navigation from Discover
to\r\nDashboard and can create SO size problems as it contains a lot
of\r\ninformation for the
transition.","sha":"cb3fd2132f47d43e4d46b8f5b085195cb8dda806"}},{"branch":"8.11","label":"v8.11.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
  • Loading branch information
stratoula authored Nov 29, 2023
1 parent 5748e27 commit ddd3e8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ describe('Textbased Data Source', () => {
);
expect(suggestions[0].state).toEqual({
...state,
initialContext: undefined,
fieldList: textBasedQueryColumns,
layers: {
newid: {
Expand Down
Original file line number Diff line number Diff line change
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 ddd3e8d

Please sign in to comment.