Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

fix: handle dict type trigger_string in alert deduplication for Cline#1163

Merged
aponcedeleonch merged 2 commits into
mainstacklok/codegate:mainfrom
bug-1162stacklok/codegate:bug-1162Copy head branch name to clipboard
Mar 3, 2025
Merged

fix: handle dict type trigger_string in alert deduplication for Cline#1163
aponcedeleonch merged 2 commits into
mainstacklok/codegate:mainfrom
bug-1162stacklok/codegate:bug-1162Copy head branch name to clipboard

Conversation

@lukehinds

Copy link
Copy Markdown

The alert deduplication logic was failing when trigger_string was a dictionary, causing an AttributeError when trying to call split() on it. Updated the code to:

  • Check trigger_string type before processing
  • Handle dictionary case by creating a consistent JSON string from relevant fields
  • Maintain existing string handling for backwards compatibility
  • Add fallback for other types by converting to string

This ensures alerts are properly deduplicated regardless of trigger_string format.

Fixes: #1162

yrobla
yrobla previously approved these changes Feb 28, 2025
lukehinds and others added 2 commits February 28, 2025 09:35
The alert deduplication logic was failing when trigger_string was a dictionary,
causing an AttributeError when trying to call split() on it. Updated the code to:

- Check trigger_string type before processing
- Handle dictionary case by creating a consistent JSON string from relevant fields
- Maintain existing string handling for backwards compatibility
- Add fallback for other types by converting to string

This ensures alerts are properly deduplicated regardless of trigger_string format.

Fixes: #1162
@aponcedeleonch aponcedeleonch merged commit 6f41eae into main Mar 3, 2025
@aponcedeleonch aponcedeleonch deleted the bug-1162 branch March 3, 2025 08:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Cline dict handling

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.