Repository navigation
feat(coderd): add user saved workflow routes - #336
Conversation
|
$> Coder Agents acted on behalf of @ibetitsmike.\n\n@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dc1b94a9c8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4f70d030a3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 315ac5aa8a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 92a8a6880a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
@codex review |
…workflows-a # Conflicts: # coderd/database/forkdb/sqlc.yaml
Merged main forward through the stack. @codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 863372c067
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…workflows-b # Conflicts: # coderd/database/forkdb/sqlc.yaml
#335 merged, so the base is now main and main is merged into the branch. The sqlc.yaml conflict kept main's version. The branch already had A's lines in it. Phases: Creator: the user tier sets @codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merged as b4340bd (squash, Gates on head f6660b4, checked by script right before the merge:
Previous deploy (e993903) was live before this merge. Not exercised: the routes against the running server; no UI uses them yet (#326, #327). |
Correction to the gates comment above. Gate 1 said main was e993903 at merge time. That was true when the script checked, but #344 (7c10f9f) merged 3 seconds earlier, at 17:55:06Z, and this PR merged at 17:55:09Z on top of it. So main b4340bd holds #344 and #336, which had not been tested together before the merge. After the fact: the two PRs share only one file, |
Part of #322. Stacked on #335 (storage). Second of four PRs: storage, user routes (this one), org routes and ACL, then
run_workflowby name.What changed
fork-workflows, at/api/v2/chats/fork/organizations/{organization}/members/{user}/workflows[/{workflow}]: list (metadata only), create, get (with script), patch, delete. They mirror the user agent definition routes.codersdk/fork_saved_workflows.go:ForkSavedWorkflowMetadata,ForkSavedWorkflow, create and update requests, and client methods.coderd/x/chatd/fork_saved_workflows.go: exportedValidateWorkflowScript(size limit plus Starlark compile) andValidateWorkflowArgsSchema(the step schema check, which requires a top-leveltype: object).PATCHupdates only the fields it gets.args_schema: nullclears the schema andphases: []clears the phases.coderd/apidoc) andsite/src/api/typesGenerated.ts. The routes use@x-apidocgen {"skip": true}like the other fork chat routes. I left out thedocs/output ofmake gen, because main's docs are already behind on many fork types and regenerating them would pull unrelated drift into this PR.Why
Users need to save Starlark workflows so an agent can run them by name later (#226 scope item 4).
Tests
flock ~/.fork-go.lock go test ./coderd/ -run TestForkUserSavedWorkflows -count=1: pass. It covers create, conflict, nine invalid inputs, list, partial update, clearing the schema and phases, another member's 404 on read and 403 on write, delete, and the experiment off.flock ~/.fork-go.lock make gen GEN_SKIP_GOLDEN=1: pass. Helm is not installed in this workspace, so the golden step was skipped.golangci-lint run ./coderd/ ./codersdk/ ./coderd/x/chatd/: no findings in the files of this PR.Not covered here: the org tier and ACL routes (next PR) and the agent tool (last PR).