feat(adoption-insights): add time-saved backend enrichment and notifications#3946
feat(adoption-insights): add time-saved backend enrichment and notifications#3946rajin-kichannagari wants to merge 2 commits into
Conversation
…cations - Enrich scaffolder create events with rhdh.redhat.com/time-saved annotation value from catalog entity at write time (RHIDP-15190) - Add time_saved_totals query aggregating by template with SUM/AVG/COUNT - Add periodic notification summary via NotificationService (AC3) - Scheduler runs daily at 9am, lookback per frequency tier - shouldSendForFrequency checks day-of-week/month - Add per-user notification frequency settings (AC4) - notification_preferences DB table with atomic upsert - GET/PUT /notification-preferences REST endpoints - Add admin config flag: adoptionInsights.notifications.enabled (defaults to true, set false to disable notifications entirely) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Changed Packages
|
|
PR Summary by QodoAdoption Insights: enrich time-saved events and add notification preferences + scheduler
AI Description
Diagram
High-Level Assessment
Files changed (19)
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3946 +/- ##
========================================
Coverage 57.35% 57.35%
========================================
Files 2384 2385 +1
Lines 95616 95724 +108
Branches 26734 26767 +33
========================================
+ Hits 54838 54905 +67
- Misses 40544 40586 +42
+ Partials 234 233 -1
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
11 rules✅ Cross-repo context Explored:
repo: redhat-developer/rhdh (sha: d090bd1a) Explored:
repo: redhat-developer/rhdh-operator (sha: cde4968e) Explored:
repo: redhat-developer/rhdh-local (sha: 2ae9e8c8) Not relevant to this PR:
redhat-developer/rhdh-chart 1. Notifications backend not provided
|



Summary
Backend support for the Estimated Time Saved feature in Adoption Insights.
rhdh.redhat.com/time-savedannotation value from catalog entity at write time (RHIDP-15190)time_saved_totalsquery aggregating by template with SUM/AVG/COUNTshouldSendForFrequencychecks day-of-week/monthnotification_preferencesDB table with atomic upsert/notification-preferencesREST endpointsadoptionInsights.notifications.enabled(defaults to true, set false to disable notifications entirely)Hey, I just made a Pull Request!
Backend enrichment and notification scheduler for the Est. Time Saved feature. Reads the
rhdh.redhat.com/time-savedannotation from template entities at event write time and stores the value. Adds a daily notification scheduler that summarizes time saved per user, respecting their frequency preference (daily/weekly/monthly/none). Admins can disable notifications entirely via config.✔️ Checklist