forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Spaces] Inited spaces API for serverless (elastic#184418)
## Summary Enabled spaces API for serverless in preparation for custom spaces and custom roles. The ability to create or delete spaces is still guarded by the `xpack.spaces.maxSpaces: 1` setting. ### Hot to test ``` # should update default space name PUT kbn:/api/spaces/space/default { "id": "default", "name": "Default name" } # should fail to create space because maxSpaces is set to 1 POST kbn:/api/spaces/space { "name": "my-space", "id": "my-space", "description": "a description", "color": "#5c5959", "disabledFeatures": ["canvas"] } # should fail to delete reserved space DELETE kbn:/api/spaces/space/default # should return empty list POST kbn:/api/spaces/_get_shareable_references { "objects": [{"type": "a", "id": "a"}] } ``` ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Release note Enabled spaces API for serverless in preparation for custom spaces and custom roles. The ability to create or delete spaces is still guarded by the `xpack.spaces.maxSpaces` setting. --------- Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
1 parent
99d5ef0
commit 9bb0018
Showing
2 changed files
with
77 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters