| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:31756ae3-8245-0a4b-5570-a1fe29bbed13 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D7FC:240CD1:25E678E:3029785:6B019185 |
| html-safe-nonce | a3eeb091629f13940dd339c756c9ab3c7212319afca99ef8d80a762591f74617 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0ZDOjI0MENEMToyNUU2NzhFOjMwMjk3ODU6NkIwMTkxODUiLCJ2aXNpdG9yX2lkIjoiNjg4ODY5Mjk1ODMxMzQxOTE0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 105f286f685317dfc1d15f2b898555d6f175f2990ab44367877893f32b530ca8 |
| hovercard-subject-tag | pull_request:1018604445 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/coder/3390/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/f470219e12263b3018bc57c657d0c6c880192cfc0bd521ff711020e07d7d66af/coder/coder/pull/3390 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f470219e12263b3018bc57c657d0c6c880192cfc0bd521ff711020e07d7d66af/coder/coder/pull/3390 |
| og:image:alt | This PR adds the validation errors to the friendly error message.
I found it confusing when working on #3000 and all I got was Validation failed..
Before:
❯ go run ./cmd/coder rename testy user/tes... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mafredri |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/coder/coder/pull/3390#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F3390 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F3390 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fcoder |
| Reload | https://github.com/coder/coder/pull/3390 |
| Reload | https://github.com/coder/coder/pull/3390 |
| Reload | https://github.com/coder/coder/pull/3390 |
| coder | https://github.com/coder |
| coder | https://github.com/coder/coder |
| Code | https://github.com/coder/coder |
| Issues320 (320) | https://github.com/coder/coder/issues |
| Pull requests470 (470) | https://github.com/coder/coder/pulls |
| Discussions | https://github.com/coder/coder/discussions |
| Actions | https://github.com/coder/coder/actions |
| Projects | https://github.com/coder/coder/projects |
| Security and quality49 (49) | https://github.com/coder/coder/security |
| Insights | https://github.com/coder/coder/insights |
| https://github.com/coder/coder |
| mafredri | https://github.com/mafredri |
| main | https://github.com/coder/coder/tree/main |
| mafredri/improve-cli-error-message-on-validation-failed | https://github.com/coder/coder/tree/mafredri/improve-cli-error-message-on-validation-failed |
| Conversation | https://github.com/coder/coder/pull/3390 |
| Commits2 (2) | https://github.com/coder/coder/pull/3390/commits |
| Checks | https://github.com/coder/coder/pull/3390/checks |
| Files changed | https://github.com/coder/coder/pull/3390/files |
| fix: Improve friendly validation error messages | https://github.com/coder/coder/pull/3390#top |
| mafredri | https://github.com/mafredri |
| main | https://github.com/coder/coder/tree/main |
| mafredri/improve-cli-error-message-on-validation-failed | https://github.com/coder/coder/tree/mafredri/improve-cli-error-message-on-validation-failed |
|
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| Aug 5, 2022 | https://github.com/coder/coder/pull/3390#issue-1329848705 |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| #3000 | https://github.com/coder/coder/issues/3000 |
| #1673 | https://github.com/coder/coder/issues/1673 |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| mafredri | https://github.com/mafredri |
| August 5, 2022 14:43 | https://github.com/coder/coder/pull/3390#commits-pushed-920a2a6 |
|
| https://github.com/mafredri |
| fix: Add validations to (*codersdk.Error).Friendly | https://github.com/coder/coder/pull/3390/commits/920a2a63a7283743bb69bd78ef9019ee2867387a |
| 920a2a6 | https://github.com/coder/coder/pull/3390/commits/920a2a63a7283743bb69bd78ef9019ee2867387a |
|
| https://github.com/mafredri |
| fix: Add named validators for template and workspace name | https://github.com/coder/coder/pull/3390/commits/ae6508cca012f5b2697cc740867a40ff97304708 |
| ae6508c | https://github.com/coder/coder/pull/3390/commits/ae6508cca012f5b2697cc740867a40ff97304708 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| Aug 5, 2022 | https://github.com/coder/coder/pull/3390#event-7135388733 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| August 5, 2022 12:03 | https://github.com/coder/coder/pull/3390#event-7135388793 |
| https://github.com/johnstcn |
| johnstcn | https://github.com/johnstcn |
|
Aug 5, 2022
| https://github.com/coder/coder/pull/3390#pullrequestreview-1063264253 |
|
View reviewed changes
| https://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708 |
| coderd/httpapi/httpapi.go | https://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708#diff-5e36a54e5f24aa60de9e266ab8efa44db547189569ecf692410b5f388db4ae7c |
| johnstcn | https://github.com/johnstcn |
| Aug 5, 2022 | https://github.com/coder/coder/pull/3390#discussion_r938747242 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| mafredri | https://github.com/mafredri |
| Aug 5, 2022 | https://github.com/coder/coder/pull/3390#discussion_r938748634 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| bpmct | https://github.com/bpmct |
| Aug 8, 2022 | https://github.com/coder/coder/pull/3390#discussion_r940302291 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #3321 | https://github.com/coder/coder/issues/3321 |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| https://github.com/johnstcn |
| johnstcn | https://github.com/johnstcn |
|
Aug 5, 2022
| https://github.com/coder/coder/pull/3390#pullrequestreview-1063267411 |
|
View reviewed changes
| https://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708 |
| https://github.com/AbhineetJain |
| AbhineetJain | https://github.com/AbhineetJain |
| Aug 6, 2022 | https://github.com/coder/coder/pull/3390#issuecomment-1207147841 |
| #1943 | https://github.com/coder/coder/issues/1943 |
| @presleyp | https://github.com/presleyp |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| Aug 8, 2022 | https://github.com/coder/coder/pull/3390#issuecomment-1208081413 |
| @AbhineetJain | https://github.com/AbhineetJain |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
|
Aug 8, 2022
| https://github.com/coder/coder/pull/3390#ref-issue-1245449272 |
|
CLI: getting "Validation failed name: username" error in cli in case workspace or template name does not follow allowed pattern
#1673
| https://github.com/coder/coder/issues/1673 |
| https://github.com/bpmct |
| bpmct | https://github.com/bpmct |
|
Aug 8, 2022
| https://github.com/coder/coder/pull/3390#pullrequestreview-1065269840 |
|
View reviewed changes
| https://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708 |
| bpmct | https://github.com/bpmct |
| https://github.com/coder/coder/pull/3390#pullrequestreview-1065269840 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| Aug 8, 2022 | https://github.com/coder/coder/pull/3390#issuecomment-1208243357 |
| validator | https://github.com/go-playground/validator |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| https://github.com/bpmct |
| bpmct | https://github.com/bpmct |
| Aug 8, 2022 | https://github.com/coder/coder/pull/3390#issuecomment-1208276822 |
| validator | https://github.com/go-playground/validator |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| https://github.com/Emyrk |
| Emyrk | https://github.com/Emyrk |
| Aug 8, 2022 | https://github.com/coder/coder/pull/3390#issuecomment-1208415949 |
| validator | https://github.com/go-playground/validator |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| Aug 9, 2022 | https://github.com/coder/coder/pull/3390#issuecomment-1209255220 |
| https://github.com/Aptomi/k8s-app-engine/blob/11b495fc520680093a990fee0eaaf598507596b5/pkg/lang/validation.go | https://github.com/Aptomi/k8s-app-engine/blob/11b495fc520680093a990fee0eaaf598507596b5/pkg/lang/validation.go |
| https://github.com/guiferpa/gody | https://github.com/guiferpa/gody |
| https://github.com/dealancer/validate | https://github.com/dealancer/validate |
| https://awesome-go.com/validation/ | https://awesome-go.com/validation/ |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| c0cc8b9 | https://github.com/coder/coder/commit/c0cc8b99355334fdf35de36efc9c4fcf9ce18fc2 |
| Aug 9, 2022 | https://github.com/coder/coder/pull/3390#event-7154607251 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| August 9, 2022 11:25 | https://github.com/coder/coder/pull/3390#event-7154607336 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
|
Aug 9, 2022
| https://github.com/coder/coder/pull/3390#ref-pullrequest-1332064885 |
|
feat: Add support for renaming workspaces
#3409
| https://github.com/coder/coder/pull/3409 |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F3390 |
|
| https://github.com/bpmct |
|
bpmct
| https://github.com/bpmct |
|
| https://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708 |
|
| https://github.com/johnstcn |
|
johnstcn
| https://github.com/johnstcn |
|
| https://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708 |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
|
| https://github.com/mafredri |
|
mafredri
| https://github.com/mafredri |
|
CLI: getting "Validation failed name: username" error in cli in case workspace or template name does not follow allowed pattern
| https://github.com/coder/coder/issues/1673 |
| Please reload this page | https://github.com/coder/coder/pull/3390 |
|
| https://github.com/mafredri |
|
| https://github.com/AbhineetJain |
|
| https://github.com/bpmct |
|
| https://github.com/Emyrk |
|
| https://github.com/johnstcn |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |