ROX-32569: Align layer type filter with backend search term#18422
ROX-32569: Align layer type filter with backend search term#18422
Conversation
The Layer type filter was sending "Component Layer Type" with enum values (APPLICATION/BASE_IMAGE), but the backend expects "Component From Base Image" with boolean values (true/false). This mismatch caused the filter to silently fail when filtering components in Workload CVEs. Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
|
Skipping CI for Draft Pull Request. |
|
Images are ready for the commit at 598fe99. To use with deploy scripts, first |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #18422 +/- ##
==========================================
- Coverage 48.89% 48.89% -0.01%
==========================================
Files 2629 2629
Lines 197912 197912
==========================================
- Hits 96775 96764 -11
- Misses 93756 93765 +9
- Partials 7381 7383 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
f41dd16 to
598fe99
Compare
|
The layer type filter test was using |
|
@sachaudh: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Description
Fixes ROX-32569
The Layer type filter was silently failing because:
Component Layer TypewithAPPLICATION/BASE_IMAGEComponent From Base Imagewithtrue/falseChanges:
searchTermto match backend fieldUser-facing documentation
Testing and quality
ROX_BASE_IMAGE_DETECTIONfeature flagAutomated testing
How I validated my change
from_base_imagefield inimage_component.proto)