Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

feat: initial work on endpoints for creating/updating workspace config - #1107

Merged
lxmcgvrn merged 23 commits into
mainfrom
feat/configure-workspace-endpoint
Mar 5, 2025
Merged

lxmcgvrn merged 23 commits into
mainfrom
feat/configure-workspace-endpoint

Conversation

@lxmcgvrn

@lxmcgvrn lxmcgvrn commented Feb 19, 2025

Copy link
Copy Markdown
Contributor

Related to #1067

  • Modifies the existing POST /workspaces
    • it exclusively handles workspace creation — the ability to rename via this endpoint is removed
    • it can handle custom instructions & muxes configuration as part of the same request
  • Adds a PUT /workspaces/:workspace_name
    • this is how you rename a workspace now
    • this can also handle updating custom instructions & muxes configuration

Has a companion PR for the dashboard to handle the breaking changes: stacklok/codegate-ui#349

ToDo:

  • GET /workspaces/:workspace_name or maybe (/workspaces/:workspace_name/config, I'm not sure yet) to get the configuration for a workspace

Comment thread src/codegate/api/v1.py Outdated
@lxmcgvrn lxmcgvrn changed the title feat: initial work on endpoints for creating/updating feat: initial work on endpoints for creating/updating workspace config Feb 19, 2025
Comment thread tests/api/test_v1_workspaces.py
@lxmcgvrn
lxmcgvrn marked this pull request as ready for review February 21, 2025 16:38
@lxmcgvrn
lxmcgvrn marked this pull request as draft February 21, 2025 16:38
@lxmcgvrn
lxmcgvrn marked this pull request as ready for review March 4, 2025 09:26
Comment thread src/codegate/muxing/models.py Outdated
Comment thread src/codegate/api/v1.py
Comment thread src/codegate/workspaces/crud.py
Comment thread src/codegate/workspaces/crud.py Outdated
Comment thread src/codegate/workspaces/crud.py Outdated
Comment thread src/codegate/db/connection.py
@lxmcgvrn
lxmcgvrn merged commit f310e46 into main Mar 5, 2025
@lxmcgvrn
lxmcgvrn deleted the feat/configure-workspace-endpoint branch March 5, 2025 11:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants