Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: improve duplicate template version name error #14572

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

Merged

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Sep 5, 2024

Relates to #14569.
Relates to #14387.

The current error is justifiably confusing:

error: execute transaction: insert template version: pq: duplicate key value violates unique constraint "template_versions_template_id_name_key"

The error will instead read:

A template version with name "version-name" already exists for this template.

Users will probably see this error message more often if they start to manage templates using coderd provider.

Also has failed provisioner jobs return their full error trace when they fail.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ethanndickson and the rest of your teammates on Graphite Graphite

@ethanndickson ethanndickson force-pushed the 09-05-fix_improve_duplicate_template_version_name_error branch from 65e057b to 5fd8943 Compare September 6, 2024 05:43
@ethanndickson ethanndickson merged commit 208a5be into main Sep 6, 2024
27 checks passed
@ethanndickson ethanndickson deleted the 09-05-fix_improve_duplicate_template_version_name_error branch September 6, 2024 06:13
@github-actions github-actions bot locked and limited conversation to collaborators Sep 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants