Skip to content

ROX-34994: Add ROX_VULN_MGMT_DATE_RANGE_FILTER feature flag#21048

Closed
sachaudh wants to merge 1 commit into
masterfrom
ROX-28073-date-range-filter-flag
Closed

ROX-34994: Add ROX_VULN_MGMT_DATE_RANGE_FILTER feature flag#21048
sachaudh wants to merge 1 commit into
masterfrom
ROX-28073-date-range-filter-flag

Conversation

@sachaudh

@sachaudh sachaudh commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

Jira: ROX-34994

I'm starting on date/time range filtering for the VM 2.0 advanced filters (a "Between" condition on the date-picker attributes, plus retargeting the Aging Images dashboard widget from VM 1.0 to VM 2.0). I'm planning to land that work in incremental PRs, so this first one just adds the feature flag to keep the in-progress pieces hidden until everything is ready. I followed the same pattern we used in #19929 for ROX_NODE_VULNERABILITY_REPORTS.

  • Registered VulnMgmtDateRangeFilter (ROX_VULN_MGMT_DATE_RANGE_FILTER) in pkg/features/list.go, disabled by default
  • Enabled the flag in CI e2e runs (tests/e2e/lib.sh: export_test_environment and deploy_central_via_operator)
  • Added the flag to the FeatureFlagEnvVar union in the UI (types/featureFlag.ts)

Nothing reads the flag yet, so there's no behavior change anywhere with this PR. On the name: I went with the VULN_MGMT prefix to match ROX_VULN_MGMT_LEGACY_SNOOZE, since "VM" already means virtual machines in list.go (ROX_VIRTUAL_MACHINES*).

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

I didn't check any boxes here since this is flag registration only, with no new logic to test. The flag's actual behavior will get unit and component tests in the follow-up PRs that consume it.

How I validated my change

  • Ran go build ./pkg/features/... and go test ./pkg/features/..., both pass
  • Ran bash -n tests/e2e/lib.sh to syntax-check the shell changes
  • Ran eslint src/types/featureFlag.ts, no issues
  • No UI validation here since nothing reads the flag yet (there's nothing visible to check)

@openshift-ci

openshift-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

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

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: d3e60078-0346-4d0b-aa15-0bc8b440e804

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ROX-28073-date-range-filter-flag

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sachaudh sachaudh changed the title ROX-28073: Add ROX_VULN_MGMT_DATE_RANGE_FILTER feature flag ROX-34994: Add ROX_VULN_MGMT_DATE_RANGE_FILTER feature flag Jun 9, 2026
Date/time range filtering for VM 2.0 advanced filters will land in
increments, so gate the upcoming "Between" condition and the Aging
Images widget retarget behind a flag that is disabled by default in
production and enabled in CI e2e runs, following the same pattern as
ROX_NODE_VULNERABILITY_REPORTS (#19929).

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
@sachaudh sachaudh force-pushed the ROX-28073-date-range-filter-flag branch from 25c3109 to f1fbca9 Compare June 9, 2026 21:14
@sachaudh

sachaudh commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of a recreated PR from a branch named for the correct ticket (ROX-34994).

@sachaudh sachaudh closed this Jun 9, 2026
@sachaudh sachaudh deleted the ROX-28073-date-range-filter-flag branch June 9, 2026 21:15
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

Images are ready for commit f1fbca9. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.12.x-110-gf1fbca9c63

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.83%. Comparing base (58f4bc6) to head (f1fbca9).
⚠️ Report is 18 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21048      +/-   ##
==========================================
- Coverage   49.86%   49.83%   -0.03%     
==========================================
  Files        2812     2812              
  Lines      215112   215115       +3     
==========================================
- Hits       107256   107211      -45     
- Misses     100039   100069      +30     
- Partials     7817     7835      +18     
Flag Coverage Δ
go-unit-tests 49.83% <ø> (-0.03%) ⬇️

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

☔ View full report in Codecov by Harness.
📢 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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant