refactor: refactoring google_drive connector, support token_refresh, … #61
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do
This pull request includes several changes to improve the Google Drive connector and other components. The most important changes include enhancements to the OAuth flow, modifications to the data source structure, and updates to the search functionality.
Google Drive Connector Enhancements:
plugins/connectors/google_drive/api.go
,plugins/connectors/google_drive/plugin.go
). [1] [2] [3] [4] [5] [6]plugins/connectors/google_drive/api.go
).plugins/connectors/google_drive/files.go
). [1] [2] [3] [4] [5]Data Source Structure Modifications:
Config
field in theConnectorConfig
struct frommap[string]interface{}
tointerface{}
to allow more flexible configurations (modules/common/datasource.go
).Search Functionality Updates:
rich_category
to the search API and included logic to handle this parameter in search queries (modules/search/search.go
). [1] [2]Documentation Updates:
docs/content.en/docs/references/connectors/google_drive.md
). [1] [2]Additional Changes:
plugins/connectors/google_drive/api.go
). [1] [2]These changes aim to enhance the functionality and reliability of the Google Drive connector, improve the flexibility of data source configurations, and extend the search capabilities.
Rationale for this change
Standards checklist