feat: sync graphql schema and clean code
This commit is contained in:
parent
0a8d9386ca
commit
939777910c
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -4,6 +4,7 @@
|
||||
"clsx",
|
||||
"fontsource",
|
||||
"notistack",
|
||||
"unmount",
|
||||
"vditor"
|
||||
]
|
||||
}
|
@ -128,7 +128,6 @@ const Item: FC<{ commit: Commit; pipeline: Pipeline }> = ({
|
||||
pipeline,
|
||||
}) => {
|
||||
const [isOpen, setOpen] = useState(() => false);
|
||||
const classes = useStyles();
|
||||
|
||||
const [createTask, { loading }] =
|
||||
useMutation<
|
||||
|
@ -1,26 +1,4 @@
|
||||
import { gql } from "@apollo/client";
|
||||
|
||||
export const SUBSCRIPTION_COMMITS = gql`
|
||||
subscription SubscriptionCommits($pipelineId: String!) {
|
||||
results: listLogsForPipeline(id: $pipelineId) {
|
||||
all {
|
||||
hash
|
||||
date
|
||||
message
|
||||
body
|
||||
author_name
|
||||
author_email
|
||||
tasks {
|
||||
id
|
||||
units
|
||||
status
|
||||
startedAt
|
||||
endedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
export const SYNC_COMMITS = gql`
|
||||
subscription SyncCommits($pipelineId: String!) {
|
||||
syncCommits(pipelineId: $pipelineId)
|
||||
|
@ -1153,7 +1153,7 @@
|
||||
},
|
||||
{
|
||||
"kind": "OBJECT",
|
||||
"name": "PipelineTaskLogMessage",
|
||||
"name": "PipelineTaskEvent",
|
||||
"description": null,
|
||||
"fields": [
|
||||
{
|
||||
@ -1169,47 +1169,15 @@
|
||||
"deprecationReason": null
|
||||
},
|
||||
{
|
||||
"name": "time",
|
||||
"name": "status",
|
||||
"description": null,
|
||||
"args": [],
|
||||
"type": {
|
||||
"kind": "NON_NULL",
|
||||
"name": null,
|
||||
"ofType": {
|
||||
"kind": "SCALAR",
|
||||
"name": "DateTime",
|
||||
"ofType": null
|
||||
}
|
||||
},
|
||||
"isDeprecated": false,
|
||||
"deprecationReason": null
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"description": null,
|
||||
"args": [],
|
||||
"type": {
|
||||
"kind": "NON_NULL",
|
||||
"name": null,
|
||||
"ofType": {
|
||||
"kind": "SCALAR",
|
||||
"name": "String",
|
||||
"ofType": null
|
||||
}
|
||||
},
|
||||
"isDeprecated": false,
|
||||
"deprecationReason": null
|
||||
},
|
||||
{
|
||||
"name": "isError",
|
||||
"description": null,
|
||||
"args": [],
|
||||
"type": {
|
||||
"kind": "NON_NULL",
|
||||
"name": null,
|
||||
"ofType": {
|
||||
"kind": "SCALAR",
|
||||
"name": "Boolean",
|
||||
"kind": "ENUM",
|
||||
"name": "TaskStatuses",
|
||||
"ofType": null
|
||||
}
|
||||
},
|
||||
@ -1757,7 +1725,7 @@
|
||||
"deprecationReason": null
|
||||
},
|
||||
{
|
||||
"name": "pipelineTaskLog",
|
||||
"name": "pipelineTaskEvent",
|
||||
"description": null,
|
||||
"args": [
|
||||
{
|
||||
@ -1782,7 +1750,7 @@
|
||||
"name": null,
|
||||
"ofType": {
|
||||
"kind": "OBJECT",
|
||||
"name": "PipelineTaskLogMessage",
|
||||
"name": "PipelineTaskEvent",
|
||||
"ofType": null
|
||||
}
|
||||
},
|
||||
|
@ -140,12 +140,10 @@ export type PipelineTask = {
|
||||
endedAt?: Maybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type PipelineTaskLogMessage = {
|
||||
__typename?: 'PipelineTaskLogMessage';
|
||||
export type PipelineTaskEvent = {
|
||||
__typename?: 'PipelineTaskEvent';
|
||||
unit?: Maybe<PipelineUnits>;
|
||||
time: Scalars['DateTime'];
|
||||
message: Scalars['String'];
|
||||
isError: Scalars['Boolean'];
|
||||
status: TaskStatuses;
|
||||
};
|
||||
|
||||
export type PipelineTaskLogs = {
|
||||
@ -221,7 +219,7 @@ export type QueryPipelineTaskArgs = {
|
||||
export type Subscription = {
|
||||
__typename?: 'Subscription';
|
||||
syncCommits?: Maybe<Scalars['String']>;
|
||||
pipelineTaskLog: PipelineTaskLogMessage;
|
||||
pipelineTaskEvent: PipelineTaskEvent;
|
||||
pipelineTaskChanged: PipelineTask;
|
||||
};
|
||||
|
||||
@ -232,7 +230,7 @@ export type SubscriptionSyncCommitsArgs = {
|
||||
};
|
||||
|
||||
|
||||
export type SubscriptionPipelineTaskLogArgs = {
|
||||
export type SubscriptionPipelineTaskEventArgs = {
|
||||
taskId: Scalars['String'];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user