mistral/mistral/utils
Renat Akhmerov 019cffb3ab Fix ContextView JSON serialization
* With disabled YAQL data output conversion, YAQL may return
  instances of ContextView which can't be properly saved into
  DB. This happens because Mistral serialization code doesn't
  turn on JSON conversion of custom objects, and they are just
  ignored by the "json" lib when it encounters them.
* Fixed how Mistral serializes context for Javascript evaluation
  to address the same problem.
* Implemented __repr__ method of ContextView.
* Removed logging of "data_context" from YAQL evaluation because
  previously it was always empty (because the string represetation
  of ContextView was always "{}") and now it may be very big, like
  megabytes, and the log gets populated too fast. It makes sense to
  log YAQL data context only when an error happened. In this case
  it helps to investigate an issue.
* Added all required unit tests.
* Fixed the tests for disabled YAQL conversion. In fact, they
  didn't test it properly because data conversion wasn't disabled.

Closes-Bug: #1867899
Change-Id: I12b4d0c5f1f49990d8ae09b72f73c0da96254a86
2020-03-19 17:07:42 +07:00
..
openstack Remove OpenStack actions from mistral 2020-02-26 10:12:01 +02:00
__init__.py moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
filter_utils.py Allow the prefixes like "eq:" and "neq:" in the custom REST UUID type 2019-12-18 12:05:57 +00:00
javascript.py Fix ContextView JSON serialization 2020-03-19 17:07:42 +07:00
profiler.py moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
rest_utils.py Add "published_global" field to the task execution REST resource 2019-09-05 04:37:03 +00:00
safe_yaml.py Disable the use of anchors when parsing yaml 2019-12-17 12:08:10 +02:00
ssh_utils.py Using std.ssh without private_key_filename causes TypeError 2019-10-23 05:10:43 +00:00
wf_trace.py Fix wf_trace info adding useless space at some conditions 2017-11-15 00:48:49 -05:00