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

Shared data view in Saved Objects view shows space avatars for spaces that don't have one #140901

Closed
valscion opened this issue Sep 19, 2022 · 8 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Saved Objects Management Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!

Comments

@valscion
Copy link

Kibana version: v8.4.1

Elasticsearch version: v8.4.1

Server OS version: Elastic Cloud hosted

Browser version: Mozilla Firefox v104.0.2 (also happens with Google Chrome)

Browser OS version: N/A

Original install method (e.g. download page, yum, from source, etc.): Elastic Cloud installation

Describe the bug: A shared data view "Saved Objects" view shows space avatars for spaces that don't have one, making the UI appear a bit broken.

Steps to reproduce:

  1. Create two spaces
  2. Add an avatar image for the first space while keeping the later space without one
  3. Share a data view between these two spaces
  4. Go to "Saved Objects" view

Expected behavior: The avatar image would only be displayed for the space that has an image

Screenshots (if relevant):

Cursor_and_Saved_Objects_-_Elastic

Errors in browser console (if relevant): N/A

Provide logs and/or server output (if relevant): N/A

Any additional context: It seems that the <div class="euiAvatar ...> elements erroneusly have the background-image set for those spaces which should not have one, as per this screenshot from Google Chrome element inspector view:

Cursor_and_DevTools_-_venuu-production_kb_eu-west-1_aws_found_io_9243_app_management_kibana_objects_and_Saved_Objects_-_Elastic

By the way, sharing a data view between different spaces is awesome!

@valscion valscion added the bug Fixes for quality problems that affect the customer experience label Sep 19, 2022
@botelastic botelastic bot added the needs-team Issues missing a team label label Sep 19, 2022
@wayneseymour wayneseymour added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc and removed needs-team Issues missing a team label labels Sep 19, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@pgayvallet
Copy link
Contributor

We have an image set for this space.

Obligatory question, Is that a bulbasaur?

@elastic/kibana-security it may have changed, so just to be sure: is the space list widget used by the SOM page under our or your ownership?

@pgayvallet
Copy link
Contributor

Unless I'm mistaken it still lives in the spaces plugin.

const LazySpaceList = useMemo(() => spacesApiUi.components.getSpaceList, [spacesApiUi]);

getSpaceList: wrapLazy(getSpaceListComponent),

@pgayvallet pgayvallet added the Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! label Sep 20, 2022
@valscion
Copy link
Author

valscion commented Sep 20, 2022

Obligatory question, Is that a bulbasaur?

Oh that's a derpy Venusaur (https://imgur.com/x4ECDiR), we use it as a mascot of our development team and our bot account we usually call "Venuusaur" (as our company is named Venuu) 😅

venuusaur

@thomheymann
Copy link
Contributor

This is a bug in EuiAvatar component which mutates its style prop: https://github.com/elastic/eui/blob/main/src/components/avatar/avatar.tsx#L144-L168

I have raised an issue here: elastic/eui#6249

@legrego
Copy link
Member

legrego commented Jan 10, 2023

It looks like elastic/eui#6249 has landed. @thomheymann, can you verify that this fix resolved our issue?

@valscion
Copy link
Author

I've also been meaning to upgrade our stack to latest version so I could verify if this has been fixed but I haven't yet had the time to do it

@thomheymann
Copy link
Contributor

This issue has been fixed by #141279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Saved Objects Management Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

No branches or pull requests

6 participants