-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Breaking change] Prevent disabling the spaces plugin #82467
Comments
Pinging @elastic/kibana-security (Team:Security) |
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
Hi @legrego! I'm going to remove the |
Hey folks, I'm noticing a number of 👎 reactions to this issue, and I'd love to get a better understanding of your sentiment. Is anyone willing to share their thoughts in more detail? I'd love to know:
|
Hey !
I'm running on Kibana 7.12.1 for now
I've wrote a similar plugin, so the spaces plugin is not necessary in my context. In what is different from the spaces plugin ?
Projects' concept is similar but different in the way to manage it. Why do you want remove the ability to disabled it ? Is there technical issues if the plugin is disabled in Kibana 8 ? |
@pchakour, thanks for taking the time to share your concerns. This doesn't help you at all, but some of the differences you outlined are enhancements that we also have planned for Kibana, although the timeline for them isn't clear yet.
Are you leveraging the same hooks/core APIs as the Spaces plugin to achieve saved object isolation?
We have a few of reasons for wanting to remove this ability:
Removing the ability to disable spaces cuts the amount of test infrastructure in half, which is huge. We spend a significant amount of time writing these tests, and they account for quite a bit of our CI/build time. All of the above reasons are exacerbated by the fact that users can enable/disable the spaces plugin at will by changing For what it's worth, this is part of a larger initiative to create a more stable runtime for Kibana, by reducing the number of plugin combinations that can be configured at runtime: #89584 |
Thanks for the answer, it's very clear 👍 I get it the concern about the complexity to maintain dependencies between plugins. It's obvious that the complixity and the testing combination will increase with the time. Hope somedays all spaces plugin features will fit my needs :-)
Actually, I wrote my own wrapper for saved objects client. The only thing I use from the spaces plugin source code is the function to extract the space name from the URL. I checked the code about In order to avoid |
Yes, you can register your own Capabilities Switcher to turn these off. Completely untested, but something like the following should do the trick: // inside of your plugin's `setup` lifecycle method
core.capabilities.registerSwitcher(() => {
return {
spaces: {
manage: false,
},
catalogue: {
spaces: false,
},
management: {
kibana: {
spaces: false,
},
};
}); |
Ok I will try it later ! Thank you so much for your help :-) |
Change description
We would like to remove the ability to disable the Spaces plugin in 8.0 (
xpack.spaces.enabled
)Which release will ship the breaking change?
8.0
Describe the change. How will it manifest to users?
Users who have explicitly disabled Spaces via
xpack.spaces.enabled
will no longer be able to do so.How many users will be affected?
Telemetry indicates that this will impact a very small number of installations. Most administrators run with Spaces enabled, which is the default behavior.
What can users do to address the change manually?
N/A
How could we make migration easier with the Upgrade Assistant?
Indicate that they must enable the Spaces plugin in order to upgrade to
8.0
Are there any edge cases?
No.
Test Data
Testing with spaces disabled:
Cross links
#89584
The text was updated successfully, but these errors were encountered: