mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
## Summary Added solution property for the space. - Forbidden in serverless. - To facilitate iterative development made the property as optional in stateful offering until all of the workstreams are complete. ### How to test API changes ``` # Should create space POST kbn:/api/spaces/space { "name": "space without solution", "id": "my-space-solution-1", "description": "a description", "color": "#5c5959", "disabledFeatures": [] } # Should fail with 400 POST kbn:/api/spaces/space { "name": "space with solution", "id": "my-space-solution-2", "description": "a description", "color": "#5c5959", "solution": "some_solution", "disabledFeatures": [] } # Should fail with 400 POST kbn:/api/spaces/space { "name": "space with solution", "id": "my-space-solution-2", "description": "a description", "color": "#5c5959", "solution": null, "disabledFeatures": [] } # Should create space POST kbn:/api/spaces/space { "name": "space with solution", "id": "my-space-solution-2", "description": "a description", "color": "#5c5959", "solution": "search", "disabledFeatures": [] } # Should get 'my-space-solution-1' space without solution field GET kbn:/api/spaces/space/my-space-solution-1 # Should get 'my-space-solution-2' space with solution field GET kbn:/api/spaces/space/my-space-solution-2 # Should fail to update with 400 PUT kbn:/api/spaces/space/my-space-solution-1 { "id": "my-space-solution-1", "name": "my-space-solution-1 name", "solution": "some_solution" } # Should fail to update with 400 PUT kbn:/api/spaces/space/my-space-solution-1 { "id": "my-space-solution-1", "name": "my-space-solution-1 name", "solution": null } # Should update 'my-space-solution-1' PUT kbn:/api/spaces/space/my-space-solution-1 { "id": "my-space-solution-1", "name": "my-space-solution-1 name", "solution": "security" } # Should get 'my-space-solution-1' space wit solution field set to 'security' GET kbn:/api/spaces/space/my-space-solution-1 # Should return list where # 1. 'my-space-solution-1' has solution 'security' # 2. 'my-space-solution-2' has solution 'search' # 3. Other spaces don't have solution field present GET kbn:/api/spaces/space ``` ### Checklist - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [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 - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed ([Security and Spaces config](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6076), [Spaces only config](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6075)) ### 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) __Fixes: https://github.com/elastic/kibana/issues/183559__ ## Release note Added optional solution property for Space in a stateful offering. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
---|---|---|
.. | ||
api | ||
apm | ||
canvas | ||
concepts | ||
dev-tools | ||
developer | ||
development/plugins/expressions/public | ||
discover | ||
fleet | ||
getting-started | ||
management | ||
maps | ||
migration | ||
observability | ||
osquery | ||
playground | ||
settings | ||
setup | ||
siem | ||
spaces | ||
user | ||
accessibility.asciidoc | ||
action-type-template.asciidoc | ||
CHANGELOG.asciidoc | ||
gs-index.asciidoc | ||
index.asciidoc | ||
index.x.asciidoc | ||
landing-page.asciidoc | ||
limitations.asciidoc | ||
migration.asciidoc | ||
redirects.asciidoc | ||
rule-type-template.asciidoc | ||
template.asciidoc |