-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add final set of Datacite field methods #189
Conversation
Why these changes are being introduced: * Finish refactoring Datacite transform to use field methods How this addresses that need: * Add field methods and associated private methods for notes, publishers, related_items, rights, subjects, and summary * Add unit tests for new field methods Side effects of this change: * None Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/TIMX-284
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.
Awesome work! Just a few questions/suggestions for ya'.
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.
Left a couple of suggestions, but nothing blocking from me. Looking good. And (pre)congrats on the first source in the books!
As mentioned, I think it's pretty exciting to see get_optional_fields()
as a list of method calls, knowing this could very easily be refactored again (if decided we go that route) to a higher up calling context.
* Remove unnecessary list pattern from get_content_types, get_languages, and get_publishers methods * Refactor _get_description_notes method to remove unnecessary var and add description_type var * Refactor get_subjects method to use defaultdict
@jonavellecuerdo Pushed a new commit! |
Purpose and background context
Finish refactoring
Datacite
transform to use field methods.How can a reviewer manually see the effects of these changes?
Run the following command to see that the
Datacite
transform still transforms a source file:Includes new or updated dependencies?
NO
Changes expectations for external applications?
NO
What are the relevant tickets?
Developer
Code Reviewer(s)