Skip to content

Commit d1366a1

Browse files
committed
Move ALLOWED_QUERY_HISTORY_VERSIONS const to store
1 parent 6581988 commit d1366a1

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

extensions/ql-vscode/src/query-history/store/query-history-dto.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import { QueryHistoryLocalQueryDto } from "./query-history-local-query-dto";
55
import { QueryHistoryVariantAnalysisDto } from "./query-history-variant-analysis-dto";
66

7-
export const ALLOWED_QUERY_HISTORY_VERSIONS = [1, 2];
8-
97
export interface QueryHistoryDto {
108
version: number;
119
queries: QueryHistoryItemDto[];

extensions/ql-vscode/src/query-history/store/query-history-store.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ import {
1010
} from "../../pure/helpers-pure";
1111
import { QueryHistoryInfo } from "../query-history-info";
1212
import { redactableError } from "../../pure/errors";
13-
import {
14-
ALLOWED_QUERY_HISTORY_VERSIONS,
15-
QueryHistoryDto,
16-
QueryHistoryItemDto,
17-
} from "./query-history-dto";
18-
import { mapQueryHistoryToDomainModel } from "./data-mapper";
19-
import { mapQueryHistoryToDto } from "./domain-mapper";
13+
import { QueryHistoryDto, QueryHistoryItemDto } from "./query-history-dto";
14+
import { mapQueryHistoryToDomainModel } from "./query-history-dto-mapper";
15+
import { mapQueryHistoryToDto } from "./query-history-domain-mapper";
16+
17+
const ALLOWED_QUERY_HISTORY_VERSIONS = [1, 2];
2018

2119
export async function readQueryHistoryFromFile(
2220
fsPath: string,

0 commit comments

Comments
 (0)