Release Notes¶
Version 2¶
Version 2.8.0¶
-
A new
completionsubcommand has been added to the slacker CLI to generate command completion scripts for common shells (zsh, bash etc.). See Command Line Completion. -
Start-up performance for the slacker CLI has improved significantly thanks to switching to lazy imports on the big packages.
-
Fixed a bug in the slacker CLI
putsubcommand where the slacker lambda was not restarted if the existing item was backed up. -
Other minor enhancements have been made to the CLI. Nothing worth writing home about.
-
MakeHelp is now used to auto-generate help for make.
-
TOCmark is now used to generate the table of contents for the main README.
-
Test coverage has increased from not bad to pretty good (99%).
Version 2.7.0¶
-
Added the following new Jinja rendering parameters:
aws.account_name: AWS account name / aliasaws.region: AWS region namelink: Generate a hyperlink in Slack compatible syntaxmsg: An object containing attributes associated with the incoming message.
-
The
matchattribute in the webhooks table now accepts patterns with unnamed capture groups, and without any capture groups, in addition to the previous behaviour of named capture groups. See Regular Expressions in Rules. -
Added the
slackerIdinto logged messages to enable the original message to be easily traced. See Message Logging. -
Updated the Slack message footer to indicate the AWS account, region and
slackerIdfor incoming messages. -
The
slacker putcommand used to deploy webhooks now restarts the slacker Lambda to empty the internal webhook cache. See Deploying Rules for more information. -
Added more of the test cases into the repo.
Version 2.6.0¶
This version is functionally compatible with v2.5 insofar as the main code is concerned. A number of incremental functional enhancements have been made. Changes have also been made to elements of packaging, deployment and documentation.
Changes are:
-
Slacker now supports direct messages from Amazon EventBridge as well as direct invocation of the slacker Lambda.
-
Introduced the wildcard webhook. This serves two purposes:
- Webhook of last resort: If an incoming message has a source ID that doesn't match any entry in the webhooks table, the wildcard webhook is used to process the message.
- Container for common webhook rules: Any rules in the wildcard webhook are implicitly appended to the rules of all other webhooks.
-
The following changes have been made to the slacker CLI:
- The
slacker checkcommand now does full schema validation on webhooks items. See Testing Rules for more information. - The
slacker getcommand now does syntax colouring when the output is to a terminal. - The
slacker restartcommand has been added to restart the slacker Lambda. This will clear the caches holding DynamoDB entries.
- The
-
AWS SAM is now used for installation, rather than raw CloudFormation. Not totally convinced that's a real step forward but it's done.
-
Some extra information, examples and the elementary rule library, have been added into this user guide. Contributions welcome.
-
JSON schema definitions are now provided for webhooks and channels entries. This can make creating entries a lot easier in IDEs that support these (like the JetBrains suite).