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

Support `autoClosePeriod` on team #15

Closed pksunkara closed 1 year ago

pksunkara commented 1 year ago

The default value for it is 6 during creation if we don't specify it in teamCreate mutation.

mutation Mutation($teamCreateInput: TeamCreateInput!) {
  teamCreate(input: $teamCreateInput) {
    team {
      key
      name
      autoClosePeriod
    }
  }
}
  "teamCreateInput": {
    "key": "NICE",
    "name": "nice",
  },

And if we want to disable it, the value that should be sent in teamUpdate mutation is mentioned as null.

mutation TeamUpdate($teamUpdateInput: TeamUpdateInput!, $teamUpdateId: String!) {
  teamUpdate(input: $teamUpdateInput, id: $teamUpdateId) {
    team {
      name
      key
      autoClosePeriod
    }
  }
}
  "teamUpdateInput": {
    "autoClosePeriod": null,
  },
  "teamUpdateId": "NICE",

But if we send null for it in teamCreate mutation, instead of disabling this setting, it defaults to 6 instead.

  "teamCreateInput": {
    "key": "NICE",
    "name": "nice",
    "autoClosePeriod": null
  },

Expected It should be disabled during creation if we send null.