Skip to content

Commit 1599542

Browse files
authored
Merge branch 'master' into cursor/cmd-k-superuser-keyword-a315
2 parents 8f79bc1 + d6d1381 commit 1599542

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

static/app/views/settings/account/notifications/notificationSettingsByType.spec.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ describe('NotificationSettingsByType', () => {
326326
'continuous-profiling-billing',
327327
'seer-billing',
328328
'logs-billing',
329+
'expose-category-trace-metric-byte',
329330
'seer-user-billing-launch',
330331
],
331332
});
@@ -501,6 +502,7 @@ describe('NotificationSettingsByType', () => {
501502
// No continuous-profiling-billing feature
502503
// No seer-billing feature
503504
// No logs-billing feature
505+
// No expose-category-trace-metric-byte feature
504506
],
505507
});
506508
renderComponent({
@@ -525,6 +527,7 @@ describe('NotificationSettingsByType', () => {
525527
expect(screen.queryByText('Transactions')).not.toBeInTheDocument();
526528
expect(screen.queryByText('Seer Budget')).not.toBeInTheDocument();
527529
expect(screen.queryByText('Logs')).not.toBeInTheDocument();
530+
expect(screen.queryByText('Metrics (Bytes)')).not.toBeInTheDocument();
528531
expect(screen.queryByText('Active Contributors')).not.toBeInTheDocument();
529532
});
530533
});

static/app/views/settings/account/notifications/notificationSettingsByType.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ export function NotificationSettingsByType({notificationType}: Props) {
251251
organization.features?.includes('logs-billing')
252252
);
253253

254+
const hasTraceMetricsBilling = organizations.some(organization =>
255+
organization.features?.includes('expose-category-trace-metric-byte')
256+
);
257+
254258
const hasSeerUserBilling = organizations.some(organization =>
255259
organization.features?.includes('seer-user-billing-launch')
256260
);
@@ -282,6 +286,9 @@ export function NotificationSettingsByType({notificationType}: Props) {
282286
if (field.name.startsWith('quotaLogBytes') && !includeLogs) {
283287
return false;
284288
}
289+
if (field.name.startsWith('quotaTraceMetricBytes') && !hasTraceMetricsBilling) {
290+
return false;
291+
}
285292
if (field.name.startsWith('quotaSeerUsers') && !hasSeerUserBilling) {
286293
return false;
287294
}

0 commit comments

Comments
 (0)