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

Provider views rewrite (.files, .folders => .partialTree) #5050

Draft
wants to merge 159 commits into
base: 4.x
Choose a base branch
from

Conversation

lakesare
Copy link
Contributor

@lakesare lakesare commented Mar 29, 2024

Description


TODOs

  • For each provider, check if 1. signing in 2. checking deeply nested folders 3. downloading them 4. signing out works.
    [To reviewers: I'll do it, no need to check all providers yourselves]

  • Some tests are failing atm - that's because of .ts/.tsx/no-extension import differences.
    [To reviewers: I'll handle it while reviews are ongoing, shouldn't affect the code much]


TODOs for next PRs


Notes to reviewers

  • I made deliberate effort not to touch the folder structure at all (for ease of reviewing & because we didn't set our minds on which one we'd prefer yet).
  • Don't worry about 1k of added lines - this PR actually reduces the number of lines by a few hundred lines - the increase is due to test files/comments.
  • We discussed a shared .env in Slack - it's underway, but not yet fully ready.
    If you need access to a particular provider - message me, and I'll send you the credentials.

This PR spans 2.5k lines across 46 files.

I separated some PRs from this PR, however further separation will make it harder to review rather than easier, this is largely a holistic change.

I think a sane way to review this PR (apart from looking through "Files changed" on github) would be to look through the code in /uppy/packages/@uppy/provider-views folder locally in your editor - just read the files and see if they make sense/if something worries you. Most of these files were updated/rewritten.

GoogleDrive
- travelling down into folders works
- checking a file works
- breadcrumbs DONT work

This comment was marked as off-topic.

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