Skip to content

ROX-31223: Track tailored profiles#19214

Draft
guzalv wants to merge 1 commit intomaster-base/gualvare/ROX-31229-tailored-profiles-protosfrom
master-base/gualvare/ROX-31229-tailored-profiles-tracking
Draft

ROX-31223: Track tailored profiles#19214
guzalv wants to merge 1 commit intomaster-base/gualvare/ROX-31229-tailored-profiles-protosfrom
master-base/gualvare/ROX-31229-tailored-profiles-tracking

Conversation

@guzalv
Copy link
Contributor

@guzalv guzalv commented Feb 26, 2026

Description

change me!

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

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

How I validated my change

change me!

@guzalv
Copy link
Contributor Author

guzalv commented Feb 26, 2026

@openshift-ci
Copy link

openshift-ci bot commented Feb 26, 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

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • The new ComplianceOperatorProfileV2 construction for tailored profiles in the dispatcher largely duplicates the existing protoProfile fields; consider refactoring into a shared helper so both V1 and V2 profiles stay in sync and reduce the chance of divergent behavior.
  • After adding ComplianceOperatorProfileIsTailored to options.go, double-check that the corresponding search mappings/indexing are wired up for this field so that queries against the new label actually filter on istailored in Postgres.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The new `ComplianceOperatorProfileV2` construction for tailored profiles in the dispatcher largely duplicates the existing `protoProfile` fields; consider refactoring into a shared helper so both V1 and V2 profiles stay in sync and reduce the chance of divergent behavior.
- After adding `ComplianceOperatorProfileIsTailored` to `options.go`, double-check that the corresponding search mappings/indexing are wired up for this field so that queries against the new label actually filter on `istailored` in Postgres.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@rhacs-bot
Copy link
Contributor

Images are ready for the commit at 25fcdc8.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-122-g25fcdc82af.

@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

❌ Patch coverage is 11.11111% with 24 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master-base/gualvare/ROX-31229-tailored-profiles-protos@d8c4994). Learn more about missing BASE report.

Files with missing lines Patch % Lines
.../dispatchers/complianceoperatortailoredprofiles.go 0.00% 21 Missing and 1 partial ⚠️
.../convert/storagetov2/compliance_profile_service.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                                    Coverage Diff                                     @@
##             master-base/gualvare/ROX-31229-tailored-profiles-protos   #19214   +/-   ##
==========================================================================================
  Coverage                                                           ?   49.52%           
==========================================================================================
  Files                                                              ?     2668           
  Lines                                                              ?   201478           
  Branches                                                           ?        0           
==========================================================================================
  Hits                                                               ?    99782           
  Misses                                                             ?    94244           
  Partials                                                           ?     7452           
Flag Coverage Δ
go-unit-tests 49.52% <11.11%> (?)

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.

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.

2 participants