Skip to content

Commit

Permalink
Merge pull request #352 from nautobot/Release-v3.1.2
Browse files Browse the repository at this point in the history
Release v3.1.2
  • Loading branch information
smk4664 authored Dec 19, 2024
2 parents 2a7e923 + d0d1282 commit 55f28cd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
File renamed without changes.
6 changes: 6 additions & 0 deletions docs/admin/release_notes/version_3.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# v3.1 Release Notes

<!-- towncrier release notes start -->
## [v3.1.2 (2024-12-19)](https://github.com/nautobot/nautobot-app-chatops/releases/tag/v3.1.2)

### Fixed

- [#348](https://github.com/nautobot/nautobot-app-chatops/issues/348) - Fixed failure when running slack socket mode.

## [v3.1.1 (2024-11-18)](https://github.com/nautobot/nautobot-app-chatops/releases/tag/v3.1.1)

### Added
Expand Down
7 changes: 4 additions & 3 deletions nautobot_chatops/sockets/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import json
import shlex

from asgiref.sync import sync_to_async
from django.conf import settings
from slack_sdk.socket_mode.aiohttp import SocketModeClient
from slack_sdk.socket_mode.request import SocketModeRequest
Expand Down Expand Up @@ -71,7 +72,7 @@ async def process_slash_command(client, req):
client.logger.error("%s", err)
return

registry = get_commands_registry()
registry = await sync_to_async(get_commands_registry)()

if command not in registry:
SlackDispatcher(context).send_markdown(commands_help(prefix=SLASH_PREFIX))
Expand Down Expand Up @@ -210,7 +211,7 @@ async def process_interactive(client, req):

client.logger.info(f"command: {command}, subcommand: {subcommand}, params: {params}")

registry = get_commands_registry()
registry = await sync_to_async(get_commands_registry)()

if command not in registry:
SlackDispatcher(context).send_markdown(commands_help(prefix=SLASH_PREFIX))
Expand Down Expand Up @@ -241,7 +242,7 @@ async def process_mention(client, req):
client.logger.error("%s", err)
return

registry = get_commands_registry()
registry = await sync_to_async(get_commands_registry)()

if command not in registry:
SlackDispatcher(context).send_markdown(commands_help(prefix=SLASH_PREFIX))
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nautobot-chatops"
version = "3.1.1"
version = "3.1.2"
description = "A app providing chatbot capabilities for Nautobot"
authors = ["Network to Code, LLC <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 55f28cd

Please sign in to comment.