Skip to content

Conversation

@mtodor
Copy link
Collaborator

@mtodor mtodor commented Feb 9, 2026

Description

This PR is adding filtering by cluster name.

It first fetches the cluster to verify that the name exists and then uses the actual cluster ID in the query for a backend call. In that way, we can properly return an error if the cluster name does not exist.

Validation

  • e2e test
  • unit tests (new added)
  • manual testing

@mtodor mtodor requested a review from janisz as a code owner February 9, 2026 16:03
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.22%. Comparing base (a950cd5) to head (4ff363f).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
+ Coverage   77.36%   78.22%   +0.86%     
==========================================
  Files          26       27       +1     
  Lines        1162     1208      +46     
==========================================
+ Hits          899      945      +46     
  Misses        223      223              
  Partials       40       40              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mtodor mtodor force-pushed the mtodor/ROX-32852-filter-by-cluster-name branch from 4ff363f to 3074da2 Compare February 9, 2026 17:37
@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.22%. Comparing base (a950cd5) to head (f4bf6dd).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
+ Coverage   77.36%   78.22%   +0.86%     
==========================================
  Files          26       27       +1     
  Lines        1162     1208      +46     
==========================================
+ Hits          899      945      +46     
  Misses        223      223              
  Partials       40       40              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mtodor mtodor force-pushed the mtodor/ROX-32852-filter-by-cluster-name branch from 3074da2 to 75abe25 Compare February 10, 2026 11:43
@mtodor mtodor force-pushed the mtodor/ROX-32852-filter-by-cluster-name branch from 75abe25 to f4bf6dd Compare February 10, 2026 12:10
client := v1.NewClustersServiceClient(conn)

// Use query to filter by cluster name server-side
query := fmt.Sprintf("Cluster:%q", clusterName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it full or partial match? Should we do a check before returning the [0] element if name really matches?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants