Skip to content

Comments

Fix/agent groups unique name migration#2786

Merged
greenbonebot merged 2 commits intomainfrom
fix/agent-groups-unique-name-migration
Feb 20, 2026
Merged

Fix/agent groups unique name migration#2786
greenbonebot merged 2 commits intomainfrom
fix/agent-groups-unique-name-migration

Conversation

@ozgen
Copy link
Member

@ozgen ozgen commented Feb 20, 2026

What

  • Add database migration (268 to 269) to enforce UNIQUE(name) on agent_groups and agent_groups_trash.

  • Migrate existing data by appending the row ID to agent group names before adding the unique constraint.

  • Add validation logic to prevent creating or modifying agent groups with duplicate names.

Why

Previously, agent group names were not enforced as unique at the database level.
It is needed by the agent team for agent group identification.

References

GEA-1586

@ozgen ozgen requested review from a team as code owners February 20, 2026 14:39
@greenbonebot greenbonebot enabled auto-merge (rebase) February 20, 2026 14:39
@greenbonebot greenbonebot merged commit 76a3b76 into main Feb 20, 2026
31 of 32 checks passed
@greenbonebot greenbonebot deleted the fix/agent-groups-unique-name-migration branch February 20, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants