Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet committed Jan 16, 2025
1 parent 400aadd commit a842a90
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
8 changes: 3 additions & 5 deletions connectors/src/connectors/google_drive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
isGoogleDriveFolder,
isGoogleDriveSpreadSheetFile,
} from "@connectors/connectors/google_drive/temporal/mime_types";
import type { Sheet } from "@connectors/connectors/google_drive/temporal/spreadsheets";
import {
driveObjectToDustType,
getAuthObject,
Expand Down Expand Up @@ -67,11 +68,8 @@ import { terminateAllWorkflowsForConnectorId } from "@connectors/lib/temporal";
import logger from "@connectors/logger/logger";
import { ConnectorResource } from "@connectors/resources/connector_resource";
import type { DataSourceConfig } from "@connectors/types/data_source_config.js";
import {
FILE_ATTRIBUTES_TO_FETCH,
GoogleDriveObjectType,
} from "@connectors/types/google_drive";
import { Sheet } from "@connectors/connectors/google_drive/temporal/spreadsheets";
import type { GoogleDriveObjectType } from "@connectors/types/google_drive";
import { FILE_ATTRIBUTES_TO_FETCH } from "@connectors/types/google_drive";

export class GoogleDriveConnectorManager extends BaseConnectorManager<null> {
static async create({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import StatsD from "hot-shots";
import PQueue from "p-queue";
import { Op } from "sequelize";

import { getSourceUrlForGoogleDriveFiles } from "@connectors/connectors/google_drive";
import {
GOOGLE_DRIVE_SHARED_WITH_ME_VIRTUAL_ID,
GOOGLE_DRIVE_USER_SPACE_VIRTUAL_DRIVE_ID,
Expand Down Expand Up @@ -46,7 +47,6 @@ import { ConnectorResource } from "@connectors/resources/connector_resource";
import { sequelizeConnection } from "@connectors/resources/storage";
import type { GoogleDriveObjectType } from "@connectors/types/google_drive";
import { FILE_ATTRIBUTES_TO_FETCH } from "@connectors/types/google_drive";
import { getSourceUrlForGoogleDriveFiles } from "@connectors/connectors/google_drive";

const FILES_SYNC_CONCURRENCY = 10;
const FILES_GC_CONCURRENCY = 5;
Expand Down
2 changes: 0 additions & 2 deletions connectors/src/connectors/google_drive/temporal/mime_types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import type { GoogleDriveFiles } from "@connectors/lib/models/google_drive";

export const MIME_TYPES_TO_EXPORT: { [key: string]: string } = {
"application/vnd.google-apps.document": "text/plain",
"application/vnd.google-apps.presentation": "text/plain",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type { sheets_v4 } from "googleapis";
import { google } from "googleapis";
import type { OAuth2Client } from "googleapis-common";

import { getSourceUrlForGoogleDriveSheet } from "@connectors/connectors/google_drive";
import { getFileParentsMemoized } from "@connectors/connectors/google_drive/lib/hierarchy";
import { getInternalId } from "@connectors/connectors/google_drive/temporal/utils";
import { dataSourceConfigFromConnector } from "@connectors/lib/api/data_source_config";
Expand All @@ -27,7 +28,6 @@ import type { Logger } from "@connectors/logger/logger";
import logger from "@connectors/logger/logger";
import { ConnectorResource } from "@connectors/resources/connector_resource";
import type { GoogleDriveObjectType } from "@connectors/types/google_drive";
import { getSourceUrlForGoogleDriveSheet } from "@connectors/connectors/google_drive";

const MAXIMUM_NUMBER_OF_GSHEET_ROWS = 50000;

Expand Down

0 comments on commit a842a90

Please sign in to comment.