You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: enable enterprise team metrics via Enterprise Teams API (#348)
* feat: enable enterprise team metrics via Enterprise Teams API
- Update enterprise team members endpoint to /memberships (new API)
- Add X-GitHub-Api-Version: 2026-03-10 header for enterprise teams/members
- Add team-scoped direct API path in metrics-util-v2 (no DB required)
- Make teams tab always visible (remove historical mode restriction)
- Add defensive response normalization for enterprise team members
- Improve aggregateTeamMetrics to use case-insensitive login matching
- Add tests for enterprise team members URL and case-insensitive matching
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* add rate limit warning banner on teams tab when not using historical mode
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: app/components/TeamsComponent.vue
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,20 @@
12
12
</div>
13
13
</v-card>
14
14
15
+
<!-- Rate limit warning when not using historical/DB mode -->
16
+
<v-alert
17
+
v-if="!isHistoricalMode"
18
+
type="warning"
19
+
variant="tonal"
20
+
density="compact"
21
+
class="mx-4 mb-1"
22
+
closable
23
+
>
24
+
<strong>Performance notice:</strong> Team metrics are computed by fetching enterprise-wide user data and filtering by team membership.
25
+
Each team selection triggers a full user-metrics download, which may hit GitHub API rate limits with frequent use.
26
+
For production use, enable <strong>historical mode</strong> (<code>ENABLE_HISTORICAL_MODE=true</code>) to cache data in the database and avoid repeated API calls.
0 commit comments