Project

General

Profile

Bug #24277

products and repositories missing unique constraint in database schema

Added by Thomas McKay about 1 year ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
Difficulty:
medium
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

If a calls to create a product or repository happen simultaneously to server, duplicates can be created with same name and/or label.

I encountered this using foreman-ansible-modules which was running "fixtures" and "tests" in parallel.

Enforcing uniqueness in database would prevent this.

Many other resources with label column should also be enforced unique.

History

#1 Updated by Jonathon Turel about 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.8.0

#2 Updated by Thomas McKay about 1 year ago

  • Target version changed from Katello 3.8.0 to Katello 3.9.0

#3 Updated by Jonathon Turel 11 months ago

  • Difficulty set to medium
  • Target version changed from Katello 3.9.0 to Katello Backlog

Also available in: Atom PDF