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

Check for duplicated alert fails #1177

@yrobla

Description

@yrobla

Describe the issue

I get error:
│ /Users/yolanda/development/codegate-upstream/src/codegate/api/v1_processing.py:520 in │
│ remove_duplicate_alerts │
│ │
│ 517 │ ): # Sort alerts by timestamp descending │
│ 518 │ │ │
│ 519 │ │ # Extract trigger string content until "Context" │
│ ❱ 520 │ │ trigger_string_content = alert.trigger_string.split("Context")[0] │
│ 521 │ │ │
│ 522 │ │ key = ( │
│ 523 │ │ │ alert.code_snippet,

AttributeError: 'dict' object has no attribute 'split'

Steps to Reproduce

This happens when an alert is raised, and is not of the expected type

Operating System

MacOS (Arm)

IDE and Version

vscode

Extension and Version

latest

Provider

OpenAI

Model

gpt-4

Codegate version

latest

Logs

No response

Additional Context

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions