Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scottx611x/workflow launching and monitoring (#1949)
* Add galaxy_workflow_task_group_id field to AnalysisStatus * Add field `galaxy_import_state` to AnalysisStatus * Update docstring * Organize analysis_manager.tasks * Add some constants to Tool model * Add methods to Tool model * Update docstring * Add test coverage * Add decorators to designate methods for specific Tool types * Update tests * Fix Test * Add test coverage for `_get_nesting_string` * Organizing these methods in a prior commit made for a difficult to read diff, and isn't crucial * Remove redundant decorator * Remove redundant tests * Remove unutilized function * Designate `_launch_workflow` to only work for workflow-based tools * Add test for update_galaxy_data * Add test coverage for `_invoke_tool_based_galaxy_workflow` * Rename method and adhere to style guide * Fix naming * Consolidate migrations * Just use a placeholder method for now * DRY * Add appropriate error msg and fail task * Fix typo * Update docdtring * Fix test * Add test coverage for `_check_galaxy_history_state` * Polymorphic approach for Tools since Tools were becoming too heavily saturated with Workflow-based Tool specific methods * Add test coverage for `_run_tool_based_galaxy_file_import` * Consolidate migrations * Add `galaxy_connection` property and more class methods to WorkflowTool * Add `set_galaxy_workflow_task_group_id` to AnalysisStatus * Utilize `set_galaxy_workflow_task_group_id()` * Update test mock arg order, add test coverage for `_run_tool_based_galaxy_workflow` * Add test coverage * Fix test * Add api test to check that polymorphism behaves appropriately * DRY * Fix Tests * Fix ordering of arguments * Method renaming and Docstring updates * Rename method to: `import_library_dataset_to_history` * We already have access to the analysis through Tool here * Add abstract `launch()` to Tool and test it * Refactor `_get_nesting_string` into another step: `_flatten_file_relationships_nesting` * Pull out parameters common to both Tools and ToolDefinitions and use splat syntax * Set this value upon a Tool's creation * DRY and style fix * Add test coverage for `_flatten_file_relationships_nesting()` * Update `_get_file_relationships_galaxy` to access value at new location
- Loading branch information