Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(coderd/database): add missing columns to tasks with status#20311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 3 commits intomainfrommafredri/fix-coderd-update-tasks-view
Oct 15, 2025

Conversation

@mafredri
Copy link
Member

@mafredrimafredriforce-pushed themafredri/fix-coderd-update-tasks-view branch fromb3e76aa tob8c1478CompareOctober 15, 2025 14:54
@mafredrimafredri changed the base branch frommafredri/task-audit tomainOctober 15, 2025 14:54
@mafredrimafredriforce-pushed themafredri/fix-coderd-update-tasks-view branch fromb20e649 to466baebCompareOctober 15, 2025 15:47
@mafredrimafredriforce-pushed themafredri/fix-coderd-update-tasks-view branch from466baeb to464e080CompareOctober 15, 2025 15:54
@mafredrimafredri marked this pull request as ready for reviewOctober 15, 2025 15:58
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This pull request adds missing columns to the Task API structure to expose workspace build number, workspace agent ID, and workspace app ID from the tasks_with_status database view. The changes ensure these previously unavailable fields are included in task queries and properly exposed through the API.

  • AddsWorkspaceBuildNumber andWorkspaceAppID fields to the Task struct across Go types and TypeScript interfaces
  • Updates database queries and models to include the new columns from the tasks_with_status view
  • Enhances test coverage to verify the new fields are properly populated and validated

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
site/src/testHelpers/entities.tsAdds mock values for workspace_build_number and workspace_app_id fields
site/src/api/typesGenerated.tsUpdates TypeScript Task interface to include the new optional fields
docs/reference/api/schemas.mdDocuments the new workspace_build_number and workspace_app_id fields in API schema
codersdk/aitasks.goAdds WorkspaceBuildNumber and WorkspaceAppID fields to Go Task struct
coderd/database/sqlc.yamlAdds type override for workspace_build_number to handle nullable int32
coderd/database/queries.sql.goUpdates generated SQL queries to select and scan the new columns
coderd/database/querier_test.goExpands test cases to validate the new fields are properly set
coderd/database/models.goUpdates database Task model to include the new columns
coderd/database/migrations/*.sqlCreates and manages database view changes to expose the new columns
coderd/database/dump.sqlUpdates database schema dump with new view columns
coderd/apidoc/*Updates API documentation to include the new fields
coderd/aitasks.goPopulates new fields in taskFromWorkspace function
cli/exp_task_status_test.goUpdates test output to include workspace_app_id field

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

Copy link
Contributor

@DanielleMaywoodDanielleMaywood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Unfortunate that sqlc trips up

mafredri reacted with confused emoji
@mafredrimafredrienabled auto-merge (squash)October 15, 2025 16:23
@mafredrimafredri merged commit82945cf intomainOct 15, 2025
35 checks passed
@mafredrimafredri deleted the mafredri/fix-coderd-update-tasks-view branchOctober 15, 2025 16:34
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 15, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

Copilot code reviewCopilotCopilot left review comments

@johnstcnjohnstcnjohnstcn approved these changes

@DanielleMaywoodDanielleMaywoodDanielleMaywood approved these changes

Assignees

@mafredrimafredri

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@mafredri@johnstcn@DanielleMaywood

[8]ページ先頭

©2009-2025 Movatter.jp