Skip to content

Conversation

migmartri
Copy link
Member

  • Adds a database constraint to make sure the organization names are unique
  • migrates the existing data to make sure it meets such constrant
  • the process of automatically generating orgs, now makes sure the org doesn't exist by checking for conflicts and retrying if needed.
  • org.Create checks for duplicates too.

Closes #523

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@danlishka danlishka self-assigned this Feb 19, 2024
Copy link
Member

@danlishka danlishka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, thanks!

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri marked this pull request as ready for review February 19, 2024 11:17
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri merged commit 7a028ce into chainloop-dev:main Feb 19, 2024
@migmartri migmartri deleted the unique-names branch February 19, 2024 12:00
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.

feat: make organization-name unique

2 participants