Skip to content

Commit

Permalink
use clickhouse as a default (#5778)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdvr authored Oct 17, 2024
1 parent 1969a06 commit 87ad4c4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions torchci/components/UseClickhouseProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface UseCHContextProps {
}

const UseCHContext = createContext<UseCHContextProps>({
useCH: false,
useCH: true,
setUseCH: () => {},
});

Expand All @@ -21,7 +21,7 @@ export function UseCHContextProvider({
}: {
children: React.ReactNode;
}) {
const [useCH, setUseCH] = usePreference("useClickHouse", undefined, false);
const [useCH, setUseCH] = usePreference("useClickHouse", undefined, true);
return (
<UseCHContext.Provider
value={{
Expand Down
2 changes: 1 addition & 1 deletion torchci/components/metrics/panels/ScalarPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function ScalarPanel({
metricName,
// Callback to decide whether the scalar value is "bad" and should be displayed red.
badThreshold,
useClickHouse = false,
useClickHouse = true,
}: {
title: string;
queryCollection?: string;
Expand Down
2 changes: 1 addition & 1 deletion torchci/components/metrics/panels/TablePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function TablePanel({
helpLink,
// An optional flag to show the table footer
showFooter,
useClickHouse = false,
useClickHouse = true,
}: {
title: string;
queryCollection?: string;
Expand Down
2 changes: 1 addition & 1 deletion torchci/components/metrics/panels/TimeSeriesPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export default function TimeSeriesPanel({
yAxisLabel,
// Additional EChartsOption (ex max y value)
additionalOptions,
useClickHouse = false,
useClickHouse = true,
}: {
title: string;
queryCollection?: string;
Expand Down
2 changes: 1 addition & 1 deletion torchci/lib/fetchPR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default async function fetchPR(
repo: string,
prNumber: string,
octokit: Octokit,
useClickhouse: boolean = false
useClickhouse: boolean = true
): Promise<PRData> {
// We pull data from both Rockset and Github to get all commits, including
// the ones that have been force merged out of the git history.
Expand Down

0 comments on commit 87ad4c4

Please sign in to comment.