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

Dropbox api upgrade #302

Conversation

patroqueeet
Copy link

@patroqueeet patroqueeet commented May 3, 2017

adressing #301

tests not proven as #227#issuecomment-298834277

but backup worked for me

@jschneier
Copy link
Owner

Thanks, glad to hear you got it working. I think I'm going to remove the progress bar. Also things like xrange are Python 2.x only but this looks okay - I can clean up the testing if you'd like.

@patroqueeet
Copy link
Author

patroqueeet commented May 4, 2017

I added one test according to the other patterns you used.

for the progress bar: maybe based on setting? reason I added it was, that I'm compressing the files to upload and it's about 2.5GB for me. the uplink to dropbox makes 19MB/s so 2.5GB will take some time. to calm the user it felt good to have some signs of life showing :) - your decision :)

I also would be interested in the reason of the test fail because, I'm considering switching my own projects to tox...

let me know if there are any questions!

@zuck
Copy link
Contributor

zuck commented May 15, 2017

Tic-toc...June 28, 2017 is very close now...Merging this PR is VERY urgent!!

@@ -59,6 +94,31 @@ def __init__(self, oauth2_access_token=None, root_path=None):
"'settings.DROPBOX_OAUTH2_TOKEN'.")
self.client = Dropbox(oauth2_access_token)

def _chunked_upload(self, content, dest_path):
"""use chunked upload session for large files. stolen from
https://goo.gl/4XV0yT"""
Copy link
Contributor

Choose a reason for hiding this comment

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

@scps950707
Copy link

any news?

@zuck
Copy link
Contributor

zuck commented Jul 12, 2017

Deadline moved to September 28th, 2017:

https://blogs.dropbox.com/developers/2017/06/updated-api-v1-deprecation-timeline/

We have a little more time, but this issue has to be fixed ASAP, please!

EDIT: Sorry @jschneier, I didn't notice the change was already implemented with release 1.6! So maybe better to close this PR to avoid confusion...Thanks!

@jschneier
Copy link
Owner

@scps950707 @zuck the API upgrade is done (in master), the only thing missing from this PR is the large files upload.

@jschneier
Copy link
Owner

All of these are now fixed in master.

@jschneier jschneier closed this Aug 14, 2017
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.

5 participants