Skip to content

2. feat: workspace handler local-mode enhancements + DB migrations#89

Open
Adam-D-Lewis wants to merge 2 commits intodual-mode-backendfrom
workspace-local-mode
Open

2. feat: workspace handler local-mode enhancements + DB migrations#89
Adam-D-Lewis wants to merge 2 commits intodual-mode-backendfrom
workspace-local-mode

Conversation

@Adam-D-Lewis
Copy link
Member

Summary

  • Add Source and Path fields to server models.Workspace for local-mode provenance tracking
  • Workspace handler constructor takes isLocal flag; ListWorkspaces returns all workspaces in local mode (no ownership filtering)
  • Add SavePixiToml PUT endpoint (/workspaces/:id/pixi-toml)
  • Register store.Config and store.Credentials tables in server DB migrations with singleton row seeding
  • Executor returns workspace path directly for source=local workspaces

Test plan

  • go vet ./... passes
  • go test ./internal/store/... ./cmd/nebi/... passes
  • Team mode: workspace listing still filters by ownership/permissions
  • Local mode: workspace listing returns all workspaces
  • PUT /workspaces/:id/pixi-toml saves content to disk

Depends on: #88

Add Source/Path fields to server Workspace model for local-mode provenance
tracking. Workspace handler constructor takes isLocal flag; ListWorkspaces
returns all workspaces in local mode. Add SavePixiToml PUT endpoint.
Register store Config/Credentials tables in server DB migrations with
singleton row seeding. Executor returns workspace path directly for
source=local workspaces.
@Adam-D-Lewis Adam-D-Lewis changed the title feat: workspace handler local-mode enhancements + DB migrations 2. feat: workspace handler local-mode enhancements + DB migrations Feb 6, 2026
- Skip filesystem deletion for source=local workspaces (#1)
- Reject source=local in team mode (#2)
- Remove store coupling from db.go; use dialect-agnostic GORM calls (#3, #9)
- Change variadic isLocal to plain bool (#4)
- Migrate store tables conditionally in server.go/app.go (#5)
- Validate source enum on CreateWorkspace (#6)
- Require absolute path for local workspaces (#7)
- Add missing Swagger failure annotations to SavePixiToml (#8)
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.

1 participant