Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: attribute that is defined as unique is not listed as a uniqueness_constraint in the schema detailed view #4182

Closed
wvandeun opened this issue Aug 26, 2024 · 0 comments
Assignees
Labels
type/bug Something isn't working as expected

Comments

@wvandeun
Copy link
Contributor

Component

API Server / GraphQL

Infrahub version

0.16.0.dev0

Current Behavior

When you define an attribute as unique on a node in the schema, it is not listed as a uniqueness_constraint in the schema view.

Expected Behavior

The attribute that is defined as unique would be listed as one of the uniqueness_constraints

Steps to Reproduce

  • start an instance of Infrahub
  • load this schema
---
version: "1.0"
nodes:
  - name: Customer
    namespace: Testing
    attributes:
      - name: name
        kind: Text
        optional: false
        unique: true
  • In the web interface go to schema
  • Select the TestinCustomer node
  • Unique constraints field will be empty

Additional Information

No response

@wvandeun wvandeun added the type/bug Something isn't working as expected label Aug 26, 2024
@dgarros dgarros added the state/need-triage This issue needs to be triaged label Aug 26, 2024
@dgarros dgarros added this to the Infrahub - 0.16.1 milestone Aug 26, 2024
@exalate-issue-sync exalate-issue-sync bot modified the milestone: Infrahub - 0.16.1 Aug 26, 2024
@exalate-issue-sync exalate-issue-sync bot added state/planned This issue is planned to be worked on in an upcoming release. and removed state/need-triage This issue needs to be triaged labels Aug 27, 2024
@exalate-issue-sync exalate-issue-sync bot removed the state/planned This issue is planned to be worked on in an upcoming release. label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants