janus-idp / backstage-plugins

Plugins for Backstage
https://janus-idp.io
Apache License 2.0
152 stars 149 forks source link

When opening Catalog tab in Backstage UI, "component" field in 'Kind' dropdown disappears after selecting other fields #1153

Open y-first opened 9 months ago

y-first commented 9 months ago

Describe the bug

The Catalog tab's "Kind" dropdown menu has a default value of "component". When anything else in the "Kind" dropdown menu is selected, the "component" value disappears.

Expected Behavior

component value will not disappear after selecting other fields.

What are the steps to reproduce this bug?

  1. Deploy backstage with orchestrator plugin using Helm chart here on a cluster
  2. Sign in to Backstage application.
  3. Navigate to Catalog tab.
  4. Select different value than "component" in the "Kind" dropdown menu.

Versions of software used and environment

Showcase image used: quay.io/janus-idp/backstage-showcase:pr-896

pkliczewski commented 9 months ago

@christophe-f who can help with this bug?

rtaniwa commented 8 months ago

@y-first @pkliczewski I am a bit confused why this is in the plugin repo as a bug, as it really is the core backstage isn't it? That being said, unless I am misunderstanding the issue, I don't see this behaviour when using the janus showcase app. is this an issue with vanilla backstage (as if so, we should be opening up these issues in the upstream) or an issue with RHDH?

y-first commented 8 months ago

@rtaniwa @pkliczewski I just tested this using the rhdh-chart here, and saw that the issue reproduces: Screenshot from 2024-03-06 16-29-18

So this looks like some default value in backstage.

rtaniwa commented 8 months ago

@invincibleJai @PatAKnight might this be related to RBAC defaults?

invincibleJai commented 8 months ago

Thanks @y-first for reporting the issue

The Catalog tab's "Kind" dropdown menu has a default value of "component". When anything else in the "Kind" dropdown menu is selected, the "component" value disappears.

kind and type are connected, based on what the user selected in the kind , type gets updated and based on the selection can see the result on the list

so am a bit confused here when you said When anything else in the "Kind" dropdown menu is selected, the "component" value disappears. if you select something else then "component" disappears from the kind dropdown values itself or?

Deploy backstage with orchestrator plugin using Helm chart here on a cluster

is it happening with the orchestrator plugin enabled or otherwise as well?

masayag commented 7 months ago

so am a bit confused here when you said When anything else in the "Kind" dropdown menu is selected, the "component" value disappears. if you select something else then "component" disappears from the kind dropdown values itself or?

@invincibleJai it seems like an issue with updating the drop-down list elements in the catalog. In this image when the drop-down list is opened for the first time, there are no components in the catalog. However, the entry component is shown in that list with a lowercase. Selection_175

After picking another item from that list, this list is refreshed, and the component that was there disappears: Selection_176

That happens with janus-idp and RHDH images. Haven't checked with a vanilla backstage.

invincibleJai commented 7 months ago

@masayag thanks for explanation and this could be same behaviour with vanilla backstage , can you pls check and confirm?

ciiay commented 6 months ago

Hi @y-first I have tested the Backstage app from rhdh-chart and not able to reproduce the issue. Can you give it another try and see if the issue still exists? Here's the version information I tested with:

RHDH Version: 1.1.0
Backstage Version: 1.23.3
masayag commented 5 months ago

@invincibleJai the issue appears also in vanilla backstage. image

@ciiay this should reproduce when there aren't any components registered in RHDH.