Skip to content

Commit

Permalink
Remove unneeded comment code (#10309)
Browse files Browse the repository at this point in the history
Before we can deploy replayio/backend#9495 we have to stop requesting these fields from GraphQL

- Remove unneeded comment columns from GraphQL queries
- Run 'yarn gql' to update generated types

---------

Co-authored-by: Brian Vaughn <brian.david.vaughn@gmail.com>
  • Loading branch information
jcmorrow and bvaughn authored Feb 13, 2024
1 parent 4699baf commit ccfc5d4
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 42 deletions.
5 changes: 0 additions & 5 deletions packages/shared/graphql/generated/GetComments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,11 @@ export interface GetComments_recording_comments {
id: string;
isPublished: boolean | null;
content: string;
primaryLabel: string | null;
secondaryLabel: string | null;
createdAt: any;
updatedAt: any;
hasFrames: boolean;
sourceLocation: any | null;
time: number;
point: string;
position: any | null;
networkRequestId: string | null;
type: string | null;
typeData: any | null;
user: GetComments_recording_comments_user | null;
Expand Down
5 changes: 0 additions & 5 deletions packages/shared/graphql/generated/GetRecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,11 @@ export interface GetRecording_recording_comments {
id: string;
isPublished: boolean | null;
content: string;
primaryLabel: string | null;
secondaryLabel: string | null;
createdAt: any;
updatedAt: any;
hasFrames: boolean;
sourceLocation: any | null;
time: number;
point: string;
position: any | null;
networkRequestId: string | null;
user: GetRecording_recording_comments_user | null;
replies: GetRecording_recording_comments_replies[];
}
Expand Down
8 changes: 4 additions & 4 deletions packages/shared/graphql/generated/GetTestRunRecordings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// ====================================================

export interface GetTestRunRecordings_node_Recording {
__typename: "Recording";
__typename: "Recording" | "RootCauseAnalysis";
}

export interface GetTestRunRecordings_node_Workspace_testRuns_edges_node_results_counts {
Expand Down Expand Up @@ -66,14 +66,14 @@ export interface GetTestRunRecordings_node_Workspace_testRuns_edges_node_tests {
__typename: "TestRunTest";
id: string;
testId: string;
index: number;
attempt: number;
title: string;
scope: string[];
sourcePath: string;
result: string;
errors: string[] | null;
durationMs: number;
index: number;
attempt: number;
executions: GetTestRunRecordings_node_Workspace_testRuns_edges_node_tests_executions[];
}

Expand Down Expand Up @@ -112,4 +112,4 @@ export interface GetTestRunRecordings {
export interface GetTestRunRecordingsVariables {
workspaceId: string;
id: string;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// ====================================================

export interface GetTestsRunsForWorkspace_node_Recording {
__typename: "Recording";
__typename: "Recording" | "RootCauseAnalysis";
}

export interface GetTestsRunsForWorkspace_node_Workspace_testRuns_edges_node_results_counts {
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/graphql/generated/GetWorkspaceApiKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// ====================================================

export interface GetWorkspaceApiKeys_node_Recording {
__typename: "Recording";
__typename: "Recording" | "RootCauseAnalysis";
}

export interface GetWorkspaceApiKeys_node_Workspace_apiKeys {
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/graphql/generated/GetWorkspaceMembers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// ====================================================

export interface GetWorkspaceMembers_node_Recording {
__typename: "Recording";
__typename: "Recording" | "RootCauseAnalysis";
}

export interface GetWorkspaceMembers_node_Workspace_members_edges_node_WorkspacePendingEmailMember {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// ====================================================

export interface GetWorkspaceRecordings_node_Recording {
__typename: "Recording";
__typename: "Recording" | "RootCauseAnalysis";
}

export interface GetWorkspaceRecordings_node_Workspace_recordings_edges_node_comments_user {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// ====================================================

export interface GetWorkspaceSubscription_node_Recording {
__typename: "Recording";
__typename: "Recording" | "RootCauseAnalysis";
}

export interface GetWorkspaceSubscription_node_Workspace_subscription_paymentMethods_card {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// ====================================================

export interface GetWorkspaceTestExecutions_node_Recording {
__typename: "Recording";
__typename: "Recording" | "RootCauseAnalysis";
}

export interface GetWorkspaceTestExecutions_node_Workspace_tests_edges_node_executions_recordings {
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/graphql/generated/GetWorkspaceTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// ====================================================

export interface GetWorkspaceTests_node_Recording {
__typename: "Recording";
__typename: "Recording" | "RootCauseAnalysis";
}

export interface GetWorkspaceTests_node_Workspace_tests_edges_node_stats {
Expand Down
5 changes: 0 additions & 5 deletions packages/shared/graphql/generated/SubscribeRecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,11 @@ export interface SubscribeRecording_recording_comments {
id: string;
isPublished: boolean | null;
content: string;
primaryLabel: string | null;
secondaryLabel: string | null;
createdAt: any;
updatedAt: any;
hasFrames: boolean;
sourceLocation: any | null;
time: number;
point: string;
position: any | null;
networkRequestId: string | null;
user: SubscribeRecording_recording_comments_user | null;
replies: SubscribeRecording_recording_comments_replies[];
}
Expand Down
1 change: 0 additions & 1 deletion packages/shared/graphql/generated/UpdateCommentContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ export interface UpdateCommentContentVariables {
newContent: string;
newIsPublished: boolean;
commentId: string;
newPosition?: any | null;
}
5 changes: 0 additions & 5 deletions src/ui/graphql/comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,11 @@ export const GET_COMMENTS = gql`
id
isPublished
content
primaryLabel
secondaryLabel
createdAt
updatedAt
hasFrames
sourceLocation
time
point
position
networkRequestId
type
typeData
user {
Expand Down
10 changes: 0 additions & 10 deletions src/ui/graphql/recordings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,11 @@ export const GET_RECORDING = gql`
id
isPublished
content
primaryLabel
secondaryLabel
createdAt
updatedAt
hasFrames
sourceLocation
time
point
position
networkRequestId
user {
id
name
Expand Down Expand Up @@ -137,16 +132,11 @@ export const SUBSCRIBE_RECORDING = gql`
id
isPublished
content
primaryLabel
secondaryLabel
createdAt
updatedAt
hasFrames
sourceLocation
time
point
position
networkRequestId
user {
id
name
Expand Down

0 comments on commit ccfc5d4

Please sign in to comment.