Title: Add `/workspaces` to allow for filtered and paginated querying · Issue #1477 · coder/coder · GitHub
Open Graph Title: Add `/workspaces` to allow for filtered and paginated querying · Issue #1477 · coder/coder
X Title: Add `/workspaces` to allow for filtered and paginated querying · Issue #1477 · coder/coder
Description: There are currently two workspaces endpoints: /organizations/
Open Graph Description: There are currently two workspaces endpoints: /organizations/
X Description: There are currently two workspaces endpoints: /organizations/<id>/workspaces is required to filter workspaces by the organization. /users/<id>/workspaces returns all workspaces a user c...
Opengraph URL: https://github.com/coder/coder/issues/1477
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add `/workspaces` to allow for filtered and paginated querying","articleBody":"There are currently two workspaces endpoints:\r\n\r\n`/organizations/\u003cid>/workspaces` is required to filter workspaces by the organization.\r\n`/users/\u003cid>/workspaces` returns all workspaces a user can access, across all organizations they have access to.\r\n\r\nThese can be combined into `/workspaces`. This endpoint should be paginated, always return all workspaces the authenticated user has access to by default, and have query parameters to filter the response.\r\n\r\nPagination can follow existing patterns found in the codebase. Here are some query parameters I can immediately see being valuable:\r\n- `owner` - Return all workspaces that are owned by a user with the specified name.\r\n- `organization` - Return all workspaces in the specified organization.\r\n- `latest_job_status` - Returns all workspaces with the latest build having the job status provided. This will be used to query: \"all workspaces with the latest status of failed\".\r\n- `updated` - Returns all workspaces that are up-to-date or not.\r\n- `template` - Returns all workspaces using the specified template name.\r\n- `version` - Returns all workspaces using the specified version name.\r\n\r\nInspiration for this is drawn from making the [workspaces page](https://github.com/coder/coder/pull/1450).\r\n","author":{"url":"https://github.com/kylecarbs","@type":"Person","name":"kylecarbs"},"datePublished":"2022-05-16T13:53:50Z","url":"https://github.com/coder/coder/issues/1477"}
| 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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:16872706-250b-71bf-8524-3b1d64129377 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80F0:291B58:178C8CC:1DC9DBA:6B01783E |
| html-safe-nonce | 3bbad4ce2ca2b4c1e1f029e8aaa2c131e6d25dc2018739d9f8dd7e4446366904 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEYwOjI5MUI1ODoxNzhDOENDOjFEQzlEQkE6NkIwMTc4M0UiLCJ2aXNpdG9yX2lkIjoiNDkxOTMwMjQxNDE2NDY1NDE0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 13b6335f05bec9e46d9e8527cd6c5270b15077ee6de19d03c6e043e74d893c11 |
| hovercard-subject-tag | issue:1237198363 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/1477/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fcc593e304342f7a5e9d4f64fa5b176c41e15f6a3738e0206634cb9a85c925f7/coder/coder/issues/1477 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fcc593e304342f7a5e9d4f64fa5b176c41e15f6a3738e0206634cb9a85c925f7/coder/coder/issues/1477 |
| og:image:alt | There are currently two workspaces endpoints: /organizations/ |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kylecarbs |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| 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 | issues |
Links:
Viewport: width=device-width