Skip to content

tasks: refactor: set column template_versions.has_ai_task when coder_task is referenced #980

Closed as not planned

Description

@johnstcn

Blocked by #977

A template version currently is defined as having an AI task if the Terraform graph has a coder_ai_task resource.

#977 introduces a coder_task data source. A template version should only be counted as having an AI task if it references this new data source.

Rationale: creating a coder_ai_task data source can be predicated on complex logic. template_versions.has_ai_task is primarily to restrict the possible template versions from which a Task could be created. Since the relevant information for a task will only be available in the coder_task data source, a template that does not reference this data source will not be able to create a Task.

Activity

  1. added theissue type on Sep 10, 2025
  2. changed the title [-]tasks: refactor: set column template_versions.has_ai_task when data.coder_task is referenced[/-] [+]tasks: refactor: set column template_versions.has_ai_task when coder_task is referenced[/+] on Oct 8, 2025
  3. johnstcn commented on Oct 8, 2025

    @johnstcn
    MemberAuthor

    We ended up keeping the resource instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions