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

in development
--------------

* Update ``/v1/packs/register`` API endpoint so it throws on failure (e.g. invalid pack or resource
  metadata). This way the default behavior is consistent with default
  ``st2ctl reload --register-all`` behavior.

  If user doesn't want the API endpoint to fail on failure, they can pass
  ``"fail_on_failure": false`` attribute in the request payload. (improvement)
* Throw a more user-friendly exception when registering packs (``st2ctl reload``) if pack ref /
  name is invalid. (improvement)
* ``core.http`` action now also supports HTTP basic auth and digest authentication by passing
  ``username`` and ``password`` parameter to the action. (new feature)
* Fix ``GET /v1/packs/<pack ref or id>`` API endpoint - make sure pack object is correctly returned
  when pack ref doesn't match pack name. Previously, 404 not found was thrown. (bug fix)
* Update ``/v1/packs/register`` API endpoint so it registers resources in the correct order which
  is the same as order used in ``st2-register-content`` script. (bug fix)
* Update ``packs.load`` action to also register triggers by default. (improvement)
* Update local action runner so it supports and works with non-ascii (unicode) parameter keys and
  values. (bug fix)

  Contribution by <NAME>. #3116<commit_msg>Sync up changelog with v2.1.1 branch.<commit_after>Changelog
=========

in development
--------------

2.1.1 - December 16, 2016
-------------------------

* After running ``st2 pack install`` CLI command display which packs have been installed.
  (improvement)
* Update ``/v1/packs/register`` API endpoint so it throws on failure (e.g. invalid pack or resource
  metadata). This way the default behavior is consistent with default
  ``st2ctl reload --register-all`` behavior.

  If user doesn't want the API endpoint to fail on failure, they can pass
  ``"fail_on_failure": false`` attribute in the request payload. (improvement)
* Throw a more user-friendly exception when registering packs (``st2ctl reload``) if pack ref /
  name is invalid. (improvement)
* ``core.http`` action now also supports HTTP basic auth and digest authentication by passing
  ``username`` and ``password`` parameter to the action. (new feature)
* Fix ``GET /v1/packs/<pack ref or id>`` API endpoint - make sure pack object is correctly returned
  when pack ref doesn't match pack name. Previously, 404 not found was thrown. (bug fix)
* Update local action runner so it supports and works with non-ascii (unicode) parameter keys and
  values. (bug fix)

  Contribution by <NAME>. #3116
* Update ``packs.load`` action to also register triggers by default. (improvement)
* Update ``/v1/packs/register`` API endpoint so it registers resources in the correct order which
  is the same as order used in ``st2-register-content`` script. (bug fix)
{'fraction_non_alphanumeric': 0.11348511383537653, 'fraction_numerical': 0.013660245183887917, 'mean_word_length': 3.924137931034483, 'pattern_counts': {'":': 2, '<': 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': '6761459', 'n_tokens_mistral': 797, 'n_tokens_neox': 745, 'n_words': 378}