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

feat: addenabled computed field tocoder_ai_task#451

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/enabled-field
Oct 31, 2025

Conversation

@DanielleMaywood
Copy link
Contributor

As discussed, we want to enable a way for consumers to know if their template is being provisioned as a task or not. We know thatCODER_TASK_ID is set by the provisioner, it is being provisioned as a task, and not as a usual workspace. We use this knowledge to set a computed fieldenabled to reflect this.

@DanielleMaywoodDanielleMaywoodforce-pushed thedanielle/tasks/enabled-field branch 2 times, most recently from1accf42 to90633dbCompareOctober 31, 2025 10:44
@DanielleMaywoodDanielleMaywood marked this pull request as ready for reviewOctober 31, 2025 10:49
@DanielleMaywoodDanielleMaywood marked this pull request as draftOctober 31, 2025 10:49
As discussed, we want to enable a way for consumers to know if theirtemplate is being provisioned as a task or not. We know that`CODER_TASK_ID` is set by the provisioner, it is being provisioned asa task, and not as a usual workspace. We use this knowledge to seta computed field `enabled` to reflect this.fix: testsfix: maybe fix?does this fix it?
@DanielleMaywoodDanielleMaywoodforce-pushed thedanielle/tasks/enabled-field branch from90633db to9b25602CompareOctober 31, 2025 10:52
@DanielleMaywoodDanielleMaywood marked this pull request as ready for reviewOctober 31, 2025 11:02
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

Probably fine, but I wonder if template building can be affected by this. At least when doing template build I imagine this value will always be false, and if including something is included conditionally, will that delay validation of certain things until workspace/task build?

Perhaps templates need a "build as task" mode to properly test writing them.

@DanielleMaywoodDanielleMaywood merged commit1211f28 intomainOct 31, 2025
6 checks passed
@DanielleMaywoodDanielleMaywood deleted the danielle/tasks/enabled-field branchOctober 31, 2025 11:32
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 31, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@mafredrimafredrimafredri approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@DanielleMaywood@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp