StackStorm v2.0.0 Release Notes

Release Date: 2016-08-31 // over 7 years ago
  • โž• Added

    
    * Implement custom Jinja filter functions ``to_json_string``, ``to_yaml_string``,
      ``to_human_time_from_seconds`` that can be used in actions and workflows. (improvement)
    * 0๏ธโƒฃ Default chatops message to include time taken to complete an execution. This uses
      ``to_human_time_from_seconds`` function. (improvement)
    * ๐Ÿ‘ Allow user to cancel multiple executions using a single invocation of ``st2 execution cancel``
      command by passing multiple ids to the command -
      ``st2 execution cancel <id 1> <id 2> <id n>`` (improvement)
    * We now execute --register-rules as part of st2ctl reload. PR raised by Vaishali:
      https://github.com/StackStorm/st2/issues/2861#issuecomment-239275641
    * โšก๏ธ Update ``packs.uninstall`` command to print a warning message if any rules in the system
      reference a trigger from a pack which is being uninstalled. (improvement)
    * ๐Ÿ‘ Allow user to list and view rules using the API even if a rule in the database references a
      non-existent trigger. This shouldn't happen during normal usage of StackStorm, but it makes it
      easier for the user to clean up in case database ends up in a inconsistent state. (improvement)
    
    ๐Ÿ”„ Changed
    
    • ๐Ÿ”จ Refactor Jinja filter functions into appropriate modules. (improvement)
    • โฌ†๏ธ Bump default timeout for packs.load command from 60 to 100 seconds. (improvement)
    • โฌ†๏ธ Upgrade pip and virtualenv libraries used by StackStorm pack virtual environments to the latest versions (8.1.2 and 15.0.3).
    • ๐Ÿ”„ Change Python runner action and sensor Python module loading so the module is still loaded even if the module name clashes with another module which is already in PYTHONPATH (improvement)

    ๐Ÿ›  Fixed

    
    * ๐Ÿ›  Fix a bug when jinja templates with filters (for example,
      ``st2 run core.local cmd='echo {{"1.6.0" | version_bump_minor}}'``) in parameters wasn't rendered
      correctly when executing actions. (bug-fix)
    * ๐Ÿ›  Fix validation of the action parameter ``type`` attribute provided in the YAML metadata.
      Previously we allowed any string value, now only valid types (object, string, number,
      integer, array, null) are allowed. (bug fix)
    * ๐Ÿ›  Fix disabling and enabling of a sensor through an API and CLI. (bug-fix)
    * ๐Ÿ›  Fix HTTP runner so it works correctly when body is provided with newer versions of requests
      library (>= 2.11.0). (bug-fix) #2880
    
      Contribution by Shu Sugimoto.