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

[Spaces Mgmt] Ensure space ID is used for comparison logic #196930

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

tsullivan
Copy link
Member

@tsullivan tsullivan commented Oct 18, 2024

Closes #192811

Summary

When creating a space, if it's not the current, you should be able to use the switch icon from the table. This PR fixes a bug that disabled the switch icon for spaces that aren't the current, if they have the same name as the current.

Checklist

Delete any items that are not applicable to this PR.

@tsullivan tsullivan marked this pull request as ready for review October 18, 2024 18:03
@tsullivan tsullivan requested a review from a team as a code owner October 18, 2024 18:03
@tsullivan tsullivan added release_note:skip Skip the PR/issue when compiling release notes v8.16.0 backport:version Backport to applied version labels v8.17.0 labels Oct 18, 2024
Copy link
Contributor

@kc13greiner kc13greiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Screenshot 2024-10-21 at 1 34 12 PM

@tsullivan tsullivan enabled auto-merge (squash) October 21, 2024 18:57
@tsullivan tsullivan merged commit a3d216f into elastic:main Oct 21, 2024
22 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.x

https://github.com/elastic/kibana/actions/runs/11447894624

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
spaces 256.4KB 256.4KB -14.0B

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 21, 2024
…96930)

Closes elastic#192811

## Summary

When creating a space, if it's not the current, you should be able to
use the switch icon from the table. This PR fixes a bug that disabled
the switch icon for spaces that aren't the current, if they have the
same name as the current.

### Checklist

Delete any items that are not applicable to this PR.

- [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

(cherry picked from commit a3d216f)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 21, 2024
…96930)

Closes elastic#192811

## Summary

When creating a space, if it's not the current, you should be able to
use the switch icon from the table. This PR fixes a bug that disabled
the switch icon for spaces that aren't the current, if they have the
same name as the current.

### Checklist

Delete any items that are not applicable to this PR.

- [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

(cherry picked from commit a3d216f)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.16
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 21, 2024
…96930) (#197135)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Spaces Mgmt] Ensure space ID is used for comparison logic
(#196930)](#196930)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tim
Sullivan","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-21T20:15:13Z","message":"[Spaces
Mgmt] Ensure space ID is used for comparison logic (#196930)\n\nCloses
https://github.com/elastic/kibana/issues/192811\r\n\r\n##
Summary\r\n\r\nWhen creating a space, if it's not the current, you
should be able to\r\nuse the switch icon from the table. This PR fixes a
bug that disabled\r\nthe switch icon for spaces that aren't the current,
if they have the\r\nsame name as the current.\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\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":"a3d216f496d319ab41855711e88c4b9c80a57152","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","v8.16.0","backport:version","v8.17.0"],"title":"[Spaces
Mgmt] Ensure space ID is used for comparison
logic","number":196930,"url":"https://github.com/elastic/kibana/pull/196930","mergeCommit":{"message":"[Spaces
Mgmt] Ensure space ID is used for comparison logic (#196930)\n\nCloses
https://github.com/elastic/kibana/issues/192811\r\n\r\n##
Summary\r\n\r\nWhen creating a space, if it's not the current, you
should be able to\r\nuse the switch icon from the table. This PR fixes a
bug that disabled\r\nthe switch icon for spaces that aren't the current,
if they have the\r\nsame name as the current.\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\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":"a3d216f496d319ab41855711e88c4b9c80a57152"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196930","number":196930,"mergeCommit":{"message":"[Spaces
Mgmt] Ensure space ID is used for comparison logic (#196930)\n\nCloses
https://github.com/elastic/kibana/issues/192811\r\n\r\n##
Summary\r\n\r\nWhen creating a space, if it's not the current, you
should be able to\r\nuse the switch icon from the table. This PR fixes a
bug that disabled\r\nthe switch icon for spaces that aren't the current,
if they have the\r\nsame name as the current.\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\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":"a3d216f496d319ab41855711e88c4b9c80a57152"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Tim Sullivan <[email protected]>
kibanamachine added a commit that referenced this pull request Oct 21, 2024
…6930) (#197136)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Spaces Mgmt] Ensure space ID is used for comparison logic
(#196930)](#196930)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tim
Sullivan","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-21T20:15:13Z","message":"[Spaces
Mgmt] Ensure space ID is used for comparison logic (#196930)\n\nCloses
https://github.com/elastic/kibana/issues/192811\r\n\r\n##
Summary\r\n\r\nWhen creating a space, if it's not the current, you
should be able to\r\nuse the switch icon from the table. This PR fixes a
bug that disabled\r\nthe switch icon for spaces that aren't the current,
if they have the\r\nsame name as the current.\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\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":"a3d216f496d319ab41855711e88c4b9c80a57152","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","v8.16.0","backport:version","v8.17.0"],"title":"[Spaces
Mgmt] Ensure space ID is used for comparison
logic","number":196930,"url":"https://github.com/elastic/kibana/pull/196930","mergeCommit":{"message":"[Spaces
Mgmt] Ensure space ID is used for comparison logic (#196930)\n\nCloses
https://github.com/elastic/kibana/issues/192811\r\n\r\n##
Summary\r\n\r\nWhen creating a space, if it's not the current, you
should be able to\r\nuse the switch icon from the table. This PR fixes a
bug that disabled\r\nthe switch icon for spaces that aren't the current,
if they have the\r\nsame name as the current.\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\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":"a3d216f496d319ab41855711e88c4b9c80a57152"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196930","number":196930,"mergeCommit":{"message":"[Spaces
Mgmt] Ensure space ID is used for comparison logic (#196930)\n\nCloses
https://github.com/elastic/kibana/issues/192811\r\n\r\n##
Summary\r\n\r\nWhen creating a space, if it's not the current, you
should be able to\r\nuse the switch icon from the table. This PR fixes a
bug that disabled\r\nthe switch icon for spaces that aren't the current,
if they have the\r\nsame name as the current.\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\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":"a3d216f496d319ab41855711e88c4b9c80a57152"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Tim Sullivan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes v8.16.0 v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kibana shows Current space for multiple spaces with same name and different identifiers.
4 participants