-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor SQS functionality and add new high-level methods #33
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
Conversation
ghukill
left a comment
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.
Seems like a good time to tackle some of these renamings and type tweaks (e.g. when required vs optional). Looks good!
Why these changes are being introduced: * The SQS functionality copied from wiley-deposits needs to be refactored to accommodate additional workflows. How this addresses that need: * Update ItemSubmission class to store item_identifier rather than metadata_s3_key as an attribute * Update ItemSubmission.upload_dspace_metadata method signature to accept s3_prefix * Add ItemSubmission.send_submission_message method and corresponding unit test * Rename SQSClient.create_dss_message_attributes param package_id > identifier for clarity * Update SQSClient.create_dss_message_body to handle multiple bitstreams * Rename method to SQSClient.validate_result_message to clarify the type of SQS message being validated * Update BaseWorkflow.s3_prefix type hinting * Update BaseWorkflow.run method and corresponding unit test * Refactor BaseWorkflow.item_submission_iter to account for the new ItemSubmission.item_identifier attribute * Add s3 to metadata_uri and bitstream_uris attribute names across repo for clarity Side effects of this change: * None Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/IN-1128
* Add links to DSS message spec in docstrings * Update tests after SimpleCSV PR merge
6c93bdd to
69a88f3
Compare
Pull Request Test Coverage Report for Build 12602471343Details
💛 - Coveralls |
jonavellecuerdo
left a comment
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.
Looking good! I have a few potential change requests.
* Rename identifier > item_identifier * Rename s3_prefix > prefix
jonavellecuerdo
left a comment
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.
Nice! 🎉
Purpose and background context
After trying to create higher-level methods, it became clear that the SQS functionality copied from
wiley-depositsneeded to be refactored.How can a reviewer manually see the effects of these changes?
Not possible yet
Includes new or updated dependencies?
NO
Changes expectations for external applications?
NO
What are the relevant tickets?
Developer
Code Reviewer(s)