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

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
@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

Images are ready for the commit at 308a270.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.10.x-670-g308a2707c3.

@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.92%. Comparing base (b2e1f4f) to head (308a270).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #18323      +/-   ##
==========================================
- Coverage   48.93%   48.92%   -0.01%     
==========================================
  Files        2622     2622              
  Lines      197899   197899              
==========================================
- Hits        96832    96827       -5     
- Misses      93679    93682       +3     
- Partials     7388     7390       +2     
Flag Coverage Δ
go-unit-tests 48.92% <ø> (-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.

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