aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/import_orcid.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-12-16 11:24:53 -0800
committerBryan Newbold <bnewbold@robocracy.org>2020-12-16 11:24:55 -0800
commitd6ad61c28ddf5bd7dc57f9766ce57d5b48022d3e (patch)
treee98e1ca5c2dbbb22b10b43923880fe455807325d /python/tests/import_orcid.py
parentf7a75a019c9dee35542e6f92ec37937df36ff756 (diff)
downloadfatcat-d6ad61c28ddf5bd7dc57f9766ce57d5b48022d3e.tar.gz
fatcat-d6ad61c28ddf5bd7dc57f9766ce57d5b48022d3e.zip
refactor release_to_elasticsearch transform
This method was huge an monolithic. This commit splits out the content and container specific sections into helper functions to make it more managable. This involved refactoring to make many flags ("is_*" and "in_*") part of the output dict through the entire code path, allowing simple update() calls on the dict. Noting that in the future should refactor to use a type-annotated class for the elasticsearch output object. Perhaps something auto-generated from the ES schema itself (JSON files).
Diffstat (limited to 'python/tests/import_orcid.py')
0 files changed, 0 insertions, 0 deletions