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

Improve import-all functionality #15

Merged
merged 1 commit into from
Mar 31, 2018
Merged

Improve import-all functionality #15

merged 1 commit into from
Mar 31, 2018

Conversation

samwilson
Copy link
Collaborator

@samwilson samwilson commented Mar 15, 2018

Fix import-all functionality.

Refs: #12

@samwilson samwilson self-assigned this Mar 15, 2018
@samwilson samwilson force-pushed the import-all branch 6 times, most recently from b8c044b to 2a486c9 Compare March 22, 2018 09:15
@samwilson samwilson force-pushed the import-all branch 3 times, most recently from dd90fac to faa4685 Compare March 28, 2018 13:00
@samwilson samwilson changed the title [Work-in-progress] Improve import-all functionality Improve import-all functionality Mar 29, 2018
@samwilson
Copy link
Collaborator Author

I think the last thing to fix here is a better error message for when it times out downloading from Flickr. Unfortunately, I can't replicate that error... I'll try from a separate machine soon. Should it retry? Should we slow the importing process down? It's easy enough to run the import again, I figure, so maybe it's just a matter of catching the error to make it look nicer, and logging it for future reference. Sound okay?

This switches the import-all function to work with any number of
images and without timing out by paging through a user's photos
and importing each photo. The API endpoints are renamed (as a
new one is introduced).

Tag importing is fixed to use the 'raw' value rather than the
spaceless normalized one.

Checksums of files are also checked before import, along with
filenames.

Logging is added throughout the import process.

A button is added to stop the import before it's finished.

Refs: #12
@samwilson
Copy link
Collaborator Author

I've improved the bit where it finds the largest size photo, and for the (usual) case of there being an original available it doesn't need to do an extra API call, so that should help. The rate-limiting is still probably an issue, but I think not a blocker for this patch.

I think this is ready for merging.

@samwilson samwilson merged commit c0128f8 into master Mar 31, 2018
@samwilson samwilson deleted the import-all branch March 31, 2018 05:55
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.

1 participant