-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move datasets between 4CAT servers (#375)
* Export/import datasets between 4CAT servers * move datasource and add init, add new setting to allow export, pass 4CAT version for comparison, run some tests, I had no idea where you left off, so I just wanted to test it and see that way. Made some fixes and now see that you worked up until the log and actual data. * use version function for comparison this uses the commit, which makes sense at the moment, but perhaps not in the long term. * close, but children fail; possibly just zip files * use send_from_directory (tested on 1.5 gig files successfully); cleaned up some errors/logging and added notes * Use custom exception instead of TypeError when dataset not found * Use 401 HTTP status for login form * Ignore hidden files in cleanup worker * Ensure unique dataset key and allow changing keys * Allow workers to set dataset key manually * MANY CHANGES * Don't print log to stdout twice when not running as daemon * Remove stray debug print * Show original timestamp for imported datasets * Dataset form logic * Don't show empty dataset status * Forbid importing unfinished datasets * Not using this file * Fix copied comment * Fix interrupt routine and clean up half-imported data * Catch dataset not found error in expiration worker * Hide anon/label options when importing * Fix delete button on dataset creation page * Fix interrupting imports * Remove "filtered from" on imported datasets * Add DESCRIPTION.md for import data source * Better markdown * return error() not raise * use replace on result_file to use new_dataset.key (`with_stem` is python3.9 and newer) * Clarify some comments * get_software_version() -> get_software_commit() * Use version instead of commit to determine migration compatibility * More commentary * Use reserve_results_file() to ensure correct import data path --------- Co-authored-by: Dale Wahl <[email protected]>
- Loading branch information
Showing
28 changed files
with
738 additions
and
84 deletions.
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
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.