Skip to content
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

Hide create spaces when limit reached #159028

Closed
thomheymann opened this issue Jun 5, 2023 · 1 comment · Fixed by #159102
Closed

Hide create spaces when limit reached #159028

thomheymann opened this issue Jun 5, 2023 · 1 comment · Fixed by #159102
Assignees
Labels
enhancement New value added to drive a business result Feature:Security/Spaces Platform Security - Spaces feature Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!

Comments

@thomheymann
Copy link
Contributor

thomheymann commented Jun 5, 2023

Hide the create spaces button on the spaces management screen when the configured limit has exceeded the number of spaces.

This should work for any configured maximum, even the default 1000.

@thomheymann thomheymann added the Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! label Jun 5, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@thomheymann thomheymann self-assigned this Jun 5, 2023
@legrego legrego added enhancement New value added to drive a business result Feature:Security/Spaces Platform Security - Spaces feature labels Jun 5, 2023
@thomheymann thomheymann changed the title Disable create spaces when limit reached Hide create spaces when limit reached Jun 6, 2023
thomheymann added a commit that referenced this issue Jun 7, 2023
Resolves #159028 
Resolves #159047

## Summary

Hide create spaces button when limit is reached. 

## Screenshot


![Spaces-Management-Disabled](https://github.com/elastic/kibana/assets/190132/587dc47b-0377-4f72-8faa-7e6652cdab96)

## Testing

1. Set the maximum number of allowed spaces to 1

```yml
xpack.spaces.maxSpaces: 1
```

2. Verify that the create spaces button is hidden and that a callout is
displayed

---------

Co-authored-by: kibanamachine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Security/Spaces Platform Security - Spaces feature Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants