Skip to content

Fix bugs in aggregation workflow#77

Merged
amrit110 merged 1 commit intomainfrom
bug_fix_aggregate
Mar 8, 2026
Merged

Fix bugs in aggregation workflow#77
amrit110 merged 1 commit intomainfrom
bug_fix_aggregate

Conversation

@amrit110
Copy link
Member

@amrit110 amrit110 commented Mar 8, 2026

This pull request adds new per-team metrics to template analytics, specifically tracking the number of unique active users and the number of active days for each team using a template. These metrics are computed in the backend, included in the API, and displayed in the frontend. Additionally, the logic for aggregating these metrics at the company level has been updated for greater accuracy.

Backend: Per-Team Metrics Calculation

  • The compute_template_metrics function now calculates team_unique_active_users and team_active_days for each template, based on daily engagement data and recent activity. [1] [2]
  • The function signature and call site in main() are updated to pass the necessary engagement data. [1] [2]

API and Types Update

  • The TemplateMetrics interface is extended to include team_unique_active_users and team_active_days.

Frontend: Display and Aggregation

@amrit110 amrit110 self-assigned this Mar 8, 2026
@amrit110 amrit110 added bug Something isn't working refactor Refactor the structure of code labels Mar 8, 2026
@codecov
Copy link

codecov bot commented Mar 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.62%. Comparing base (b7bc88f) to head (acd0ad5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #77   +/-   ##
=======================================
  Coverage   90.62%   90.62%           
=======================================
  Files          10       10           
  Lines        1408     1408           
=======================================
  Hits         1276     1276           
  Misses        132      132           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@amrit110 amrit110 merged commit 3534aa6 into main Mar 8, 2026
9 checks passed
@amrit110 amrit110 deleted the bug_fix_aggregate branch March 8, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working refactor Refactor the structure of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant