nautobot-app-chatops icon indicating copy to clipboard operation
nautobot-app-chatops copied to clipboard

Bot replies are in a downloadable file called "files" - MatterMost

Open waydh opened this issue 1 year ago • 4 comments

Environment

  • Python version: 3.9.18
  • Nautobot version: 2.2.0
  • nautobot-chatops version: 3.0.2
  • MatterMost version: 9.6.1 nautobot-chat-ops

Expected Behavior

Bot to reply in a text message, not with the text in a downloadable file called "files".

Observed Behavior

All bot responses are in a downloadable file called "files"

Steps to Reproduce

  1. Issue slash command
  2. Bot responds with a downloadable file called "files" which contains the text of the response.
  3. See the screenshot for more details.

waydh avatar Apr 16 '24 06:04 waydh

This is due to Mattermost limitations in message response. Any table is uploaded as a snippet. This is the same with Slack, but small snippets in Slack are automatically rendered by Slack.

smk4664 avatar Apr 16 '24 11:04 smk4664

Thank you for your reply. That's unfortunate.

waydh avatar Apr 17 '24 23:04 waydh

@smk4664 should we look at some alternate methods to support just straight text?

jvanderaa avatar Apr 29 '24 12:04 jvanderaa

We already support other methods, such as send_markdown. But many of the built-in commands such as get-devices were built using send_large_table which uses snippets.

smk4664 avatar Apr 29 '24 13:04 smk4664