New features
- Unfurlbot now ignores trigger messages if they are older than
UNFURLBOT_SLACK_TRIGGER_MESSAGE_TTL
(a time in seconds). This prevents unfurling messages that are no longer relevant and mitigates circumstances where Unfurlbot may be processing old messages.
Other changes
-
Refactored the
DomainUnfurler
base class so that theprocess_slack
method now calls two hooks that subclasses need to implement:extract_tokens
andcreate_slack_message
. With this structure the pipeline for processing Slack messages is more consistent and easier to implement for new unfurling domains. -
Improved logging. All log messages for a given token include context about the token, token type (e.g.
jira
), the channel ID, and the timestamps of the triggering message and thread (if applicable). Log messages are sent forSent unfurl
events, and warnings are logged forIgnoring stale trigger message
events.
What's Changed
- DM-48614: Additional logging for unfurl events by @jonathansick in #22
Full Changelog: 0.4.0...0.5.0