[8.7] [ML] Fix module setup apply to all spaces (#151270) (#151300)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[ML] Fix module setup apply to all spaces
(#151270)](https://github.com/elastic/kibana/pull/151270)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"James
Gowdy","email":"jgowdy@elastic.co"},"sourceCommit":{"committedDate":"2023-02-15T13:51:47Z","message":"[ML]
Fix module setup apply to all spaces (#151270)\n\nThe shared module
setup function is not passing across the\r\n`applyToAllSpaces`
parameter.\r\nThis only affects plugins calling `setup` via the server
side shared\r\nfunction, not the ML plugin itself or any plugins calling
the
kibana\r\nendpoint.","sha":"c6dc97a80a8176fdad81080c71a2104e2c9995fc","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix",":ml","Feature:Anomaly
Detection","v8.7.0","v8.8.0"],"number":151270,"url":"https://github.com/elastic/kibana/pull/151270","mergeCommit":{"message":"[ML]
Fix module setup apply to all spaces (#151270)\n\nThe shared module
setup function is not passing across the\r\n`applyToAllSpaces`
parameter.\r\nThis only affects plugins calling `setup` via the server
side shared\r\nfunction, not the ML plugin itself or any plugins calling
the
kibana\r\nendpoint.","sha":"c6dc97a80a8176fdad81080c71a2104e2c9995fc"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/151270","number":151270,"mergeCommit":{"message":"[ML]
Fix module setup apply to all spaces (#151270)\n\nThe shared module
setup function is not passing across the\r\n`applyToAllSpaces`
parameter.\r\nThis only affects plugins calling `setup` via the server
side shared\r\nfunction, not the ML plugin itself or any plugins calling
the
kibana\r\nendpoint.","sha":"c6dc97a80a8176fdad81080c71a2104e2c9995fc"}}]}]
BACKPORT-->

Co-authored-by: James Gowdy <jgowdy@elastic.co>
This commit is contained in:
Kibana Machine 2023-02-15 09:59:38 -05:00 committed by GitHub
parent 79de0a7926
commit 7f597662ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,8 @@ export function getModulesProvider(
payload.end,
payload.jobOverrides,
payload.datafeedOverrides,
payload.estimateModelMemory
payload.estimateModelMemory,
payload.applyToAllSpaces
);
});
},