diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-12-16 11:24:53 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-12-16 11:24:55 -0800 |
commit | d6ad61c28ddf5bd7dc57f9766ce57d5b48022d3e (patch) | |
tree | e98e1ca5c2dbbb22b10b43923880fe455807325d /rust/migrations/00000000000000_diesel_initial_setup/up.sql | |
parent | f7a75a019c9dee35542e6f92ec37937df36ff756 (diff) | |
download | fatcat-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 'rust/migrations/00000000000000_diesel_initial_setup/up.sql')
0 files changed, 0 insertions, 0 deletions