feat(server): add doc meta for ignored docs (#12021)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - Ignored documents in workspace embedding now display additional metadata, including document title, creation and update timestamps, and the names and avatars of users who created or updated the document.
- **Enhancements**
  - The list of ignored documents provides richer information for easier identification and management within the workspace.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
darkskygit
2025-04-28 11:56:09 +00:00
parent 9d21d13a5e
commit 21dc550b9d
8 changed files with 111 additions and 4 deletions

View File

@@ -11,6 +11,12 @@ query getWorkspaceEmbeddingIgnoredDocs($workspaceId: String!, $pagination: Pagin
node {
docId
createdAt
docCreatedAt
docUpdatedAt
title
createdBy
createdByAvatar
updatedBy
}
}
}

View File

@@ -830,6 +830,12 @@ export const getWorkspaceEmbeddingIgnoredDocsQuery = {
node {
docId
createdAt
docCreatedAt
docUpdatedAt
title
createdBy
createdByAvatar
updatedBy
}
}
}

View File

@@ -399,7 +399,13 @@ export interface CopilotWorkspaceFileTypeEdge {
export interface CopilotWorkspaceIgnoredDoc {
__typename?: 'CopilotWorkspaceIgnoredDoc';
createdAt: Scalars['DateTime']['output'];
createdBy: Maybe<Scalars['String']['output']>;
createdByAvatar: Maybe<Scalars['String']['output']>;
docCreatedAt: Maybe<Scalars['DateTime']['output']>;
docId: Scalars['String']['output'];
docUpdatedAt: Maybe<Scalars['DateTime']['output']>;
title: Maybe<Scalars['String']['output']>;
updatedBy: Maybe<Scalars['String']['output']>;
}
export interface CopilotWorkspaceIgnoredDocTypeEdge {
@@ -3374,6 +3380,12 @@ export type GetWorkspaceEmbeddingIgnoredDocsQuery = {
__typename?: 'CopilotWorkspaceIgnoredDoc';
docId: string;
createdAt: string;
docCreatedAt: string | null;
docUpdatedAt: string | null;
title: string | null;
createdBy: string | null;
createdByAvatar: string | null;
updatedBy: string | null;
};
}>;
};