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

chore(coderd/database): add tasks data model#19749

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
DanielleMaywood merged 1 commit intomainfromdanielle/tasks/data-model
Sep 10, 2025

Conversation

DanielleMaywood
Copy link
Contributor

@DanielleMaywoodDanielleMaywood commentedSep 9, 2025
edited
Loading

Part ofcoder/internal#948

A notable omission in this PR compared with the RFC is a lack of thetask_status type and thestatus column in thetasks table. This is due to some limitations with generated columns.

The generation expression can only use immutable functions and cannot use subqueries or reference anything other than the current row in any way.

Computing astatus would require querying data from another table, which is forbidden. A solution to addstatus will be in the future. This could be in the form of a view or being defined only at the point ofGetTasks orGetTaskByID.


AI Disclaimer: Claude Opus 4.1 Thinking was used to help create the testdata fixture

@DanielleMaywoodDanielleMaywoodforce-pushed thedanielle/tasks/data-model branch 2 times, most recently from14f03d4 to0ede135CompareSeptember 9, 2025 15:38
@DanielleMaywoodDanielleMaywood marked this pull request as ready for reviewSeptember 9, 2025 16:09
Copy link
Member

Choose a reason for hiding this comment

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

Obligatory reminder to check migration number before merge!

@DanielleMaywoodDanielleMaywood merged commit4cd0ada intomainSep 10, 2025
37 checks passed
@DanielleMaywoodDanielleMaywood deleted the danielle/tasks/data-model branchSeptember 10, 2025 09:01
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 10, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@mafredrimafredriAwaiting requested review from mafredri

Assignees

@DanielleMaywoodDanielleMaywood

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@DanielleMaywood@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp