Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OAuth2 to GoogleDrive connector #2

Merged
merged 27 commits into from
Sep 29, 2020

Conversation

alexbourret
Copy link
Collaborator

No description provided.

Copy link

@alexcombessie alexcombessie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have quickly looked at the code and had minor comments and suggestions on the code itself.

Otherwise I tried the plugin with OAuth on my local DSS 8.0. It worked correctly for the Auth part and I could read Google Drive datasets and folders. But I encountered some issues, especially for write operations:

python-lib/dku_googledrive/googledrive_helpers.py Outdated Show resolved Hide resolved
python-lib/dku_googledrive/googledrive_helpers.py Outdated Show resolved Hide resolved
python-lib/dku_googledrive/googledrive_helpers.py Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
python-lib/dku_googledrive/session.py Outdated Show resolved Hide resolved
python-lib/dku_googledrive/session.py Outdated Show resolved Hide resolved
import os, sys

## Add stuff to the path to enable exec outside of DSS
plugin_root = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for that, the template Makefile: https://github.com/dataiku/dss-plugin-template/blob/master/Makefile takes care of it.

plugin.json Show resolved Hide resolved
code-env/python/spec/requirements.txt Outdated Show resolved Hide resolved
@alexcombessie
Copy link

Hi @alexbourret,
I just tried again. This time it's working, but I still see a lot of ImportErrors in the logs which are not raise. Could we fix it / remove it?
See job diag:
dss-job-diag-TESTGOOGLEDRIVEPLUGINOAUTH-Build_gdfolder_2020-09-21T16-25-00.266_.zip

@alexbourret
Copy link
Collaborator Author

@alexcombessie I just implemented this proposed solution and it seems to fix the error messages...

@alexbourret alexbourret merged commit 8d72867 into master Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants