Skip to content

Registries counter in the sidebar is wrong after cluster is restarted #16747

@xingzhang-suse

Description

@xingzhang-suse

Setup

  • Rancher version: Unknown (flavio reported the issue in neuvector/security-ui-exts without Rancher version.)
  • Rancher UI Extensions: SOMBScanner UI extension 0.5.0
  • Browser type & version:

Describe the bug
The number in the sidebar for resource page records is not showing correct.

To Reproduce

  1. Deploy SBOMscanner backend + UI extension on a single node cluster (I'm using minikube)
  2. Add Registry with manual scanning
  3. In the left sidebar, the number next to "Registries Configuration" is 1
  4. Restart the cluster
  5. In the left sidebar, the number next to "Registries Configuration" is 0 (instead of 1)
  6. Add a new Registry, the number next to "Registries Configuration" is 1 (instead of 2)
  7. Remove a Registry, the number next to "Registries Configuration" is 0 (instead of 1)

I've tried to force a reload of the page several times, it didn't help. I've even done that ~10 minutes after the cluster was restarted. Still no result.

Result
The menu always shows wrong number after step 4

Expected Result
It should always show correct number according to the realtime record count in the table

Screenshots
Image

Additional context
If there is any questions regarding reproduction, please contact flavio

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions