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

Gdrive: Ensure we have the valid rights before creating the connector #2626

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

PopDaph
Copy link
Contributor

@PopDaph PopDaph commented Nov 22, 2023

https://github.com/dust-tt/tasks/issues/247

We now display an error if we don't have both required permission (instead of allowing it and then breaking in the connector).

Error is ugly but that was already the case before, so won't fix in this PR 🙏🏻
Screenshot 2023-11-22 at 17 53 39

@PopDaph PopDaph changed the title Gdrive: unsure we have the valid rights before creating the connector Gdrive: Ensure we have the valid rights before creating the connector Nov 22, 2023
@PopDaph PopDaph requested review from lasryaric and spolu November 22, 2023 16:54
Copy link
Contributor

@spolu spolu left a comment

Choose a reason for hiding this comment

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

LGTM but can we parallelise these calls? 🙏

@PopDaph PopDaph force-pushed the gdrive-sanity-check branch from de15b38 to 2a9e2f1 Compare November 22, 2023 18:24
@lasryaric
Copy link
Contributor

Logic looks good to me but why use the .then() syntax given that we use await everywhere?

@PopDaph PopDaph merged commit 74120a4 into main Nov 23, 2023
2 checks passed
@PopDaph PopDaph deleted the gdrive-sanity-check branch November 23, 2023 09:00
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