Skip to content

Commit 94aa41b

Browse files
authored
ref(profiling): Move profiling pages to use events api (getsentry#40999)
The new events api is ready and the necessary components are as well. This moves the profiling pages to use the events api.
1 parent bfb8b5b commit 94aa41b

File tree

13 files changed

+106
-968
lines changed

13 files changed

+106
-968
lines changed

static/app/components/profiling/profileEventsTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import useOrganization from 'sentry/utils/useOrganization';
2929
import useProjects from 'sentry/utils/useProjects';
3030

3131
interface ProfileEventsTableProps<F extends FieldType> {
32-
columns: F[];
32+
columns: readonly F[];
3333
data: EventsResults<F> | null;
3434
error: string | null;
3535
isLoading: boolean;
@@ -425,6 +425,6 @@ function getColumnOrder<F extends FieldType>(field: F): GridColumnOrder<F> {
425425
};
426426
}
427427

428-
function getRightAlignedColumns<F extends FieldType>(columns: F[]): Set<F> {
428+
function getRightAlignedColumns<F extends FieldType>(columns: readonly F[]): Set<F> {
429429
return new Set(columns.filter(col => RIGHT_ALIGNED_FIELDS.has(col)));
430430
}

static/app/components/profiling/profileTransactionsTable.tsx

Lines changed: 0 additions & 281 deletions
This file was deleted.

static/app/components/profiling/profilesTable.spec.tsx

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)