René's URL Explorer Experiment


Title: Consistently display error messages from backend · Issue #1943 · coder/coder · GitHub

Open Graph Title: Consistently display error messages from backend · Issue #1943 · coder/coder

X Title: Consistently display error messages from backend · Issue #1943 · coder/coder

Description: As was done in the usersXService, we should go through the frontend and make sure all error messages from the API are being unpacked properly to avoid over-reliance on default error messages, or displaying unhelpful error messages (the e...

Open Graph Description: As was done in the usersXService, we should go through the frontend and make sure all error messages from the API are being unpacked properly to avoid over-reliance on default error messages, or di...

X Description: As was done in the usersXService, we should go through the frontend and make sure all error messages from the API are being unpacked properly to avoid over-reliance on default error messages, or di...

Opengraph URL: https://github.com/coder/coder/issues/1943

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consistently display error messages from backend ","articleBody":"As was done in the `usersXService`, we should go through the frontend and make sure all error messages from the API are being unpacked properly to avoid over-reliance on default error messages, or displaying unhelpful error messages (the error has a less helpful message than the response). `getErrorMessage` and `getFormErrors` help with this.\r\n\r\n## To be done\r\n\r\n- [x]  convert this to an epic\r\n- [x] create issues for each XService\r\n\r\n## Problem\r\nThe frontend does not always display the error messages sent from the backend, and even when it does, it does not display the `detail` that is sometimes sent along with it. \r\n\r\n## Definition of done for each ticket\r\n- There are no uses of `displayError` in this XService. To replace the error snackbar, render `ErrorSummary` in the relevant components with the `dismissible` prop. This way, the user can expand the error detail if desired without the snackbar disappearing on them.\r\n- There are no uses of `getFormHelpers` in the relevant components; switch to `getFormHelpersWithError` even if no error. (We will eventually rename it to replace the original `getFormHelpers`.)\r\n- The XService always `assign`s the API error, rather than a hard-coded error message. If a hard-coded error message is needed as a fallback, send it as a prop to `ErrorSummary`.\r\n- Errors are only unpacked in `ErrorSummary` and `getFormHelpersWithError`.\r\n- Storybook has a story for when the error(s) are showing.\r\n\r\n## Tickets\r\n\r\n- [x] #3106\r\n- [x] #3088\r\n- [x] #3097 \r\n- [x] #3094\r\n- [x] #3096 \r\n- [x] #3095 \r\n- [x] #3093 \r\n- [x] #3091 \r\n- [x] #3090 \r\n- [x] #3089 \r\n- [x] #3209\r\n- [x] #3343","author":{"url":"https://github.com/presleyp","@type":"Person","name":"presleyp"},"datePublished":"2022-06-01T13:55:42Z","url":"https://github.com/coder/coder/issues/1943"}

react-profiling0
react-import-mapreact,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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:050ed95c-2f5a-d59d-db4c-fdb20bab46b1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE270:399E4B:25FFD76:326A8C9:6B019A55
html-safe-noncef0f238e8a9f0093e24b6612de25279571b723058f3d35a8500e1944385bb25e9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjcwOjM5OUU0QjoyNUZGRDc2OjMyNkE4Qzk6NkIwMTlBNTUiLCJ2aXNpdG9yX2lkIjoiNTEwNDAzNTI4NDA1MjQ0OTg3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac450908a4f91127e8585bb46724fa125c569e43caf65a13610fa08c2b16f6ce32
hovercard-subject-tagissue:1256071572
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/1943/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cae6311c164b945c10555eb6a9cda2e861ca01c7db1a3bfa4e4771964614a375/coder/coder/issues/1943
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cae6311c164b945c10555eb6a9cda2e861ca01c7db1a3bfa4e4771964614a375/coder/coder/issues/1943
og:image:altAs was done in the usersXService, we should go through the frontend and make sure all error messages from the API are being unpacked properly to avoid over-reliance on default error messages, or di...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepresleyp
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/1943#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F1943
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F1943
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/1943
Reloadhttps://github.com/coder/coder/issues/1943
Reloadhttps://github.com/coder/coder/issues/1943
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/1943
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/1943
Consistently display error messages from backend https://github.com/coder/coder/issues/1943#top
siteArea: frontend dashboardhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22site%22
https://github.com/presleyp
presleyphttps://github.com/presleyp
on Jun 1, 2022https://github.com/coder/coder/issues/1943#issue-1256071572
Create new component to display error messages with details #3106https://github.com/coder/coder/issues/3106
Fix error messages in authXService #3088https://github.com/coder/coder/issues/3088
Fix error messages in workspaceScheduleXService and workspaceScheduleBannerXService #3097https://github.com/coder/coder/issues/3097
Fix error messages in workspaceXService #3094https://github.com/coder/coder/issues/3094
Fix error messages in workspacesXService #3096https://github.com/coder/coder/issues/3096
Fix error messages in workspaceBuildXService #3095https://github.com/coder/coder/issues/3095
Fix error messages in usersXService #3093https://github.com/coder/coder/issues/3093
Fix error messages in templatesXService #3091https://github.com/coder/coder/issues/3091
Fix error messages in siteRolesXService #3090https://github.com/coder/coder/issues/3090
Fix error messages in buildInfoXService #3089https://github.com/coder/coder/issues/3089
Replace getFormHelpers #3209https://github.com/coder/coder/issues/3209
Fix error messages in createWorkspaceXService #3343https://github.com/coder/coder/issues/3343
presleyphttps://github.com/presleyp
siteArea: frontend dashboardhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22site%22
needs grooming 🪒https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22needs%20grooming%20%3Arazor%3A%22
on Jun 1, 2022https://github.com/coder/coder/issues/1943#event-6719331740
presleyphttps://github.com/presleyp
on Jun 1, 2022https://github.com/coder/coder/issues/1943#event-6723742105
presleyphttps://github.com/presleyp
Community MVPhttps://github.com/coder/coder/milestone/2
on Jun 2, 2022https://github.com/coder/coder/issues/1943#event-6728460610
presleyphttps://github.com/presleyp
Community MVP 🏁https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22Community%20MVP%20%3Acheckered_flag%3A%22
on Jun 2, 2022https://github.com/coder/coder/issues/1943#event-6728461611
missknisshttps://github.com/misskniss
presleyphttps://github.com/presleyp
on Jun 3, 2022https://github.com/coder/coder/issues/1943#event-6733596300
presleyphttps://github.com/presleyp
needs grooming 🪒https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22needs%20grooming%20%3Arazor%3A%22
on Jun 6, 2022https://github.com/coder/coder/issues/1943#event-6754384866
presleyphttps://github.com/presleyp
on Jun 6, 2022https://github.com/coder/coder/issues/1943#event-6754384976
presleyphttps://github.com/presleyp
on Jun 6, 2022https://github.com/coder/coder/issues/1943#event-6754388343
https://github.com/presleyp
presleyphttps://github.com/presleyp
on Jun 8, 2022https://github.com/coder/coder/issues/1943#issuecomment-1149967884
missknisshttps://github.com/misskniss
Enterprise MVPhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22Enterprise%20MVP%22
Community MVPhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22Community%20MVP%22
on Jun 16, 2022https://github.com/coder/coder/issues/1943#event-6822039067
missknisshttps://github.com/misskniss
Community MVPhttps://github.com/coder/coder/milestone/2
Enterprise MVP https://github.com/coder/coder/milestone/5
on Jun 16, 2022https://github.com/coder/coder/issues/1943#event-6822039525
https://github.com/misskniss
missknisshttps://github.com/misskniss
on Jul 19, 2022https://github.com/coder/coder/issues/1943#issuecomment-1189219194
presleyphttps://github.com/presleyp
epichttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22epic%22
on Jul 20, 2022https://github.com/coder/coder/issues/1943#event-7032100491
missknisshttps://github.com/misskniss
Enterprise MVPhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22Enterprise%20MVP%22
on Jul 21, 2022https://github.com/coder/coder/issues/1943#event-7040880202
missknisshttps://github.com/misskniss
Enterprise MVP https://github.com/coder/coder/milestone/5
on Jul 22, 2022https://github.com/coder/coder/issues/1943#event-7047360839
https://github.com/misskniss
missknisshttps://github.com/misskniss
on Aug 2, 2022https://github.com/coder/coder/issues/1943#issuecomment-1202884693
kylecarbshttps://github.com/kylecarbs
epichttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22epic%22
on Aug 24, 2022https://github.com/coder/coder/issues/1943#event-7253523659
presleyphttps://github.com/presleyp
on Aug 30, 2022https://github.com/coder/coder/issues/1943#event-7290169801
https://github.com/kylecarbs
kylecarbshttps://github.com/kylecarbs
on Sep 23, 2022https://github.com/coder/coder/issues/1943#issuecomment-1256548093
kylecarbshttps://github.com/kylecarbs
not plannedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Sep 23, 2022https://github.com/coder/coder/issues/1943#event-7449605327
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/1943
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/1943
siteArea: frontend dashboardhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22site%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.