Skip to content

Extensions "developer load" loads two extension cards when the version has a suffix #15858

@mantis-toboggan-md

Description

@mantis-toboggan-md

Setup

  • Rancher version: v2.13-ed11a0ddaa64d15f8dc2d219be625d37daa9ee06-head
  • Rancher UI Extensions: none but the one I am developer-loading in this issue
  • Browser type & version:

Describe the bug
When extensions with a (hyphenated) suffix in the version, eg virtual-clusters-1.0.0-rc1 no cards are displayed in the installed tab and the count of installed extensions is incremented by 2

In 2.12.x, two cards are rendered.

To Reproduce

  1. Pull the virtual-clusters-ui extension and, if the package version is no longer an -rc* at time of testing, change the package version to include an -rc suffix
  2. Run yarn && yarn build-pkg virtual-clusters && yarn serve-pkgs
  3. Navigate to the extensions page in your Rancher UI and use the three-dot menu to select 'developer load' (you will need to enable extension developer features in user prefs if you haven't done so previously)
  4. Paste the url of the locally-served virtual clusters extension into the modal and check the box to persist the extension. Click 'load'

Result
No cards are added to the installed tab but the tab title indicates there are two new extensions added

On 2.12.x, two cards are added

Expected Result
One card should be added to the installed tab and the count of installed extensions should increment by 1

Screenshots
2.12.3:
Image

v2.13-ed11a0ddaa64d15f8dc2d219be625d37daa9ee06-head:
Image

Additional context

Metadata

Metadata

Assignees

Labels

QA/dev-automationIssues that engineers have written automation around so QA doesn't have look at thisarea/extensionskind/bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions