Skip to content
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

Fix expression function to_yaml_string to handle mongodb base types #4720

Merged
merged 2 commits into from
Jun 24, 2019

Commits on Jun 22, 2019

  1. Fix expression function to_yaml_string to handle mongodb base types

    Refactor the filter to_yaml_string used in YAQL/Jinja expressions to be able to handle mongodb base types such as BaseDict and BaseList. The filter will call a helper function to recursively convert BaseDict and BaseList to python dict and list respectively.
    m4dcoder committed Jun 22, 2019
    Configuration menu
    Copy the full SHA
    ca09b95 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2019

  1. Use if-elif instead of multiple if statements to check types

    Use if-elif instead of multiple if statements to check types when converting from MongoDB BaseDict and BaseList to python dict and list types. Once the value is converted, use another if-elif block to recursively evaluate and convert the values of dict and list.
    m4dcoder committed Jun 24, 2019
    Configuration menu
    Copy the full SHA
    8baa86c View commit details
    Browse the repository at this point in the history