Skip to content

Fix Registry Viewer tags display #1289

@kim-tsao

Description

@kim-tsao

Which area this feature is related to?

/kind bug

Bug Summary

Describe the bug:

Separated out from issue #1064 as an independent bug.

  • The tags are pulled from all devfile versions of a specific runtime which is incorrect. It should only display the tags for a specific runtime version.
  • Similarly, the tags shown on the registry viewer tiles represent tags from all runtime versions when it should only display the tags for the default devfile. This means if the default devfile is not deprecated, then the deprecated tag should not show up. Users would only see it if they click on the tile and toggle between versions.

To Reproduce:

We can't use the community registry viewer because tags are common across all stack runtime versions.

To reproduce:

  1. Clone the https://github.com/devfile/registry-support repo
  2. (Optional) Add the Deprecated tag to one of the go stack versions
  3. Build the registry by following the instructions: https://github.com/devfile/registry-support/tree/main#build
  4. Deploy to a cluster and bring up the local viewer.

For the Go stack time, note that it displays all the tags from all stack versions:

image

Click on the tile, and note that when you switch runtime versions, the tags do not change

Expected behavior

Tags should only reflect the selected stack version

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable

Additional context

Any workaround?

Suggestion on how to fix the bug

Metadata

Metadata

Assignees

Labels

area/registryDevfile registry for stacks and infrastructuredemoIssue or PR candidate for a demo at the end of the Sprintkind/bugSomething isn't working

Type

No type

Projects

Status

Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions