Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-46413: Fix setting the SquarebotSlackMessage.is_bot field #32

Draft
wants to merge 2 commits into
base: tickets/DM-45917
Choose a base branch
from

Conversation

jonathansick
Copy link
Member

Backwards-incompatible changes

  • SquarebotSlackMessageValue.user is now nullable. It will be null if the message is a bot_message subtype.

New features

  • Added SquarebotSlackMessageValue.bot_id to capture the ID of the app that send a bot message.

Bug fixes

  • Fix setting the is_bot property of SquarebotSlackMessageValue to account for messages without the bot_message subtype, but which still have a bot_id set.

- It turns out that bot_id can be set on messaegs without the
  bot_message subtype. Therefore base is_bot on whether a bot_id is
  present.
- Stop using bot_id as user_id for bot messages, because they are in
  fact separate things. This forces us to consider the user field as
  nullable.
This makes the bot_id from bot-sent messages more accessible to
Squarebot consumers.
jonathansick added a commit to lsst-sqre/phalanx that referenced this pull request Sep 20, 2024
- Improves `is_bot` field in SlackMessageValue model

See lsst-sqre/squarebot#32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant