Skip to content

Conversation

kylecarbs
Copy link
Member

@kylecarbs kylecarbs commented Jun 3, 2022

This consolidates the workspace routes into a single place.
It allows users to fetch a workspace by their username and
workspace name, which will be used by the frontend for routing.

This fixes all frontend pages using the old routes too, which only
seems to be the terminal page!

This consolidates the workspace routes into a single place.
It allows users to fetch a workspace by their username and
workspace name, which will be used by the frontend for routing.
@kylecarbs kylecarbs requested a review from coadler June 3, 2022 17:10
@kylecarbs kylecarbs self-assigned this Jun 3, 2022
@kylecarbs kylecarbs requested a review from a team as a code owner June 3, 2022 17:10
@kylecarbs kylecarbs requested a review from johnstcn June 3, 2022 17:10
cli/autostart.go Outdated

workspace, err := client.WorkspaceByOwnerAndName(cmd.Context(), organization.ID, codersdk.Me, args[0])
workspace, err := client.WorkspaceByOwnerAndName(cmd.Context(), codersdk.Me, args[0])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might conflict with #2036!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, but in a great way. We'll no longer need organization IDs to query workspaces since they are namespaced!

@kylecarbs kylecarbs force-pushed the fixwsroutes branch 3 times, most recently from eee1232 to 4efc4be Compare June 3, 2022 19:06
@kylecarbs kylecarbs merged commit 43f622a into main Jun 3, 2022
@kylecarbs kylecarbs deleted the fixwsroutes branch June 3, 2022 19:36
kylecarbs added a commit that referenced this pull request Jun 10, 2022
* fix: Remove unused workspace routes in favor of list with filter

This consolidates the workspace routes into a single place.
It allows users to fetch a workspace by their username and
workspace name, which will be used by the frontend for routing.

* Fix RBAC

* Fix CLI usages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy