-
Notifications
You must be signed in to change notification settings - Fork 24
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
File import bug fixes #2723
Merged
Merged
File import bug fixes #2723
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a00d8ca
Terminate file import tasks on FileStoreItem deletion and code cleanup
hackdna 697c994
Merge branch 'develop' into hackdna/terminate-file-import
hackdna 95a6330
Attempt to cancel file import on every file deletion, code cleanup
hackdna ced0c65
Stop import_file task only when task ID is available and update unit …
hackdna 7839c05
Add unit tests for file import task termination on file delete
hackdna cd5083f
Avoid canceling file import when not replacing the datafile, add unit…
hackdna b400d1b
Add unit tests for data file symlinking and test cleanup
hackdna cd104bd
PEP8 fix and test code cleanup
hackdna b59fb9e
Test code cleanup
hackdna 34088dd
Remove datafile and import_file task updates from FileStoreItem.save(…
hackdna edc1055
Cleanup update_solr_index()
hackdna 325b08f
Merge branch 'develop' into hackdna/terminate-file-import
hackdna 8d57457
Improve logging in delete_datafile() and remove commented out code fr…
hackdna d9e83a1
Move files from file store temp into the file store dir during import
hackdna 43fe610
Make _mkdir() more robust and update import_file to avoid removing em…
hackdna de2a0f5
Improve logging in Celery tasks
hackdna b67101b
Improve logging in CheckDataFilesView
hackdna 8b9cf88
Refactor import_file task to fail in case of errors and make sure fil…
hackdna 38b2976
Merge branch 'develop' into hackdna/terminate-file-import
hackdna 2c05fd5
Improve directory making logic
hackdna 4b985f4
Code cleanup
hackdna File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just call this
download_url
and below useimport_state
/import_status
? It seems thatget_datafile_url()
won't return a FileStoreItem's import state, andget_import_status()
won't return download url information.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this would be great. However, it would require changing the front-end code to deal with file import state and download URL separately.
So, I simplified the logic as much as I could without going too far down the rabbit hole and renamed this variable to reflect its actual current use.