Repository navigation
feat(coderd): add organization saved workflow routes - #337
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. |
|
Codex Review: Didn't find any major issues. Swish! 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. 🚀 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". |
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 831eeefbe2
ℹ️ 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".
…aved-workflows-c # Conflicts: # coderd/x/chatd/ARCHITECTURE.md
@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 |
…workflows-a # Conflicts: # coderd/database/forkdb/sqlc.yaml
Merged main forward through the stack. @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". |
…aved-workflows-c Organization GET, DELETE and ACL routes check the path name too.
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. 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. Another round soon, please! 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
Merged -b forward, after main (with #335) went into -b. The org insert sets @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-c # Conflicts: # coderd/fork_chat_routes.go # coderd/fork_saved_workflows.go # coderd/fork_saved_workflows_test.go # coderd/x/chatd/ARCHITECTURE.md # codersdk/fork_saved_workflows.go
#336 merged. The base is now main and main is merged in. Conflicts from the squash merge were resolved to C's side. The one exception is ARCHITECTURE.md, which keeps #344's changes. fork-ci is green on this head. @codex review |
|
Codex Review: Didn't find any major issues. Nice work! 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 895036c (squash, Gates on head d0dcfda, checked by script right before the merge:
The previous deploy (b4340bd) was live before this merge. Not exercised: the routes against the running server, |
Part of #322. Stacked on #336 (user routes). Third of four PRs: storage, user routes, organization routes and ACL (this one), then
run_workflowby name.What changed
fork-workflows, at/api/v2/chats/fork/organizations/{organization}/workflows[/{workflow}]: list, create, get, patch, delete. PlusGET /acl,GET /acl/availableandPATCH /acl. They mirror the organization agent definition routes and reuse the organization skill ACL types and helpers.created_byis the caller anduser_idis empty.docs/output is left out for the reason given in feat(coderd): add user saved workflow routes #336.Assumption for the lead: a plain member cannot publish to the organization tier, because this mirrors agent definitions and organization skills. #327 mentions a member sharing a workflow. If that should be allowed, it needs an RBAC decision.
Tests
flock ~/.fork-go.lock go test ./coderd/ -run 'TestFork(User|Organization)SavedWorkflows' -count=1 -v: all 5 subtests pass. The organization tests cover admin CRUD, conflict and invalid input, the tier split from a personal workflow of the same name, member read via Everyone, member writes refused with 403, ACL narrowing, 404 for non-readers, 403 for readers, ACL routes hidden from readers, the available-candidates route, a bad ACL update, and the experiment off.flock ~/.fork-go.lock make gen GEN_SKIP_GOLDEN=1: pass. Swag reordered two enum blocks this run. I restored the original order so the generated diff only adds the new routes and types.golangci-lint run --fix=false ./coderd/ ./codersdk/: no findings in the files of this PR.