mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 22:29:11 +03:00
* Split unified logs count into its own infinite query and refactor main UI to use that new query * Split unified logs into its own infinite query and refactor main UI to use that new query * Shift useChartData into unified-logs-chart-query, and refactor main UI to use that new query * Rename unified-logs-query to unified-logs-infinite-query * Remove uuid and live params from query string in react queries for unified logs
38 lines
963 B
TypeScript
38 lines
963 B
TypeScript
import { QuerySearchParamsType } from 'components/interfaces/UnifiedLogs/UnifiedLogs.types'
|
|
|
|
export const logsKeys = {
|
|
unifiedLogsInfinite: (
|
|
projectRef: string | undefined,
|
|
searchParams: QuerySearchParamsType | undefined
|
|
) =>
|
|
[
|
|
'projects',
|
|
projectRef,
|
|
'unified-logs',
|
|
'logs-data',
|
|
...(searchParams ? [searchParams].filter(Boolean) : []),
|
|
] as const,
|
|
unifiedLogsCount: (
|
|
projectRef: string | undefined,
|
|
searchParams: QuerySearchParamsType | undefined
|
|
) =>
|
|
[
|
|
'projects',
|
|
projectRef,
|
|
'unified-logs',
|
|
'count-data',
|
|
...(searchParams ? [searchParams].filter(Boolean) : []),
|
|
] as const,
|
|
unifiedLogsChart: (
|
|
projectRef: string | undefined,
|
|
searchParams: QuerySearchParamsType | undefined
|
|
) =>
|
|
[
|
|
'projects',
|
|
projectRef,
|
|
'unified-logs',
|
|
'chart-data',
|
|
...(searchParams ? [searchParams].filter(Boolean) : []),
|
|
] as const,
|
|
}
|