Skip to content

Filter in Project/Namespace is not working correctly if there are projects with the same name #15336

@rak-phillip

Description

@rak-phillip

Setup

  • Rancher version: 2.12.0
  • Rancher UI Extensions: NA
  • Browser type & version: Firefox/Chrome

Describe the bug

Filter field in Rancher 2.12 doesn't work as expected with projects of the same name.

To Reproduce

  • Go to Projects/Namespaces
  • Create 3 projects with the same name e.g. "samename"
  • Create one namespace in the first 2 projects, e.g. test1 in the first and test2 in the second project
  • Leave the 3rd without namespace
  1. Now select Group by Project and filter for "samename"
    Only one project will be shown. The two others are invisible.

  2. Now select Flat List and filter for "samename"
    Only the projects with a namespace in it are shown. The one without a namespace is invisible.

Result

Filtering in Rancher 2.12 doesn't work as expected

Expected Result

Filtering in Rancher 2.12 works as expected

Screenshots

Additional context

SURE-10659

See notes in associated Jira ticket.

The results are technically correct based on the data available. We might need to adjust how we display projects and namespaces to ensure that there is more certainty surrounding the search results. I think this issue warrants some more in-depth review before we set out to fix.

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions