From 5f6d76bc6cad49c237c3b3d2059283d75205b86d Mon Sep 17 00:00:00 2001 From: LiuLiu Date: Mon, 2 Dec 2024 16:00:46 -0800 Subject: [PATCH] lint fix --- graphql-server/schema.gql | 2 +- graphql-server/src/queryFactory/mysql/index.ts | 2 +- graphql-server/src/remotes/remote.model.ts | 4 ++-- graphql-server/src/remotes/remote.resolver.ts | 2 +- .../DatabasePage/ForRemotes/RemotesPage.tsx | 2 +- .../pageComponents/DatabasePage/ForRemotes/queries.ts | 2 +- web/renderer/gen/graphql-types.tsx | 8 ++++---- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/graphql-server/schema.gql b/graphql-server/schema.gql index 32da2e3a..e2999448 100644 --- a/graphql-server/schema.gql +++ b/graphql-server/schema.gql @@ -283,7 +283,7 @@ type Remote { _id: ID! name: String! url: String! - fetch_specs: [String!]! + fetchSpecs: [String!]! } type RemoteList { diff --git a/graphql-server/src/queryFactory/mysql/index.ts b/graphql-server/src/queryFactory/mysql/index.ts index 8cee7dee..7116dda3 100644 --- a/graphql-server/src/queryFactory/mysql/index.ts +++ b/graphql-server/src/queryFactory/mysql/index.ts @@ -302,7 +302,7 @@ export class MySQLQueryFactory throw notDoltError("restore all tables"); } - async getRemotes(args: t.DBArgs): t.PR { + async getRemotes(_args: t.DBArgs): t.PR { throw notDoltError("get one-sided diff"); } } diff --git a/graphql-server/src/remotes/remote.model.ts b/graphql-server/src/remotes/remote.model.ts index 11a201ed..eb3ee6c1 100644 --- a/graphql-server/src/remotes/remote.model.ts +++ b/graphql-server/src/remotes/remote.model.ts @@ -14,7 +14,7 @@ export class Remote { url: string; @Field(_type => [String]) - fetch_specs: string[]; + fetchSpecs: string[]; } @ObjectType() @@ -28,6 +28,6 @@ export function fromDoltRemotesRow(databaseName: string, r: RawRow): Remote { _id: `databases/${databaseName}/remotes/${r.name}`, name: r.name, url: r.url, - fetch_specs: r.fetch_specs, + fetchSpecs: r.fetch_specs, }; } diff --git a/graphql-server/src/remotes/remote.resolver.ts b/graphql-server/src/remotes/remote.resolver.ts index 68da63d4..e07dea4c 100644 --- a/graphql-server/src/remotes/remote.resolver.ts +++ b/graphql-server/src/remotes/remote.resolver.ts @@ -1,9 +1,9 @@ import { Args, Query, Resolver } from "@nestjs/graphql"; import { ConnectionProvider } from "src/connections/connection.provider"; -import { fromDoltRemotesRow, Remote, RemoteList } from "./remote.model"; import { DBArgsWithOffset } from "src/utils/commonTypes"; import { RawRow } from "src/queryFactory/types"; import { getNextOffset, ROW_LIMIT } from "src/utils"; +import { fromDoltRemotesRow, Remote, RemoteList } from "./remote.model"; @Resolver(_of => Remote) export class RemoteResolver { diff --git a/web/renderer/components/pageComponents/DatabasePage/ForRemotes/RemotesPage.tsx b/web/renderer/components/pageComponents/DatabasePage/ForRemotes/RemotesPage.tsx index e07109a2..02e892eb 100644 --- a/web/renderer/components/pageComponents/DatabasePage/ForRemotes/RemotesPage.tsx +++ b/web/renderer/components/pageComponents/DatabasePage/ForRemotes/RemotesPage.tsx @@ -17,7 +17,7 @@ function Inner({ remotes }: InnerProps) {
  • {remote.name} {remote.url} - {remote.fetch_specs} + {remote.fetchSpecs}
  • ))} diff --git a/web/renderer/components/pageComponents/DatabasePage/ForRemotes/queries.ts b/web/renderer/components/pageComponents/DatabasePage/ForRemotes/queries.ts index dde9702c..db1f0212 100644 --- a/web/renderer/components/pageComponents/DatabasePage/ForRemotes/queries.ts +++ b/web/renderer/components/pageComponents/DatabasePage/ForRemotes/queries.ts @@ -5,7 +5,7 @@ export const REMOTES_FOR_REMOTES_PAGE_QUERY = gql` _id name url - fetch_specs + fetchSpecs } query RemoteList($databaseName: String!, $offset: Int) { remotes(databaseName: $databaseName, offset: $offset) { diff --git a/web/renderer/gen/graphql-types.tsx b/web/renderer/gen/graphql-types.tsx index 8913b999..15242c68 100644 --- a/web/renderer/gen/graphql-types.tsx +++ b/web/renderer/gen/graphql-types.tsx @@ -617,7 +617,7 @@ export enum QueryExecutionStatus { export type Remote = { __typename?: 'Remote'; _id: Scalars['ID']['output']; - fetch_specs: Array; + fetchSpecs: Array; name: Scalars['String']['output']; url: Scalars['String']['output']; }; @@ -1182,7 +1182,7 @@ export type DeleteTagMutationVariables = Exact<{ export type DeleteTagMutation = { __typename?: 'Mutation', deleteTag: boolean }; -export type RemoteFragment = { __typename?: 'Remote', _id: string, name: string, url: string, fetch_specs: Array }; +export type RemoteFragment = { __typename?: 'Remote', _id: string, name: string, url: string, fetchSpecs: Array }; export type RemoteListQueryVariables = Exact<{ databaseName: Scalars['String']['input']; @@ -1190,7 +1190,7 @@ export type RemoteListQueryVariables = Exact<{ }>; -export type RemoteListQuery = { __typename?: 'Query', remotes: { __typename?: 'RemoteList', nextOffset?: number | null, list: Array<{ __typename?: 'Remote', _id: string, name: string, url: string, fetch_specs: Array }> } }; +export type RemoteListQuery = { __typename?: 'Query', remotes: { __typename?: 'RemoteList', nextOffset?: number | null, list: Array<{ __typename?: 'Remote', _id: string, name: string, url: string, fetchSpecs: Array }> } }; export type LoadDataMutationVariables = Exact<{ databaseName: Scalars['String']['input']; @@ -1615,7 +1615,7 @@ export const RemoteFragmentDoc = gql` _id name url - fetch_specs + fetchSpecs } `; export const ColumnForDataTableFragmentDoc = gql`