René's URL Explorer Experiment


Title: API: Users, Projects, and Workspaces middleware should support UUID and friendly names · Issue #380 · coder/coder · GitHub

Open Graph Title: API: Users, Projects, and Workspaces middleware should support UUID and friendly names · Issue #380 · coder/coder

X Title: API: Users, Projects, and Workspaces middleware should support UUID and friendly names · Issue #380 · coder/coder

Description: For all the top-level entities in v2 - users, organizations, projects, workspaces` - there are two modes of identification. There is a unique id (ie, 3590cc6d-92aa-478a-b6a8-62b1518cc599) and a friendly name that is enforced to be unique...

Open Graph Description: For all the top-level entities in v2 - users, organizations, projects, workspaces` - there are two modes of identification. There is a unique id (ie, 3590cc6d-92aa-478a-b6a8-62b1518cc599) and a fri...

X Description: For all the top-level entities in v2 - users, organizations, projects, workspaces` - there are two modes of identification. There is a unique id (ie, 3590cc6d-92aa-478a-b6a8-62b1518cc599) and a fri...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"API: Users, Projects, and Workspaces middleware should support UUID and friendly names","articleBody":"For all the top-level entities in v2 - `users`, `organizations`, `projects, `workspaces` - there are two modes of identification.\r\n\r\nThere is a unique id (ie, `3590cc6d-92aa-478a-b6a8-62b1518cc599`) and a friendly name that is enforced to be unique (ie, `my-project`).\r\n\r\nOur API routes currently only support the _friendly name_.\r\n\r\nSo for the above example, in the current world - assuming we're calling as a user with perms to read the org / project:\r\n- `GET` `/api/v2/projects/acme-corp/my-project` would succeed\r\n- `GET` `/api/v2/projects/acme-corp/3590cc6d-92aa-478a-b6a8-62b1518cc599` would fail\r\n\r\nThis is problematic - because in some cases, we _only_ have the unique id to work with.\r\n\r\nFor example, in the `GET` workspaces API:\r\n- `GET` `/api/v2/workspaces/me/my-workspace`\r\n\r\nThe following is returned:\r\n```json\r\n{\"id\":\"3590cc6d-92aa-478a-b6a8-62b1518cc599\",\"created_at\":\"2022-02-28T18:33:24.724734181Z\",\"updated_at\":\"2022-02-28T18:33:24.724734291Z\",\"owner_id\":\"4aeaa38d-d119-47f8-9008-3858e145a076\",\"project_id\":\"0b0fa178-ab74-41c7-81e3-583a9bc08610\",\"name\":\"my-workspace\"}\r\n```\r\n\r\nTo make use of this data - and to read information about the project or organization of the workspace, __the apis need to also support referencing by unique id__.\r\n\r\nThe work required is:\r\n- Update [ExtractUserParam](https://github.com/coder/coder/blob/58f3e439dd8547fe237398f5ec8567d88913cd16/httpmw/userparam.go#L26) to support referencing by friendly-name OR unique ID\r\n- Update [ExtractProjectParam](https://github.com/coder/coder/blob/58f3e439dd8547fe237398f5ec8567d88913cd16/httpmw/projectparam.go#L27) to support referencing by friendly-name OR unique ID\r\n- Update [ExtractUserParam](https://github.com/coder/coder/blob/58f3e439dd8547fe237398f5ec8567d88913cd16/httpmw/userparam.go) to support referencing by friendly-name OR unique ID\r\n- Add relevant test cases","author":{"url":"https://github.com/bryphe-coder","@type":"Person","name":"bryphe-coder"},"datePublished":"2022-02-28T18:46:55Z","url":"https://github.com/coder/coder/issues/380"}

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:7cfb4430-b4f6-96b0-e162-5a8f8aa2eac5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id913A:E9D16:142B8F3:19871C6:6B01627A
html-safe-noncecd4c6d01490b1ee2da297e66c14c7f4312547702f3686aaf19f557635b8909fd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTNBOkU5RDE2OjE0MkI4RjM6MTk4NzFDNjo2QjAxNjI3QSIsInZpc2l0b3JfaWQiOiI3ODE5OTU4NzcyODAxMDM2OTIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac59a39eb8fab8b0c8f56c8e600850c5a82ce0db56f325f0fe1240176a74ec93ee
hovercard-subject-tagissue:1154430411
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/380/issue_layout
twitter:imagehttps://opengraph.githubassets.com/36c4bffb0ae381a5ad5fe3a8e64cb199b9febf2d14f7c7221140ffe5aaf43dbe/coder/coder/issues/380
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/36c4bffb0ae381a5ad5fe3a8e64cb199b9febf2d14f7c7221140ffe5aaf43dbe/coder/coder/issues/380
og:image:altFor all the top-level entities in v2 - users, organizations, projects, workspaces` - there are two modes of identification. There is a unique id (ie, 3590cc6d-92aa-478a-b6a8-62b1518cc599) and a fri...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebryphe-coder
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/380#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F380
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%2F380
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/380
Reloadhttps://github.com/coder/coder/issues/380
Reloadhttps://github.com/coder/coder/issues/380
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/380
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/380
#415https://github.com/coder/coder/pull/415
API: Users, Projects, and Workspaces middleware should support UUID and friendly nameshttps://github.com/coder/coder/issues/380#top
#415https://github.com/coder/coder/pull/415
apiArea: HTTP APIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22api%22
V2 Alphahttps://github.com/coder/coder/milestone/3
https://github.com/bryphe-coder
bryphe-coderhttps://github.com/bryphe-coder
on Feb 28, 2022https://github.com/coder/coder/issues/380#issue-1154430411
ExtractUserParamhttps://github.com/coder/coder/blob/58f3e439dd8547fe237398f5ec8567d88913cd16/httpmw/userparam.go#L26
ExtractProjectParamhttps://github.com/coder/coder/blob/58f3e439dd8547fe237398f5ec8567d88913cd16/httpmw/projectparam.go#L27
ExtractUserParamhttps://github.com/coder/coder/blob/58f3e439dd8547fe237398f5ec8567d88913cd16/httpmw/userparam.go
bryphe-coderhttps://github.com/bryphe-coder
good first issuehttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
on Feb 28, 2022https://github.com/coder/coder/issues/380#event-6156808269
bryphe-coderhttps://github.com/bryphe-coder
on Mar 1, 2022https://github.com/coder/coder/issues/380#event-6158375952
bryphe-coderhttps://github.com/bryphe-coder
completedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#415https://github.com/coder/coder/pull/415
on Mar 9, 2022https://github.com/coder/coder/issues/380#event-6213126558
bryphe-coderhttps://github.com/bryphe-coder
on Mar 9, 2022https://github.com/coder/coder/issues/380#event-6213126655
fix: Update routes for project page, workspace creation page, and wor…https://github.com/coder/coder/commit/9f190418bb8427d967c349ee974e068abd945f76
https://docs.github.com/articles/closing-issues-via-commit-messages
9f19041https://github.com/coder/coder/commit/9f190418bb8427d967c349ee974e068abd945f76
missknisshttps://github.com/misskniss
V2 Alphahttps://github.com/coder/coder/milestone/3
on May 3, 2022https://github.com/coder/coder/issues/380#event-6538547686
missknisshttps://github.com/misskniss
V2 ALPHAhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22V2%20ALPHA%22
apiArea: HTTP APIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22api%22
on Jun 14, 2022https://github.com/coder/coder/issues/380#event-6800336842
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/380
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/380
apiArea: HTTP APIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22api%22
V2 Alphahttps://github.com/coder/coder/milestone/3
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.