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

Google drive shared with me #2758

Merged
merged 12 commits into from
Mar 31, 2021
Merged

Google drive shared with me #2758

merged 12 commits into from
Mar 31, 2021

Conversation

mifi
Copy link
Contributor

@mifi mifi commented Feb 8, 2021

Fixes #2739

It will now include files that are shared with me (earlier did not because they didn't have parents set)

I also refactored the function to use async/await for easier reading :)

@mifi
Copy link
Contributor Author

mifi commented Feb 8, 2021

I didn't manage to get the tests to work when using the promise version of purest. Something not right with the mocking. See last commit. If you have any pro tip please let me know.

@mifi mifi self-assigned this Feb 16, 2021
@goto-bus-stop
Copy link
Contributor

Thanks! This PR works great but I'm not sure that we want this behaviour as is. I was quite surprised by just how many documents I had apparently accessed through links in the past, and it was confusing that they were interspersed with my own files.

I think the functionality makes sense, but maybe we'd instead want to show a fake "Shared with me" folder in the root, a bit like how team drives are now? In the https://drive.google.com UI it's also a separate tab.

@mifi
Copy link
Contributor Author

mifi commented Mar 22, 2021

Have now implemented a virtual "Shared with me" folder in root. The icon doesn't look very coherent with the rest of google drive icons, but it works:
Screenshot 2021-03-22 at 19 00 56

Also I'm not sure if we should (or how to) disable the checkbox in front of this virtual directory. If someone chooses all files shared with me by accident, it's potentially gonna be a LOT of files an requests.

@mifi
Copy link
Contributor Author

mifi commented Mar 29, 2021

now even e2e tests are succeeding!

@arturi arturi merged commit ceadd2e into master Mar 31, 2021
@arturi arturi deleted the google-drive-shared-with-me branch March 31, 2021 09:12
@arturi
Copy link
Contributor

arturi commented Mar 31, 2021

Thank you for the neat feature!

HeavenFox pushed a commit to docsend/uppy that referenced this pull request Jun 27, 2023
* Refactor list to use promises

* Include shared with me files

Fixes transloadit#2739

* revert usage of promise version of purest

it fails tests

* fix bugs

* fix lint warnings

* implement shared with me virtual dir

* pull out adaptData (it's not a public method, eslint warn)

* fix test

* disable checkbox for “shared with me”

//cc @mifi

Co-authored-by: Kevin van Zonneveld <kevin@vanzonneveld.net>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants