Skip to content

ROX-32837: Re-align layer type filter with backend search term#18709

Merged
pedrottimark merged 1 commit intomasterfrom
ROX-32837-Component-Layer-Type
Jan 28, 2026
Merged

ROX-32837: Re-align layer type filter with backend search term#18709
pedrottimark merged 1 commit intomasterfrom
ROX-32837-Component-Layer-Type

Conversation

@pedrottimark
Copy link
Contributor

@pedrottimark pedrottimark commented Jan 27, 2026

Description

Undo changes in #18422

Align with changes in #18580

Last planned contribution from UI team

User-facing documentation

  • CHANGELOG.md update is not needed
  • documentation PR is not needed

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

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

How I validated my change

  1. npm run tsc in ui/apps/platform folder.
  2. npm run lint:fast-dev in ui/apps/platform folder.
  3. npm run start in ui/apps/platform folder with test instance from Yi Li as central.

Manual testing

Manual testing for un-aligned

  1. Visit /main/vulnerabilities/platform and select Image component as entity.

    2 CVEs

    Select Layer type as attribute and Application as value.

    Page address query string has s[Component%20From%20Base%20Image][0]=true
    Data request query string has Component From Base Image:true
    Search filter label: Image component layer type Application
    No results found

    Select Layer type as attribute and Base image as value.

    Page address query string has s[Component%20From%20Base%20Image][0]=false
    Data request query string has Component From Base Image:false
    Search filter label: Image component layer type Base image
    No results found

Manual testing for re-aligned

  1. Visit /main/vulnerabilities/platform and select Image component as entity.

    2 CVEs

    Select Layer type as attribute and Application as value.

    Page address query string has s[Component%20Layer%20Type][0]=APPLICATION
    Data request query string has Component Layer Type:APPLICATION
    Search filter label: Image component layer type Application
    2 CVEs

    Select Layer type as attribute and Base image as value.

    Page address query string has s[Component%20Layer%20Type][0]=BASE_IMAGE
    Data request query string has Component Layer Type:BASE_IMAGE
    Search filter label: Image component layer type Base image
    2 CVEs

Although 2 CVEs seems better than No results found why both values have same results surprises me.

@pedrottimark pedrottimark requested a review from a team as a code owner January 27, 2026 22:19
@rhacs-bot
Copy link
Contributor

Images are ready for the commit at bd8840a.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.10.x-935-gbd8840a75a.

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.38%. Comparing base (8e04226) to head (bd8840a).
⚠️ Report is 14 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #18709   +/-   ##
=======================================
  Coverage   49.37%   49.38%           
=======================================
  Files        2659     2659           
  Lines      200358   200358           
=======================================
+ Hits        98931    98939    +8     
+ Misses      93985    93978    -7     
+ Partials     7442     7441    -1     
Flag Coverage Δ
go-unit-tests 49.38% <ø> (+<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.

@pedrottimark
Copy link
Contributor Author

/test gke-nongroovy-e2e-tests

@pedrottimark
Copy link
Contributor Author

/retest

Copy link
Contributor

@dvail dvail left a comment

Choose a reason for hiding this comment

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

Moving from a boolean value to an enum is definitely worthwhile to get this change in. 👍

@pedrottimark pedrottimark merged commit acef8da into master Jan 28, 2026
93 checks passed
@pedrottimark pedrottimark deleted the ROX-32837-Component-Layer-Type branch January 28, 2026 16:57
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.

3 participants