-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor/google drive module #392
Conversation
if PREFIX == "dev-": | ||
google_service.google_service_command(client, body, respond) | ||
else: | ||
respond("This command is only available in the dev environment.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that you added this here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I figured I should setup a toggle instead of just leaving it hanging in there in prod 😅
.execute() | ||
) | ||
return results.get("files", []) | ||
def google_service_command(client, body, respond): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nitpicky, but I would put some spacing between the end of the first function and the def googe_service_command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app/tests/integrations/google_workspace/test_google_drive_module.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Pat Heard <[email protected]>
GitHub Action status on 24c101e generated by comment-failure-action Lint, format and test code
Build containers CINo jobs failed 👍 |
GitHub Action status on dab733e generated by comment-failure-action Lint, format and test code
Build containers CINo jobs failed 👍 |
GitHub Action status on 3b73968 generated by comment-failure-action Lint, format and test code
Build containers CINo jobs failed 👍 |
Summary | Résumé
Fixed:
Refactor the Google Drive integration:
Note: none of the changes below affect the app in production for the moment
TODO: Add the remaining functions to their respective modules and update the imports in the various commands: