Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

@whitdog47
Copy link
Contributor

@whitdog47 whitdog47 commented Jun 10, 2025

This PR fixes the Slack integration by logging a warning instead of throwing an exception when multiple conversations are found for a given channel and thread combination. Key changes include new tests for various conversation retrieval scenarios and updated fallback logic in the get_by_channel_id_ignoring_channel_type service function to log a warning when multiple conversations are found.

@whitdog47 whitdog47 requested a review from Copilot June 10, 2025 22:37
@whitdog47 whitdog47 self-assigned this Jun 10, 2025
@whitdog47 whitdog47 added the bug Something isn't working label Jun 10, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the Slack integration by logging a warning instead of throwing an exception when multiple conversations are found for a given channel and thread combination. Key changes include new tests for various conversation retrieval scenarios and updated fallback logic in the get_by_channel_id_ignoring_channel_type service function to log a warning when multiple conversations are found.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/conversation/test_conversation_service.py Added comprehensive tests for conversation retrieval logic under various channel/thread conditions.
src/dispatch/conversation/service.py Modified fallback logic to log a warning (instead of throwing an exception) when multiple conversations are found.

@whitdog47 whitdog47 requested a review from aaronherman June 10, 2025 22:41
@whitdog47 whitdog47 changed the title fix(slack): log warning instead of throwing exception when users posts to main triage channel thread fix(slack): log warning instead of throwing exception when user posts to main triage channel thread Jun 11, 2025
@whitdog47 whitdog47 merged commit 99f08fd into main Jun 12, 2025
9 checks passed
@whitdog47 whitdog47 deleted the fix/multiple-conversation-when-posting-in-main-channel-thread branch June 12, 2025 00:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants