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

remote add: should gdrive://root be an error? #3586

Closed
jorgeorpinel opened this issue Apr 2, 2020 · 4 comments
Closed

remote add: should gdrive://root be an error? #3586

jorgeorpinel opened this issue Apr 2, 2020 · 4 comments
Labels
discussion requires active participation to reach a conclusion

Comments

@jorgeorpinel
Copy link
Contributor

Extracted from iterative/dvc.org#1096 (review)

The URL gdrive://root means the root of your Google Drive (aka "My Drive") but maybe it's a bad practice to use that, which can be shared with a bunch of other files and Google Docs, so easy to mess with. In this case using this URL should throw an error and the documentation should specify it's not allowed and why.

On the other hand, maybe some users will create a GDrive acct just for this and using root as the URL would allow them not having to manually go into the Drive and create a folder to use as remote storage. In this case no action is needed, maybe just re-add the root URL example to the docs.

@efiop
Copy link
Contributor

efiop commented Apr 2, 2020

On the other hand, maybe some users will create a GDrive acct just for this and using root as the URL would allow them not having to manually go into the Drive and create a folder to use as remote storage. In this case no action is needed, maybe just re-add the root URL example to the docs.

Makes sense to me to leave it as is for that reason, unless you have a better way to keep the flexibility but in a nicer way. CC @shcheklein

@shcheklein
Copy link
Member

Yes, I even created a checkbox in the #2865 for this :)

Quick considerations:

  1. (not related to this ticket even) gdrive://root/something does not make sense for the team - only personal use. Need to adjust docs a bit. Workaround - users share that dir and do remote modify url later if they decide to share the project, but commits they made before with the previous URL to the remote won't work for others.

  2. In 99% of cases path equals gdrive://rootis an error indeed. Still quite hesitant to act only because of this - I would for users to complain. It might be we don't account for some nice use case (automation?).

  3. I think I created that checkbox to even before we realized that in case of shared folders path like gdrive://<folder-ID> (mind no path here, similar to gdrive://root) makes total sense. And we need to support no-path URLs in code anyways. So, that checkbox is less relevant now.

@jorgeorpinel
Copy link
Contributor Author

OK, addressing for docs in iterative/dvc.org#1096 (review). Since no changes are needed in core, I'm closing here.

@shcheklein I'm assuming you'll update the checkbox you mentioned as needed.

@shcheklein
Copy link
Member

@jorgeorpinel yes, I put a link to this ticket to read this when time comes to that checkbox. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion requires active participation to reach a conclusion
Projects
None yet
Development

No branches or pull requests

3 participants