<commit_before>Changelog
=========

In development
--------------

* Add new ``POST /v1/actionalias/match`` API endpoint which allows users to perform ChatOps action
  alias matching server-side. This makes it easier to build and maintain StackStorm ChatOps
  clients / adapters for various protocols and mediums. Clients can now be very thin wrappers
  around this new API endpoint.

  Also add two new corresponding CLI commands - ``st2 alias-execution match`` and
  ``st2 alias-execution execute``. (new feature) #2895

  Contributed by <NAME>
* Only allow valid word characters (``a-z``, ``0-9`` and ``_``) to be used for action parameter
  names. Previously, due to bug in the code, any character was allowed.

  If you have an existing action definition which uses parameter with an invalid character, the
  parameter name needs to be adjusted otherwise action registration will fail. (bug fix,
  improvement)
* Adding ability to pass complex array types via CLI by first trying to
  seralize the array as JSON and then falling back to comma separated array.
* Add new ``core.pause`` action. This action behaves like sleep and can be used inside the action
  chain or Mistral workflows where waiting / sleeping is desired before proceeding with a next
  task. (new feature) #2933

  Contribution by <NAME>.
* Improve API exception handling and make sure 400 status code is returned instead of 500 on
  mongoengine field validation error. (improvement)
* Allow user to supply multiple resource ids using ``?id`` query parameter when filtering
  "get all" API endpoint result set (e.g. `?id=1,2,3,4`). This allows for a better client and
  servers performance when user is polling and interested in multiple resources such as polling on
  multiple action executions. (improvement)
* Actually validate pack metadata file when registering packs. (bug fix, improvement)
* Improve pack validation - now when the packs are registered we require that
  "version" attribute in the pack metadata file matches valid semver format and we also require
  that "email" attribute (if specified) contains a valid email address. (improvement)

2.0.1 - September 30, 2016<commit_msg>Update upgrade notes.<commit_after>Changelog
=========

In development
--------------

* Add new ``POST /v1/actionalias/match`` API endpoint which allows users to perform ChatOps action
  alias matching server-side. This makes it easier to build and maintain StackStorm ChatOps
  clients / adapters for various protocols and mediums. Clients can now be very thin wrappers
  around this new API endpoint.

  Also add two new corresponding CLI commands - ``st2 alias-execution match`` and
  ``st2 alias-execution execute``. (new feature) #2895

  Contributed by <NAME>
* Only allow valid word characters (``a-z``, ``0-9`` and ``_``) to be used for action parameter
  names. Previously, due to bug in the code, any character was allowed.

  If you have an existing action definition which uses parameter with an invalid character, the
  parameter name needs to be adjusted otherwise action registration will fail. (bug fix,
  improvement)
* Adding ability to pass complex array types via CLI by first trying to
  seralize the array as JSON and then falling back to comma separated array.
* Add new ``core.pause`` action. This action behaves like sleep and can be used inside the action
  chain or Mistral workflows where waiting / sleeping is desired before proceeding with a next
  task. (new feature) #2933

  Contribution by <NAME>.
* Improve API exception handling and make sure 400 status code is returned instead of 500 on
  mongoengine field validation error. (improvement)
* Allow user to supply multiple resource ids using ``?id`` query parameter when filtering
  "get all" API endpoint result set (e.g. `?id=1,2,3,4`). This allows for a better client and
  servers performance when user is polling and interested in multiple resources such as polling on
  multiple action executions. (improvement)
* Actually validate pack metadata file when registering packs. (bug fix, improvement)
* Improve pack validation - now when the packs are registered we require that
  "version" attribute in the pack metadata file matches valid semver format and we also require
  that "email" attribute (if specified) contains a valid email address. (improvement)
* For consistency with new pack name validation changes, sample ``hello-st2`` pack has been renamed
  to ``hello_st2``.

2.0.1 - September 30, 2016
{'fraction_non_alphanumeric': 0.06871083258728737, 'fraction_numerical': 0.01477170993733214, 'mean_word_length': 4.20256111757858, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5579400', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1080, 'n_words': 631}