Skip to content

ROX-33429: simplify Full view entity type filter#19399

Open
sachaudh wants to merge 1 commit intomasterfrom
ROX-33429
Open

ROX-33429: simplify Full view entity type filter#19399
sachaudh wants to merge 1 commit intomasterfrom
ROX-33429

Conversation

@sachaudh
Copy link
Contributor

@sachaudh sachaudh commented Mar 12, 2026

Description

Jira: ROX-33429

Follow-up from PR #19223 review feedback.

The getFilteredWorkflowViewSearchFilter function returned all 5 EntityType enum values for the "Full view" case. Since listing every value is equivalent to no filter, this replaces it with {} (empty object). This is simpler, avoids unnecessary query complexity, and prevents silent exclusion of future entity types added to the proto.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

No tests added -- one-line logic change with no new behavior to test.

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

  • Manual verification

@openshift-ci
Copy link

openshift-ci bot commented Mar 12, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

The explicit 5-value Entity Type array listed all proto enum values,
making it functionally identical to omitting the filter. Returning {}
is simpler, avoids unnecessary query complexity, and prevents silent
exclusion of future entity types added to the proto.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
@sachaudh sachaudh marked this pull request as ready for review March 12, 2026 16:39
@sachaudh sachaudh requested a review from a team as a code owner March 12, 2026 16:39
@rhacs-bot
Copy link
Contributor

rhacs-bot commented Mar 12, 2026

Images are ready for the commit at af00682.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-310-gaf00682f14.

@codecov
Copy link

codecov bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.68%. Comparing base (52688db) to head (af00682).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19399   +/-   ##
=======================================
  Coverage   49.68%   49.68%           
=======================================
  Files        2700     2700           
  Lines      203278   203278           
=======================================
+ Hits       100999   101004    +5     
+ Misses      94753    94749    -4     
+ Partials     7526     7525    -1     
Flag Coverage Δ
go-unit-tests 49.68% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@openshift-ci
Copy link

openshift-ci bot commented Mar 12, 2026

@sachaudh: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/gke-nongroovy-e2e-tests af00682 link true /test gke-nongroovy-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants