Skip to content

Commit

Permalink
fix(workspaces): make adminWorkspaceJoinRequests field nullable for n…
Browse files Browse the repository at this point in the history
…on admin users (#3899)
  • Loading branch information
alemagio authored Jan 27, 2025
1 parent 188c333 commit 57751db
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ type Workspace {
filter: AdminWorkspaceJoinRequestFilter
cursor: String
limit: Int! = 25
): WorkspaceJoinRequestCollection!
): WorkspaceJoinRequestCollection
@hasServerRole(role: SERVER_USER)
@hasScope(scope: "workspace:read")
@hasWorkspaceRole(role: ADMIN)
Expand Down
4 changes: 2 additions & 2 deletions packages/server/modules/core/graph/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4195,7 +4195,7 @@ export type WebhookUpdateInput = {
export type Workspace = {
__typename?: 'Workspace';
/** Get all join requests for all the workspaces the user is an admin of */
adminWorkspacesJoinRequests: WorkspaceJoinRequestCollection;
adminWorkspacesJoinRequests?: Maybe<WorkspaceJoinRequestCollection>;
automateFunctions: AutomateFunctionCollection;
createdAt: Scalars['DateTime']['output'];
/** Info about the workspace creation state */
Expand Down Expand Up @@ -6820,7 +6820,7 @@ export type WebhookEventCollectionResolvers<ContextType = GraphQLContext, Parent
};

export type WorkspaceResolvers<ContextType = GraphQLContext, ParentType extends ResolversParentTypes['Workspace'] = ResolversParentTypes['Workspace']> = {
adminWorkspacesJoinRequests?: Resolver<ResolversTypes['WorkspaceJoinRequestCollection'], ParentType, ContextType, RequireFields<WorkspaceAdminWorkspacesJoinRequestsArgs, 'limit'>>;
adminWorkspacesJoinRequests?: Resolver<Maybe<ResolversTypes['WorkspaceJoinRequestCollection']>, ParentType, ContextType, RequireFields<WorkspaceAdminWorkspacesJoinRequestsArgs, 'limit'>>;
automateFunctions?: Resolver<ResolversTypes['AutomateFunctionCollection'], ParentType, ContextType, RequireFields<WorkspaceAutomateFunctionsArgs, 'limit'>>;
createdAt?: Resolver<ResolversTypes['DateTime'], ParentType, ContextType>;
creationState?: Resolver<Maybe<ResolversTypes['WorkspaceCreationState']>, ParentType, ContextType>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4176,7 +4176,7 @@ export type WebhookUpdateInput = {
export type Workspace = {
__typename?: 'Workspace';
/** Get all join requests for all the workspaces the user is an admin of */
adminWorkspacesJoinRequests: WorkspaceJoinRequestCollection;
adminWorkspacesJoinRequests?: Maybe<WorkspaceJoinRequestCollection>;
automateFunctions: AutomateFunctionCollection;
createdAt: Scalars['DateTime']['output'];
/** Info about the workspace creation state */
Expand Down
4 changes: 2 additions & 2 deletions packages/server/test/graphql/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4177,7 +4177,7 @@ export type WebhookUpdateInput = {
export type Workspace = {
__typename?: 'Workspace';
/** Get all join requests for all the workspaces the user is an admin of */
adminWorkspacesJoinRequests: WorkspaceJoinRequestCollection;
adminWorkspacesJoinRequests?: Maybe<WorkspaceJoinRequestCollection>;
automateFunctions: AutomateFunctionCollection;
createdAt: Scalars['DateTime']['output'];
/** Info about the workspace creation state */
Expand Down Expand Up @@ -5004,7 +5004,7 @@ export type GetWorkspaceWithJoinRequestsQueryVariables = Exact<{
}>;


export type GetWorkspaceWithJoinRequestsQuery = { __typename?: 'Query', workspace: { __typename?: 'Workspace', id: string, name: string, slug: string, updatedAt: string, createdAt: string, role?: string | null, readOnly: boolean, adminWorkspacesJoinRequests: { __typename?: 'WorkspaceJoinRequestCollection', cursor?: string | null, totalCount: number, items: Array<{ __typename?: 'WorkspaceJoinRequest', status: WorkspaceJoinRequestStatus, createdAt: string, user: { __typename?: 'LimitedUser', id: string, name: string }, workspace: { __typename?: 'Workspace', id: string, name: string } }> } } };
export type GetWorkspaceWithJoinRequestsQuery = { __typename?: 'Query', workspace: { __typename?: 'Workspace', id: string, name: string, slug: string, updatedAt: string, createdAt: string, role?: string | null, readOnly: boolean, adminWorkspacesJoinRequests?: { __typename?: 'WorkspaceJoinRequestCollection', cursor?: string | null, totalCount: number, items: Array<{ __typename?: 'WorkspaceJoinRequest', status: WorkspaceJoinRequestStatus, createdAt: string, user: { __typename?: 'LimitedUser', id: string, name: string }, workspace: { __typename?: 'Workspace', id: string, name: string } }> } | null } };

export type BasicStreamAccessRequestFieldsFragment = { __typename?: 'StreamAccessRequest', id: string, requesterId: string, streamId: string, createdAt: string, requester: { __typename?: 'LimitedUser', id: string, name: string } };

Expand Down

0 comments on commit 57751db

Please sign in to comment.