mistral/mistral
Renat Akhmerov ac41f94d11 Add an ability to disable workflow text validation
* For the sake of the service performance, it may make sense to
  disable validation of the workflow language syntax if it is
  affordable for a particular use case. For example, if all
  workflows are auto-generated by a 3rd party system and tested
  thoroughly (either by running them with Mistral or at least
  validating them via the special Mistral endpoint) then we can
  safely disable validation of the language syntax when uploading
  workflow definitions. For production systems it makes a big
  difference if workflow texts are large (thousands of tasks).
  This patch adds the boolean parameter "skip_validation" for API
  requests like "POST /v2/workflows" to disable validation, if
  needed, and the new configuration property "validation_mode"
  to set a desired validation mode.
  The option is an enumeration and has the following valid values:
    1) "enabled" - enabled for all API requests unless it's
       explicitly disabled in the request itself
    2) "mandatory" - enabled for all API requests regardless
       of the flag in the request
    3) "disabled" - disabled for all API requrests regardless
       of the flag in the request
  "mandatory" is choosen as the default value for this new
  property to keep compatibility with the previous versions.
* Minor style changes.

Closes-Bug: #1844242

Change-Id: Ib509653d38254954f8449be3031457e5f636ccf2
2019-09-27 04:33:04 +00:00
..
actions Pass a real session to ironicclient in _get_fake_client 2019-09-25 14:31:59 +02:00
api Add an ability to disable workflow text validation 2019-09-27 04:33:04 +00:00
auth make user_info_endpoint_url independent of auth_url 2018-10-14 09:21:52 +03:00
cmd Use raw strings in all pattern matching strings 2019-08-06 17:57:13 +03:00
db moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
engine moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
event_engine [Event-engine] Allow event_engine to work in HA 2018-10-17 16:30:17 +00:00
executors moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
expressions moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
ext Use the Mistral syntax highlighting on the dsl v2 page 2017-04-06 10:20:34 +01:00
hacking Fix the pep8 commands failed 2017-07-27 22:15:12 +08:00
lang Add an ability to disable workflow text validation 2019-09-27 04:33:04 +00:00
notifiers moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
policies Add a policy to control the right to publish resources 2018-07-05 11:46:52 +02:00
resources Fix for YaqlEvaluationException in std.create_instance workflow. 2016-07-12 00:29:23 -04:00
rpc moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
scheduler moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
service moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
services Add an ability to disable workflow text validation 2019-09-27 04:33:04 +00:00
tests Add an ability to disable workflow text validation 2019-09-27 04:33:04 +00:00
utils Use v2 designate client instead of v1 2019-09-18 14:42:56 +07:00
workflow moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
__init__.py Remove eventlet monkey patch in mistral __init__ 2015-02-20 07:49:56 +00:00
_i18n.py Update and optimize documentation links 2017-07-19 17:10:49 +08:00
config.py Add an ability to disable workflow text validation 2019-09-27 04:33:04 +00:00
context.py moved generic util functions from mistral to mistral-lib 2019-09-13 04:06:27 +00:00
exceptions.py Change 403 exception message to something more informative and accurate 2019-09-16 10:28:01 +00:00
messaging.py Fix misspell word 2019-09-06 16:04:51 +08:00
version.py Update version.version_string to actually be a string 2018-10-09 11:30:10 -05:00