Skip to content

[source-google-drive] return deleted records too #58580

Open
@parthiv11

Description

@parthiv11

Connector Name

souce-google-drive

Connector Version

v0.3.3

What step the error happened?

During the sync

Relevant information

source-google-drive returns deleted records as well from folder.
it is due to the query passed to find the files
current query: f"'{folder_id}' in parents" --> returns all files in folder regardless of whether they are deleted or not
suggested fix: f"'{folder_id}' in parents and trashed = false" --> this will return only files in the folder that are not trashed

refrence:

Relevant log output

Contribute

  • Yes, I want to contribute

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions