mistral/mistral/utils
Renat Akhmerov a39db2d3dc Fix how Mistral prepares data for evaluating a YAQL expression
* If we use the built-in YAQL function 'str' in a workflow then it
  doesn't represent lists as '[item1, item3, ...]' but instead
  creates '(item1, item2,...). This is because the standard YAQL
  function 'yaql_utils.convert_input_data', which is needed to
  convert a initial user data into an internal YAQL format,
  converts all sequences (except strings) into tuples.
  This patch overrides this behavior for sequences that are not
  strings and tuples so that they now get converted into lists.
  YAQL uses tuples because it needs to obtain a safe immutable
  structure to make calculations upon. But in Mistral list is
  more suitable because lots of users care about string
  representations. Immutability is not so important because
  Mistral code base guarantees that the initial data context
  for an expression won't be changed while an expression is
  being evaluated by YAQL.
* "str" YAQL function used to work well but it was broken in
  https://review.openstack.org/#/c/477816/ that added additional
  context preparation in order to fix the issue
  https://bugs.launchpad.net/mistral/+bug/1772864

Change-Id: I69d32f8772418d586d6c414842bb54aada217481
Closes-Bug: #1815710
2019-02-14 12:20:12 +07:00
..
openstack Remove hardcoded usage of v2 authentication in Barbican actions 2018-07-24 13:32:07 +02:00
__init__.py New experimental scheduler: the first working version 2018-08-14 14:02:19 +07:00
expression_utils.py Fix how Mistral prepares data for evaluating a YAQL expression 2019-02-14 12:20:12 +07:00
filter_utils.py Fix a typo 2017-05-04 16:48:43 +08:00
inspect_utils.py Don't save @property methods with other attributes 2017-04-26 17:24:14 +01:00
javascript.py Added JavaScript evaluator which doesn't require a compilation 2018-04-23 17:04:18 +00:00
profiler.py Replace six.iteritems() with .items() 2016-12-16 08:24:10 -08:00
rest_utils.py Clarify REST field valiation error 2018-11-27 09:51:01 +01:00
ssh_utils.py Fix SSHAction under python3 2018-09-12 10:31:06 +05:30
wf_trace.py Fix wf_trace info adding useless space at some conditions 2017-11-15 00:48:49 -05:00