From 2747b0245a7987443f0dfd535a2d218750655591 Mon Sep 17 00:00:00 2001 From: Lucas Massemin Date: Fri, 10 Jan 2025 18:10:02 +0100 Subject: [PATCH] Removed all occurrences of dustTableId (#9892) * Removed all occurrences of dustTableId * No unused import --- connectors/src/connectors/google_drive/index.ts | 5 ----- connectors/src/connectors/notion/index.ts | 3 --- connectors/src/connectors/slack/index.ts | 2 -- 3 files changed, 10 deletions(-) diff --git a/connectors/src/connectors/google_drive/index.ts b/connectors/src/connectors/google_drive/index.ts index b504633b1d49..ec2caf0b40a0 100644 --- a/connectors/src/connectors/google_drive/index.ts +++ b/connectors/src/connectors/google_drive/index.ts @@ -8,7 +8,6 @@ import { Err, getGoogleIdsFromSheetContentNodeInternalId, getGoogleSheetContentNodeInternalId, - getGoogleSheetTableId, isGoogleSheetContentNodeInternalId, Ok, removeNulls, @@ -358,10 +357,6 @@ export class GoogleDriveConnectorManager extends BaseConnectorManager { sourceUrl: null, expandable: false, permission: "read", - dustTableId: getGoogleSheetTableId( - s.driveFileId, - s.driveSheetId - ), }; }) ); diff --git a/connectors/src/connectors/notion/index.ts b/connectors/src/connectors/notion/index.ts index fea202ad3086..63b285c753ea 100644 --- a/connectors/src/connectors/notion/index.ts +++ b/connectors/src/connectors/notion/index.ts @@ -1,7 +1,6 @@ import type { ContentNode, ContentNodesViewType, Result } from "@dust-tt/types"; import { Err, - getNotionDatabaseTableId, getOAuthConnectionAccessToken, NOTION_MIME_TYPES, Ok, @@ -566,7 +565,6 @@ export class NotionConnectorManager extends BaseConnectorManager { permission: "read", dustDocumentId: nodeIdFromNotionId(page.notionPageId), lastUpdatedAt: page.lastUpsertedTs?.getTime() || null, - dustTableId: null, })) ); @@ -584,7 +582,6 @@ export class NotionConnectorManager extends BaseConnectorManager { permission: "read", dustDocumentId: nodeIdFromNotionId(`database-${db.notionDatabaseId}`), lastUpdatedAt: null, - dustTableId: getNotionDatabaseTableId(db.notionDatabaseId), })); const contentNodes = pageNodes.concat(dbNodes); diff --git a/connectors/src/connectors/slack/index.ts b/connectors/src/connectors/slack/index.ts index 9843b63e7686..86347d0d92ca 100644 --- a/connectors/src/connectors/slack/index.ts +++ b/connectors/src/connectors/slack/index.ts @@ -407,7 +407,6 @@ export class SlackConnectorManager extends BaseConnectorManager