Skip to content

Conversation

@sachaudh
Copy link
Contributor

Description

Add analytics tracking for the Base Images feature to measure adoption, engagement, and friction points.

Events added:

  • BASE_IMAGE_REFERENCE_ADD_MODAL_OPENED - tracks user intent
  • BASE_IMAGE_REFERENCE_ADD_SUBMITTED - tracks form submission attempts
  • BASE_IMAGE_REFERENCE_ADD_SUCCESS - primary adoption metric
  • BASE_IMAGE_REFERENCE_ADD_FAILURE - tracks errors with categorized errorType
  • BASE_IMAGE_REFERENCE_DELETED - tracks churn

Filter tracking:

  • Added Component Layer Type to searchCategoriesWithFilter to track BASE_IMAGE vs APPLICATION filter usage in Workload CVE pages

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

  • Analytics events are typed and follow existing patterns (e.g., Watched Images)
  • No functional changes to existing behavior; analytics calls are additive

@openshift-ci
Copy link

openshift-ci bot commented Dec 22, 2025

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

@sachaudh
Copy link
Contributor Author

Note to self: Talk to Backend about possibly doing some of this in the backend

@rhacs-bot
Copy link
Contributor

rhacs-bot commented Dec 23, 2025

Images are ready for the commit at 4aeea3d.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.10.x-671-g4aeea3d0e5.

@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.88%. Comparing base (b2e1f4f) to head (4aeea3d).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #18323      +/-   ##
==========================================
- Coverage   48.93%   48.88%   -0.05%     
==========================================
  Files        2622     2623       +1     
  Lines      197899   198099     +200     
==========================================
- Hits        96832    96831       -1     
- Misses      93679    93878     +199     
- Partials     7388     7390       +2     
Flag Coverage Δ
go-unit-tests 48.88% <ø> (-0.05%) ⬇️

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.

Signed-off-by: Saif Chaudhry <[email protected]>
@sachaudh sachaudh marked this pull request as ready for review December 24, 2025 00:47
@sachaudh sachaudh requested a review from a team as a code owner December 24, 2025 00:47
@sachaudh sachaudh added pls-merge Indicates to the *reviewer* that the PR can be merged once tests pass and approval is granted and removed pls-merge Indicates to the *reviewer* that the PR can be merged once tests pass and approval is granted labels Dec 24, 2025
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