Skip to content

Commit 87ad4c4

Browse files
authored
use clickhouse as a default (#5778)
1 parent 1969a06 commit 87ad4c4

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

torchci/components/UseClickhouseProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface UseCHContextProps {
77
}
88

99
const UseCHContext = createContext<UseCHContextProps>({
10-
useCH: false,
10+
useCH: true,
1111
setUseCH: () => {},
1212
});
1313

@@ -21,7 +21,7 @@ export function UseCHContextProvider({
2121
}: {
2222
children: React.ReactNode;
2323
}) {
24-
const [useCH, setUseCH] = usePreference("useClickHouse", undefined, false);
24+
const [useCH, setUseCH] = usePreference("useClickHouse", undefined, true);
2525
return (
2626
<UseCHContext.Provider
2727
value={{

torchci/components/metrics/panels/ScalarPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default function ScalarPanel({
6969
metricName,
7070
// Callback to decide whether the scalar value is "bad" and should be displayed red.
7171
badThreshold,
72-
useClickHouse = false,
72+
useClickHouse = true,
7373
}: {
7474
title: string;
7575
queryCollection?: string;

torchci/components/metrics/panels/TablePanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function TablePanel({
2424
helpLink,
2525
// An optional flag to show the table footer
2626
showFooter,
27-
useClickHouse = false,
27+
useClickHouse = true,
2828
}: {
2929
title: string;
3030
queryCollection?: string;

torchci/components/metrics/panels/TimeSeriesPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export default function TimeSeriesPanel({
223223
yAxisLabel,
224224
// Additional EChartsOption (ex max y value)
225225
additionalOptions,
226-
useClickHouse = false,
226+
useClickHouse = true,
227227
}: {
228228
title: string;
229229
queryCollection?: string;

torchci/lib/fetchPR.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default async function fetchPR(
5151
repo: string,
5252
prNumber: string,
5353
octokit: Octokit,
54-
useClickhouse: boolean = false
54+
useClickhouse: boolean = true
5555
): Promise<PRData> {
5656
// We pull data from both Rockset and Github to get all commits, including
5757
// the ones that have been force merged out of the git history.

0 commit comments

Comments
 (0)