Commit Graph

14 Commits

Author SHA1 Message Date
Renat Akhmerov 44a2738460 Add a utility for JSON serialization
* This patch adds a utility that helps serialize data into a JSON
  string that might contain some non-standard data types like
  generators iterators and frozen dicts coming from YAQL. The
  utility uses oslo.serialization project that already takes care
  of iterators and any kinds of custom dicts. And in addition, it
  handles generators (assuming a generator represents an iterable
  similar to an iterator).
* Unit tests.
* Added YAQL into requirements and bumped the version of
  oslo.serialization to make sure to have the "fallback" parameter
  in "jsonutils.to_primitive"

Change-Id: I2fe891525bc86beb92aecf9ac2d8a490837c47d3
2020-03-31 18:33:05 +07:00
ali 070080bd1b moved generic util functions from mistral to mistral-lib
Change-Id: I780c270e4b1a184d7d4dcc580d23697ba75edab1
Closes-bug: #1815183
2019-08-08 07:35:45 +00:00
OpenStack Proposal Bot 1f66b2967b Updated from global requirements
Change-Id: Iaeb4c409548c0c7b3b61679ab6f0143c296f57bf
2017-09-11 21:21:07 +00:00
OpenStack Proposal Bot b03800cd7a Updated from global requirements
Change-Id: I7c32a2b069c2689a96f0594da39b63c40505eab6
2017-07-18 01:48:28 +00:00
Dougal Matthews 121ba2f212 Remove unused requirements
Babel is used for i18n - we can re-add it if needed.

Neither testscenarios, testtools or oslotest are used in the current tests.
These provide testing utilities and can be added later if we use them.

Change-Id: If2ba0ddd902671d29b765497b420e7b4a4b14963
2017-04-19 10:23:01 +01:00
OpenStack Proposal Bot dba605670e Updated from global requirements
Change-Id: I2e808cb2e20c2d4dc8293d70b7e7199acdaa6861
2017-04-12 04:14:03 +00:00
OpenStack Proposal Bot 1718e7dd72 Updated from global requirements
Change-Id: I6644654f5768beff1fc2fe52390281e2366c28c0
2017-04-07 06:07:14 +00:00
Jenkins e8814640bb Merge "Adds minimum common shared code for custom actions API" 2017-03-15 09:53:14 +00:00
Ryan Brady 5764aec7ae Adds minimum common shared code for custom actions API
This patch includes the initial data types, serialization,
string utilities, base exception classes and defines a
base action that includes a context argument.

The mistral_lib.api namespace was also removed in favor of
following the python convention of using an underscore to
denote private methods and considering all other methods
public.

This patch removes code previously added as a placeholder
to match the spec.  As of the Atlanta PTG, the purpose of
this library is now to store common code used within Mistral
ecosystem and 3rd party integration interfaces including
the Custom Actions API and Custom YAQL Functions API.

Change-Id: I77da3cd6eba6c5a9953656d432bc959bd3747ada
Partially-Implements: blueprint mistral-custom-actions-api
Partially-Implements: blueprint mistral-actions-api-main-entities
2017-03-14 10:14:03 -04:00
OpenStack Proposal Bot 8b5f690891 Updated from global requirements
Change-Id: Ifa36561e503921368cad0c427c2edea03935aebf
2017-03-02 04:59:25 +00:00
OpenStack Proposal Bot 02726cc3f8 Updated from global requirements
Change-Id: Ife0bdcdd4f288769734958f6948719d77bbf4ad8
2016-11-09 04:17:19 +00:00
OpenStack Proposal Bot 3b831dcfa1 Updated from global requirements
Change-Id: Ide66401af8d35b3cc1be5b2b60012555026c13a8
2016-07-18 15:18:09 +00:00
Dougal Matthews 8b91bffbc4 Add Babel to the requirements as it is referenced in the setup.cfg
Change-Id: I12102a6f16aed892102876bff6deb3cb14877b43
2016-07-15 15:48:44 +01:00
Renat Akhmerov 6d75dcee7f Initial project layout
Partially implements: blueprint mistral-custom-actions-api

Change-Id: I8730e506f0a160450e47a88ca11953b8895181b9
2016-07-15 15:16:55 +07:00