Skip to content

fix: Remove unused workspace routes in favor of list with filter #2038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 3, 2022

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