mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
# Backport This will backport the following commits from `main` to `8.11`: - [[ES|QL] Make the dashboard SO lighter (#172130)](https://github.com/elastic/kibana/pull/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":"efstratia.kalafateli@elastic.co"},"sourceCommit":{"committedDate":"2023-11-29T10:55:21Z","message":"[ES|QL] Make the dashboard SO lighter (#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 (#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 (#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-->
This commit is contained in:
parent
5748e277be
commit
ddd3e8dea7
2 changed files with 2 additions and 0 deletions
|
@ -401,6 +401,7 @@ describe('Textbased Data Source', () => {
|
|||
);
|
||||
expect(suggestions[0].state).toEqual({
|
||||
...state,
|
||||
initialContext: undefined,
|
||||
fieldList: textBasedQueryColumns,
|
||||
layers: {
|
||||
newid: {
|
||||
|
|
|
@ -125,6 +125,7 @@ export function getTextBasedDatasource({
|
|||
const query = context.query;
|
||||
const updatedState = {
|
||||
...state,
|
||||
initialContext: undefined,
|
||||
fieldList: textBasedQueryColumns,
|
||||
layers: {
|
||||
...state.layers,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue