Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.15] [ML] Hide ML embeddables from the Add panel flyout when ML fea…
…ture isn't available (#187639) (#187857) # Backport This will backport the following commits from `main` to `8.15`: - [[ML] Hide ML embeddables from the "Add panel" flyout when ML feature isn't available (#187639)](#187639) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dima Arnautov","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-09T12:21:20Z","message":"[ML] Hide ML embeddables from the \"Add panel\" flyout when ML feature isn't available (#187639)\n\n## Summary\r\n\r\nFixes #187007 \r\n\r\nHides ML embeddables from the \"Add panel\" flyout when\r\n1. ML feature isn't available for the user role \r\n2. ML is hidden in a current space \r\n\r\n\r\n### How to test \r\n1. Create a custom role with disabled ML privilege and assign it to a\r\nuser\r\n\r\n![image](https://github.com/elastic/kibana/assets/5236598/07fe2865-2ebe-448f-8e31-c36581b57b28)\r\n\r\n2. Remove ML feature visibility in a current space \r\n\r\n![image](https://github.com/elastic/kibana/assets/5236598/dc3f19fa-cb29-424a-a04d-677518bb45fa)\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"7997d6fe33cfea1d5e0897c8b95156fe3830b30a","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Team:ML","Feature:Embeddables","v8.15.0","v8.16.0"],"title":"[ML] Hide ML embeddables from the \"Add panel\" flyout when ML feature isn't available","number":187639,"url":"https://github.com/elastic/kibana/pull/187639","mergeCommit":{"message":"[ML] Hide ML embeddables from the \"Add panel\" flyout when ML feature isn't available (#187639)\n\n## Summary\r\n\r\nFixes #187007 \r\n\r\nHides ML embeddables from the \"Add panel\" flyout when\r\n1. ML feature isn't available for the user role \r\n2. ML is hidden in a current space \r\n\r\n\r\n### How to test \r\n1. Create a custom role with disabled ML privilege and assign it to a\r\nuser\r\n\r\n![image](https://github.com/elastic/kibana/assets/5236598/07fe2865-2ebe-448f-8e31-c36581b57b28)\r\n\r\n2. Remove ML feature visibility in a current space \r\n\r\n![image](https://github.com/elastic/kibana/assets/5236598/dc3f19fa-cb29-424a-a04d-677518bb45fa)\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"7997d6fe33cfea1d5e0897c8b95156fe3830b30a"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/187639","number":187639,"mergeCommit":{"message":"[ML] Hide ML embeddables from the \"Add panel\" flyout when ML feature isn't available (#187639)\n\n## Summary\r\n\r\nFixes #187007 \r\n\r\nHides ML embeddables from the \"Add panel\" flyout when\r\n1. ML feature isn't available for the user role \r\n2. ML is hidden in a current space \r\n\r\n\r\n### How to test \r\n1. Create a custom role with disabled ML privilege and assign it to a\r\nuser\r\n\r\n![image](https://github.com/elastic/kibana/assets/5236598/07fe2865-2ebe-448f-8e31-c36581b57b28)\r\n\r\n2. Remove ML feature visibility in a current space \r\n\r\n![image](https://github.com/elastic/kibana/assets/5236598/dc3f19fa-cb29-424a-a04d-677518bb45fa)\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"7997d6fe33cfea1d5e0897c8b95156fe3830b30a"}}]}] BACKPORT--> Co-authored-by: Dima Arnautov <[email protected]>
- Loading branch information