cd2d3020ec
This patchset uses yaml.add_representer for DocumentDict which enables yaml.safe_load/safe_load_all to correctly serialize the DocumentDict object without a recursive routine. This also completely removes the usage of jsonpath_parse from DocumentDict as jsonpath-ng is a rather expensive library to call continuously; and even though Deckhand does some caching to alleviate this, it is simply better to avoid it altogether in a wrapper that is used everywhere across the engine module, which does all the heavy processing. This also reduces the amount of wrapping using DocumentDict because the better way to do this in the DB module is to have a helper function retrieve the data from the DB and immediately wrap it in a DocumentDict if applicable; this is left as an exercise for later. Change-Id: I715ff7e314cf0ec0d34c17f3378514d235dfb377 |
||
---|---|---|
.. | ||
__init__.py | ||
base.py | ||
test_api_initialization.py | ||
test_base_controller.py | ||
test_buckets_controller.py | ||
test_errors.py | ||
test_health_controller.py | ||
test_middleware.py | ||
test_rendered_documents_controller.py | ||
test_revision_documents_controller.py | ||
test_revision_tags_controller.py | ||
test_revisions_controller.py | ||
test_revisions_diff_controller.py | ||
test_revisions_rollback_controller.py | ||
test_validations_controller.py | ||
test_versions_controller.py |