Skip to content

0.9.0

Compare
Choose a tag to compare
@jonathansick jonathansick released this 25 Jul 21:01
· 22 commits to main since this release
fb639f6

Backwards-incompatible changes

  • SquarebotSlackMessageValue no longer includes a bot_id field. Instead, the user field is set to the bot's ID and a new is_bot field indicates if the user field is a bot or user ID.

New features

  • Add support for Slack messages with subtype of bot_message. This is implemented in the Slack message model SlackMessageEventContent as a new subtype field that now takes a SlackMessageSubtype enum. The Kafka representation of this message, SquarebotSlackMessageValue has been updated to now set the user attribute to either the user's ID or the bot's ID as appropriate. A new flag, is_bot indicates if the user field reflects a user or bot (app integration) identifier.

  • SlackMessageEventContent, a part of the SlackkMessageEvent model, now has support for attachments. Slack attachments are deprecated for Block Kit, but are still widely used by app integrations. The attachments field is a list of SlackMessageAttachment objects. These attachments can have text content or individual fields that have titles and values.

  • The SquarebotSlackMessageValue Kafka message model's text field now includes the combined content of the message and its attachments. This makes it easy for consumers to process message content without needing to check for attachments and Block Kit fields. For consumers that are sensitive to the exact structure of the message, the slack_event field is still available, which is the original JSON representation of the Slack message, which can be parsed into a SlackMessageEvent object.

Other changes

  • Adopt ruff-shared.toml from https://github.com/lsst/templates

  • The noxfile now uses uv as the backend for pip and pip-compile tasks.

  • Added a new weekly GitHub Actions CI workflow to validate that the app will run with future versions of dependencies.

What's Changed

Full Changelog: 0.8.0...0.9.0