terraform-community-providers / terraform-provider-linear

Terraform provider for linear.app
https://registry.terraform.io/providers/terraform-community-providers/linear/latest/docs
Mozilla Public License 2.0
2 stars 1 forks source link

Unable to create team label #14

Closed pksunkara closed 1 year ago

pksunkara commented 1 year ago
        Error: Client Error

          with linear_team_label.test,
          on terraform_plugin_test.tf line 2, in resource "linear_team_label" "test":
           2: resource "linear_team_label" "test" {

        Unable to create team label, got error: input:3: issueLabelCreate Internal
        server error

This seems to be a regression on Linear API.

Apollo studio debug:

mutation IssueLabelCreate($issueLabelCreateInput: IssueLabelCreateInput!) {
  issueLabelCreate(input: $issueLabelCreateInput) {
    issueLabel {
      id
      name
      description
      color
      team {
        id
        name
        key
      }
    }
  }
}
  "issueLabelCreateInput": {
    "name": "Woah",
    "team_id": "4486be5a-706b-47be-81ab-1937d6ecf193"
  },
tommoor commented 1 year ago

From what I can tell the error is likely because the team Id was invalid, also the input is teamId camelCase, not team_id

pksunkara commented 1 year ago

@tommoor You are right. I must have recreated my test team and forgot to update it in tests. Thanks.