elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.81k stars 8.2k forks source link

Kibana shows `Current` space for multiple spaces with same name and different identifiers. #192811

Open arvindersingh-qasource opened 1 month ago

arvindersingh-qasource commented 1 month ago

Describe the bug Kibana shows Current space for multiple spaces with same name and different identifiers.

Kibana/Elasticsearch Stack version

VERSION: 8.16.0
BUILD: 78245
COMMIT: b5dcc0db8dc72e25fcda6894ed6f24b6959b15b3

Preconditions

  1. Kibana 8.16 must be available.
  2. Create multiple spaces with same name and different identifiers.

Steps

  1. Navigate to Management -> Stack Management
  2. From the list of Spaces with same name and different identifiers, Switch to any of the listed space.
  3. Observe that after switching Kibana shows Current space for multiple spaces with same name and different identifiers.

Expected Result

Screenshot Image

elasticmachine commented 1 month ago

Pinging @elastic/security-solution (Team: SecuritySolution)

arvindersingh-qasource commented 1 month ago

@muskangulati-qasource Please review this ticket.

Thanks.

muskangulati-qasource commented 1 month ago

Reviewed and assigned to @pborgonovi & @vgomez-el

elasticmachine commented 1 month ago

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

legrego commented 1 month ago

Ping @tsullivan @eokoneyo @kevinsweet

tsullivan commented 1 month ago

Whoops, seems related to #188261.

tsullivan commented 1 month ago

@pborgonovi & @vgomez-el I can take assignment of this one, if you prefer

pborgonovi commented 1 month ago

Hi @tsullivan Thank you for reviewing this. We would appreciate that!

kevinsweet commented 18 hours ago

@tsullivan is this one possible to fix for 8.16? I'm imagining a bunch of users in the spaces menu as it's required to navigate there to try the new nav -- which could lead to a lot of new space creation and this bug / SDH. thanks!

tsullivan commented 16 hours ago

To be clear, this issue popped up again with the note:

I created a new space, it's not the current, and I can't switch from the table. When I hover, it's seen as the 'current' even though you can see blue badge showing actual current. Image

I can reproduce the bug, and it is due to the presence of remaining logic that compares spaces by name, rather than ID. This issue should have been fixed along with the original fix for this bug.