Closed ogenstad closed 1 year ago
API Server / GraphQL
The location attribute on a repository is missing the unique constraint.
{ "name": "Repository", "namespace": "Core", "description": "A Git Repository integrated with Infrahub", "label": "Repository", "default_filter": "name__value", "order_by": ["name__value"], "display_labels": ["name__value"], "branch": True, "inherit_from": ["LineageOwner", "LineageSource"], "attributes": [ {"name": "name", "kind": "Text", "unique": True}, {"name": "description", "kind": "Text", "optional": True}, {"name": "location", "kind": "Text"}, <-- no "unique": True {"name": "default_branch", "kind": "Text", "default_value": "main"}, {"name": "commit", "kind": "Text", "optional": True}, {"name": "username", "kind": "Text", "optional": True}, {"name": "password", "kind": "Text", "optional": True}, ],
This is problematic with regards to how the git agent would find the correct credentials for a repository. We should change this to enforce unique locations.
Fixed in #932.
Component
API Server / GraphQL
Task Description
The location attribute on a repository is missing the unique constraint.
This is problematic with regards to how the git agent would find the correct credentials for a repository. We should change this to enforce unique locations.