mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-26 11:58:28 +02:00
add creator id to cc pair (#3121)
* add creator id to cc pair * fix alembic head * show email instead of UUID * safer check on email * make foreign key relationships optional * always allow creator to edit (per hagen) * use primary join * no index_doc_batch spam * try this again --------- Co-authored-by: Richard Kuo <rkuo@rkuo.com>
This commit is contained in:
@@ -208,6 +208,10 @@ function Main({ ccPairId }: { ccPairId: number }) {
|
||||
disabled={ccPair.status === ConnectorCredentialPairStatus.PAUSED}
|
||||
isDeleting={isDeleting}
|
||||
/>
|
||||
<div className="text-sm mt-1">
|
||||
Creator:{" "}
|
||||
<b className="text-emphasis">{ccPair.creator_email ?? "Unknown"}</b>
|
||||
</div>
|
||||
<div className="text-sm mt-1">
|
||||
Total Documents Indexed:{" "}
|
||||
<b className="text-emphasis">{ccPair.num_docs_indexed}</b>
|
||||
|
@@ -6,6 +6,7 @@ import {
|
||||
ValidStatuses,
|
||||
AccessType,
|
||||
} from "@/lib/types";
|
||||
import { UUID } from "crypto";
|
||||
|
||||
export enum ConnectorCredentialPairStatus {
|
||||
ACTIVE = "ACTIVE",
|
||||
@@ -27,6 +28,8 @@ export interface CCPairFullInfo {
|
||||
is_editable_for_current_user: boolean;
|
||||
deletion_failure_message: string | null;
|
||||
indexing: boolean;
|
||||
creator: UUID | null;
|
||||
creator_email: string | null;
|
||||
}
|
||||
|
||||
export interface PaginatedIndexAttempts {
|
||||
|
Reference in New Issue
Block a user