Repository navigation
feat: show the prebuilds user in the Workspaces Owner filter - #31827
Merged
Merged
Conversation
ibetitsmike
reviewed
Nov 6, 2026
ethanndickson
marked this pull request as ready for review
November 6, 2026 03:18
Codex Review SummaryThis 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. |
jakehwll
approved these changes
Nov 6, 2026
Prebuilt workspaces belong to the `prebuilds` system user, but the Owner filter gets its options from the users API, which hides system users. The users search now accepts `include_system:true`, and the Owner filter sends it. Closes CLIENT-267
ethanndickson
force-pushed
the
ethan/prebuilds-owner-filter
branch
from
November 12, 2026 12:28
b521651 to
5368e17
Compare
Contributor
Documentation CheckBlocking
Findings for agents- id: coverage-1
merged_with: learner-1
persona: coverage
class: missing
blocking: true
file: docs/templates/extending-templates/prebuilt-workspaces.md
line: 102
quote: " _Note the search term `owner:prebuilds`._"
evidence:
- site/src/pages/WorkspacesPage/filter/categoryOptions.tsx:118-123
- docs/templates/extending-templates/prebuilt-workspaces.md:100-102
rule: null
problem: This PR adds `include_system:true` to the Workspaces page's Owner filter query, which makes the `prebuilds` system user (and other system users) selectable from the dropdown. The page that teaches admins how to find prebuilt workspaces documents only the `owner:prebuilds` search term and never mentions this new dropdown path.
fix: In the sentence at line 102, add something like "You can also select `prebuilds` as an owner directly from the Owner filter dropdown." alongside the existing note about the `owner:prebuilds` search term.
verified: true
- id: coverage-2
persona: coverage
class: missing
blocking: true
file: docs/admin/users/index.md
line: 200-201
quote: "- `service_account` - Can be either `true` to only include service accounts or `false` to filter them out.\n If omitted, both service and regular accounts and are returned."
evidence:
- coderd/searchquery/search.go:232
- coderd/users.go:406
- docs/admin/users/index.md:167-201
rule: null
problem: This PR adds `include_system:true` as a new accepted token on the general users search (`/api/v2/users`, used by the Users page and the Workspaces Owner filter). The conceptual guide at docs/admin/users/index.md enumerates this endpoint's filter syntax (status, role, login_type, service_account, etc.) and is now incomplete: it has no entry for include_system, the only prose documentation of this query's grammar.
fix: Add a bullet to the filter list in docs/admin/users/index.md (after service_account, around line 201): "- `include_system` - Can be `true` to include system users, such as the `prebuilds` user, in the results. Defaults to `false`."
verified: trueAutomated review via Coder Agents. Reply to a finding's thread with the reason if the finding is wrong. |
ethanndickson
temporarily deployed
to
docs-preview
November 12, 2026 23:59 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes CLIENT-267
All prebuilt workspaces belong to the
prebuildssystem user, and the docs tell admins to find them withowner:prebuilds. However, the Owner filter on the Workspaces page never offersprebuilds, as its options come fromGET /api/v2/users, which hides system users. There was no way to ask for them either, as the users search rejectedinclude_system:true.So, the users search now accepts
include_system:true, and the Owner filter sends it. Without the term,/usersbehaves exactly as before, and you still only get back users you're allowed to read.The other endpoints that share the users search (org members, group members and the MCP ACL picker) now accept the term too, but they still hide system users. The template ACL picker reuses the
/usershandler, so it'll listprebuildsif you ask for it.