Duplicate key value violates unique constraint "index_namespaces_name_parent_id_type"

Sentry is displaying consistent duplicate key errors.

ActiveRecord::RecordNotUnique
PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "index_namespaces_name_parent_id_type"
DETAIL:  Key (name, parent_id, type)=(CODEOWNERS, 5810708, Group) already exists.

Screen_Shot_2022-11-14_at_9.06.58_am

Might be gitlab bot doing this? We should at least handle this issue before raising an exception.

Edited Nov 14, 2022 by Alex Pooley
Assignee Loading
Time tracking Loading