Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add deposit CLI command Why these changes are being introduced: * A CLI command is needed for running the workflows's deposit functionality How this addresses that need: * Rename BaseWorkflow > Workflow across repo * Add s3-bucket, output-queue, and email-recipients CLI params * Add deposit CLI command * Add DemoWorkflow for testing purposes * Refactor Workflow class to use init defaults instead of some class attributes * Refactor Workflow.load method to optionally override class attributes with CLI params * Add _get_subclasses method for collecting all subclasses * Update _build_bitstream_dict method to ignore non-file values and the metadata.csv file * Add deposit and reconcile_discrepancies_logged CLI tests * Add metadata mapping for DemoWorkflow Side effects of this change: * None Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/IN-1104 * Update Pipfile.lock * Updates based on discussion in PR #68 * Update click option docstrings * Make email-recipients required and update type hint to indicate it is a comma-delimited string * Refactor Workflow.run method to include try/except block and return a dict summarizing the results of the submission * Add new unit tests for Workflow.run method to account for code changes * Further updates based on discussion in PR #68 * Refactor Workflow __init__ methods to better utilize defaults and named args * Refactor Workflow.run method's return object to provide a summary of the submission results * Remove Workflow.load method as it is now unnecessary and update CLI to call Workflow.get_workflow method * Update type hinting and processing for email-recipients param
- Loading branch information