{"action":"created","issue":{"url":"https://api.github.com/repos/launchdarkly/ld-openapi/issues/7","repository_url":"https://api.github.com/repos/launchdarkly/ld-openapi","labels_url":"https://api.github.com/repos/launchdarkly/ld-openapi/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/launchdarkly/ld-openapi/issues/7/comments","events_url":"https://api.github.com/repos/launchdarkly/ld-openapi/issues/7/events","html_url":"https://github.com/launchdarkly/ld-openapi/issues/7","id":349759303,"node_id":"MDU6SXNzdWUzNDk3NTkzMDM=","number":7,"title":"Default environments make life difficult for API consumers","user":{"login":"mlafeldt","id":158074,"node_id":"MDQ6VXNlcjE1ODA3NA==","avatar_url":"https://avatars3.githubusercontent.com/u/158074?v=4","gravatar_id":"","url":"https://api.github.com/users/mlafeldt","html_url":"https://github.com/mlafeldt","followers_url":"https://api.github.com/users/mlafeldt/followers","following_url":"https://api.github.com/users/mlafeldt/following{/other_user}","gists_url":"https://api.github.com/users/mlafeldt/gists{/gist_id}","starred_url":"https://api.github.com/users/mlafeldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlafeldt/subscriptions","organizations_url":"https://api.github.com/users/mlafeldt/orgs","repos_url":"https://api.github.com/users/mlafeldt/repos","events_url":"https://api.github.com/users/mlafeldt/events{/privacy}","received_events_url":"https://api.github.com/users/mlafeldt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-11T19:48:50Z","updated_at":"2018-09-06T20:53:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hey,\r\n\r\nThanks for the excellent OpenAPI specification. I've successfully used it to generate a [Go client library](https://github.com/mlafeldt/go-launchdarkly), and it's been working great overall! 👍\r\n\r\nI've been using the Go library as part of my brand-new **Terraform provider for LaunchDarkly**:\r\n\r\nhttps://github.com/mlafeldt/terraform-provider-launchdarkly\r\n\r\nAt this moment, the provider allows to manage LaunchDarkly projects, environments, and feature flags. While it works great in general, there are at least two [known issues](https://github.com/mlafeldt/terraform-provider-launchdarkly#known-issues) that make development of a proper provider kind of difficult:\r\n\r\n1. Creating a new project via the LaunchDarkly API will, unfortunately, also create two environments by default (Production and Test). It's not possible to delete both since at least one must exist. The `launchdarkly_project` and `launchdarkly_environment` resources don't handle this case in a good way yet. As a workaround, it's possible to import these special environments via `terraform import`.\r\n2. Even if we could solve the previous issue, there would still be the problem that there must be at least one project, making it impossible to have a clean slate using Terraform.\r\n\r\nI hope you can see how providing API endpoints for creating projects _and_ environments, with the former interfering with the latter, can cause the mentioned problems for API consumers. As far as I can see, there's no way to change this surprising behavior. Please advise.\r\n"},"comment":{"url":"https://api.github.com/repos/launchdarkly/ld-openapi/issues/comments/419237795","html_url":"https://github.com/launchdarkly/ld-openapi/issues/7#issuecomment-419237795","issue_url":"https://api.github.com/repos/launchdarkly/ld-openapi/issues/7","id":419237795,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTIzNzc5NQ==","user":{"login":"jkodumal","id":19426,"node_id":"MDQ6VXNlcjE5NDI2","avatar_url":"https://avatars2.githubusercontent.com/u/19426?v=4","gravatar_id":"","url":"https://api.github.com/users/jkodumal","html_url":"https://github.com/jkodumal","followers_url":"https://api.github.com/users/jkodumal/followers","following_url":"https://api.github.com/users/jkodumal/following{/other_user}","gists_url":"https://api.github.com/users/jkodumal/gists{/gist_id}","starred_url":"https://api.github.com/users/jkodumal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkodumal/subscriptions","organizations_url":"https://api.github.com/users/jkodumal/orgs","repos_url":"https://api.github.com/users/jkodumal/repos","events_url":"https://api.github.com/users/jkodumal/events{/privacy}","received_events_url":"https://api.github.com/users/jkodumal/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T20:53:42Z","updated_at":"2018-09-06T20:53:42Z","author_association":"CONTRIBUTOR","body":"@mlafeldt Sorry for the slow response-- that sounds like a very good compromise. We'll spike a change to our API to allow this."}}
{"actor":{"display_login":"jkodumal"}}