Skip to content

Commit cdcb4a3

Browse files
Copilotrajbos
andcommitted
Remove unused POWER_USER_THRESHOLD constant
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
1 parent 4b2d1f6 commit cdcb4a3

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/lib/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,7 @@ export interface PowerUserSummary {
232232
powerUserModelSummary: ModelUsageSummary[];
233233
}
234234

235-
// Define power user threshold - users with more than 10 requests (kept for backward compatibility)
236-
export const POWER_USER_THRESHOLD = 10;
235+
237236

238237
export function getPowerUsers(data: CopilotUsageData[]): PowerUserSummary {
239238
// First, aggregate total requests per user

src/test/power-users.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect } from 'vitest';
2-
import { getPowerUsers, getPowerUserDailyData, POWER_USER_THRESHOLD, CopilotUsageData } from '../lib/utils';
2+
import { getPowerUsers, getPowerUserDailyData, CopilotUsageData } from '../lib/utils';
33

44
describe('Power Users Functionality', () => {
55
const mockData: CopilotUsageData[] = [
@@ -158,8 +158,6 @@ describe('Power Users Functionality', () => {
158158
});
159159

160160
it('should use top 10% logic for power users', () => {
161-
expect(POWER_USER_THRESHOLD).toBe(10); // Still kept for backward compatibility
162-
163161
// Test with single user - should always have 1 power user
164162
const singleUserData: CopilotUsageData[] = [
165163
{

0 commit comments

Comments
 (0)