Skip to content

Conversation

@williamjallen
Copy link
Collaborator

While Postgres enforces unique project names correctly, the resulting error message for this common situation is a standard server error. This commit moves the createProject validation logic to a dedicated validator and adds a unique name validation rule.

While Postgres enforces unique project names correctly, the resulting error message for this common situation is a standard server error.  This commit moves the createProject validation logic to a dedicated validator and adds a unique name validation rule.
Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

LGTM! It's a lot nicer to have a more obvious indication as to the errors on this page.

@josephsnyder josephsnyder added this pull request to the merge queue Feb 2, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 2, 2026
While Postgres enforces unique project names correctly, the resulting
error message for this common situation is a standard server error. This
commit moves the createProject validation logic to a dedicated validator
and adds a unique name validation rule.
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 2, 2026
@josephsnyder josephsnyder added this pull request to the merge queue Feb 2, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 2, 2026
@williamjallen williamjallen added this pull request to the merge queue Feb 2, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 2, 2026
@williamjallen williamjallen added this pull request to the merge queue Feb 2, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 2, 2026
@josephsnyder josephsnyder added this pull request to the merge queue Feb 2, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 2, 2026
While Postgres enforces unique project names correctly, the resulting
error message for this common situation is a standard server error. This
commit moves the createProject validation logic to a dedicated validator
and adds a unique name validation rule.
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 2, 2026
@williamjallen williamjallen added this pull request to the merge queue Feb 3, 2026
Merged via the queue into Kitware:master with commit 224f36e Feb 3, 2026
13 of 14 checks passed
@williamjallen williamjallen deleted the create-project-validation branch February 3, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants