Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare 1.4.0 release #37

Merged
merged 8 commits into from
Aug 21, 2020
Merged

prepare 1.4.0 release #37

merged 8 commits into from
Aug 21, 2020

Conversation

atrakh
Copy link
Contributor

@atrakh atrakh commented Aug 21, 2020

FEATURES:

  • Added the launchdarkly_access_token resource.

ldhenry and others added 8 commits July 31, 2020 09:36
* add goreleaser.yml

* Update changelog

* fix version number
* Add GH actions for release

* Bump travis version

* Update readme
* prepare 1.2.2 release (#24)

* Fix non-empty plan when creating a team member with a custom role (#63)

* Fix handling of missing user target variation in API response (#64)

Co-authored-by: Isabelle Miller <[email protected]>

* v1.2.2

* Cleanup after v1.2.2 release

* [ch85469] first pass at tokens

* Update launchdarkly/resource_launchdarkly_access_token.go

Co-authored-by: Henry Barrow <[email protected]>

* add links to sensitive data callout

* expiry and permission fixes

* update markdown

* use latest openapi client

* keys

* tidy

* fixes

* docs update

* Fix go.mod and vendoring

* Remove henry's fmt.Printf

* Clean up go.mod

* clean up go.mod even further

* address some of review

* custom role keys instead of ids

* remove unused var

* reintroduce removed code

* remove references to deleted key

* Remove fmt.Println

* formatting fixes

* fix tests

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>
@atrakh atrakh requested a review from ldhenry August 21, 2020 19:36
@atrakh atrakh merged commit 4298e18 into master Aug 21, 2020
@atrakh atrakh deleted the release-1.4.0 branch August 21, 2020 19:40
ldhenry added a commit that referenced this pull request Sep 8, 2020
* update changelog for 1.4.0

* prepare 1.4.0 release (#37)

* Prep for migration release (#75)

* add goreleaser.yml

* Update changelog

* fix version number

* Add GH actions for release (#76)

* Add GH actions for release

* Bump travis version

* Update readme

* Automatically add changelog entry to release (#77)

* Update go.mod and automatically set version header (#78)

* Add access tokens (#79)

* prepare 1.2.2 release (#24)

* Fix non-empty plan when creating a team member with a custom role (#63)

* Fix handling of missing user target variation in API response (#64)

Co-authored-by: Isabelle Miller <[email protected]>

* v1.2.2

* Cleanup after v1.2.2 release

* [ch85469] first pass at tokens

* Update launchdarkly/resource_launchdarkly_access_token.go

Co-authored-by: Henry Barrow <[email protected]>

* add links to sensitive data callout

* expiry and permission fixes

* update markdown

* use latest openapi client

* keys

* tidy

* fixes

* docs update

* Fix go.mod and vendoring

* Remove henry's fmt.Printf

* Clean up go.mod

* clean up go.mod even further

* address some of review

* custom role keys instead of ids

* remove unused var

* reintroduce removed code

* remove references to deleted key

* Remove fmt.Println

* formatting fixes

* fix tests

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

* update changelog for 1.4.0

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>
sloloris added a commit that referenced this pull request Sep 29, 2020
* Prep for migration release (#75)

* add goreleaser.yml

* Update changelog

* fix version number

* Add GH actions for release (#76)

* Add GH actions for release

* Bump travis version

* Update readme

* Automatically add changelog entry to release (#77)

* Update go.mod and automatically set version header (#78)

* Add access tokens (#79)

* prepare 1.2.2 release (#24)

* Fix non-empty plan when creating a team member with a custom role (#63)

* Fix handling of missing user target variation in API response (#64)

Co-authored-by: Isabelle Miller <[email protected]>

* v1.2.2

* Cleanup after v1.2.2 release

* [ch85469] first pass at tokens

* Update launchdarkly/resource_launchdarkly_access_token.go

Co-authored-by: Henry Barrow <[email protected]>

* add links to sensitive data callout

* expiry and permission fixes

* update markdown

* use latest openapi client

* keys

* tidy

* fixes

* docs update

* Fix go.mod and vendoring

* Remove henry's fmt.Printf

* Clean up go.mod

* clean up go.mod even further

* address some of review

* custom role keys instead of ids

* remove unused var

* reintroduce removed code

* remove references to deleted key

* Remove fmt.Println

* formatting fixes

* fix tests

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

* Release 1.4.0 (#80)

* update changelog for 1.4.0

* prepare 1.4.0 release (#37)

* Prep for migration release (#75)

* add goreleaser.yml

* Update changelog

* fix version number

* Add GH actions for release (#76)

* Add GH actions for release

* Bump travis version

* Update readme

* Automatically add changelog entry to release (#77)

* Update go.mod and automatically set version header (#78)

* Add access tokens (#79)

* prepare 1.2.2 release (#24)

* Fix non-empty plan when creating a team member with a custom role (#63)

* Fix handling of missing user target variation in API response (#64)

Co-authored-by: Isabelle Miller <[email protected]>

* v1.2.2

* Cleanup after v1.2.2 release

* [ch85469] first pass at tokens

* Update launchdarkly/resource_launchdarkly_access_token.go

Co-authored-by: Henry Barrow <[email protected]>

* add links to sensitive data callout

* expiry and permission fixes

* update markdown

* use latest openapi client

* keys

* tidy

* fixes

* docs update

* Fix go.mod and vendoring

* Remove henry's fmt.Printf

* Clean up go.mod

* clean up go.mod even further

* address some of review

* custom role keys instead of ids

* remove unused var

* reintroduce removed code

* remove references to deleted key

* Remove fmt.Println

* formatting fixes

* fix tests

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

* update changelog for 1.4.0

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

* Ensure ommitted optional feature_flag_environment properties do not make changes when creating (#82)

* Ensure optional feature flag environment properties really are optional

* Update changelog

* Imiller/ch78293/make terraform project data source (#73)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* replace travis with circleCI to run full tests (#84)

* Add .circleci/config.yml

* specify working directory

* update run command

* comment out run command to see if it will build

* uncomment run & clean up'
:

* fix formatting

* change go version to 1.14

* add make vet

* fix indentation

* scrap travis

* don't run this test in parallel, see if it works

* that wasn't it

* add a 200ms sleep after creating custom roles to see if it fixes the not found error

* limit to 3 packages at a time

* try running just one package at a time?

* try a sleep of 1 second after custom role creation

* only clean team members that are pending invite

* run only team member tests

* run only create test

* only run update with custom role

* try all the team member tests again with seat limit flag off

* run all team member tests separately

* add test clean account

* remove -p and add custom props

* through test acc access token

* fix test name typo

* add all tests separately

* remove sleep

* don't run cleaner test

* run creates separately

* forgot to commit test name change

* run all four tests separately

* Imiller/ch78864/make environment data source (#83)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* refactor schemas to use overlapping baes

* scrap redundant config

* Update launchdarkly/environments_helper.go

Co-authored-by: Henry Barrow <[email protected]>

* Update launchdarkly/environments_helper.go

Co-authored-by: Henry Barrow <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>

* Imiller/ch87115/make feature flag data source (#85)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* scrap redundant config

* scrap redundant config

* fix merge issue

* fix merge again

* Imiller/ch88747/make feature flag environment a data source (#86)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* fix error typo (#89)

* Resolve issues with nested environments (#87)

* Imiller/ch87117/make webhook data source (#88)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* add a webhooks helper file

* extract out base schema from resource

* extract out read function

* fix typo & stub data source

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* oops make enabled optional

* refactor read

* forgot to define func param type

* stub tests

* add webhook & ff-env data sources to provider

* no match test

* set id for data source in read

* add webhook exists test

* change webhook_id to id

* add policy to test

* Imiller/ch87116/make segment data source (#91)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* add a webhooks helper file

* extract out base schema from resource

* extract out read function

* fix typo & stub data source

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* oops make enabled optional

* refactor read

* forgot to define func param type

* stub tests

* add webhook & ff-env data sources to provider

* no match test

* set id for data source in read

* add webhook exists test

* extract out resource schema

* extract out hte read function

* add data source to provider

* check accTest in webhook test

* differentiate read for resource & ds

* data source

* add no match test

* set id for data sources in read

* add exists test

* extract out resource schema

* extract out hte read function

* fix merge conflict

* make project key required on segment resource

Co-authored-by: Henry Barrow <[email protected]>

* change webhook_id to id

* add policy to test

* change name from optional to computed

Co-authored-by: Henry Barrow <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>

* Add nested environments documentation (#90)

* Use GetOKExists for off_variation and improve feature_flag_environment read efficiency (#93)

* Use GetOKExists for off_variation and improve read efficiency

* Add a json feature flag example with default variations (#94)

* Imiller/ch90407/write docs for new data sources (#92)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* add a webhooks helper file

* extract out base schema from resource

* extract out read function

* fix typo & stub data source

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* oops make enabled optional

* refactor read

* forgot to define func param type

* stub tests

* add webhook & ff-env data sources to provider

* no match test

* set id for data source in read

* add webhook exists test

* extract out resource schema

* extract out hte read function

* add data source to provider

* check accTest in webhook test

* differentiate read for resource & ds

* data source

* add no match test

* set id for data sources in read

* add exists test

* extract out resource schema

* extract out hte read function

* fix merge conflict

* make project key required on segment resource

Co-authored-by: Henry Barrow <[email protected]>

* change webhook_id to id

* add policy to test

* add new include_in_snippet arg to proj resource doc

* add project ds doc

* project key should be required in env ds

* add env ds doc

* update schema fields in ff ds

* fix typos

* feature flag ds doc

* no validation function on computed schema type

* fix feature_flag_env data source & tests

* add feature_flag_environment data source doc

* remove extra dashes for consistency

* add webhook ds doc

* fix typo

* refactor a bit for conciseness

* fix error in segment resource doc

* add segment doc

* differentiate reads between resource and ds for ff-env

* change name from optional to computed

Co-authored-by: Henry Barrow <[email protected]>

* minor fixes

* fix hcl example formatting

* change resource to data source

* update some wording & add ds links to website sidebar

* go get new api version & go mod vendor

* add client_side_availability ky

* add client side availability to flag data source

* switch out snippet for client side availability in project data source

* convert client side availability struct to appropriate map for data source

* update project test

* update feature flag read to set csa

* update feature flag data source test

* change include_in_snippet to client_side_availability in project & ff ds docs

* set include_in_snippet for feature flag resource instead of csa

* add csa block section to project & ff docs

* fix alignment

* update changelog

* singularize 'block'

* update wording

* update wording

Co-authored-by: Henry Barrow <[email protected]>

* change SDKS to SDKs

Co-authored-by: Henry Barrow <[email protected]>

* change SDKS to SDKs

Co-authored-by: Henry Barrow <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>

* update release version in changelog

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Arnold Trakhtenberg <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>
sloloris added a commit that referenced this pull request Jul 20, 2021
* Prep for migration release (#75)

* add goreleaser.yml

* Update changelog

* fix version number

* Add GH actions for release (#76)

* Add GH actions for release

* Bump travis version

* Update readme

* Automatically add changelog entry to release (#77)

* Update go.mod and automatically set version header (#78)

* Add access tokens (#79)

* prepare 1.2.2 release (#24)

* Fix non-empty plan when creating a team member with a custom role (#63)

* Fix handling of missing user target variation in API response (#64)

Co-authored-by: Isabelle Miller <[email protected]>

* v1.2.2

* Cleanup after v1.2.2 release

* [ch85469] first pass at tokens

* Update launchdarkly/resource_launchdarkly_access_token.go

Co-authored-by: Henry Barrow <[email protected]>

* add links to sensitive data callout

* expiry and permission fixes

* update markdown

* use latest openapi client

* keys

* tidy

* fixes

* docs update

* Fix go.mod and vendoring

* Remove henry's fmt.Printf

* Clean up go.mod

* clean up go.mod even further

* address some of review

* custom role keys instead of ids

* remove unused var

* reintroduce removed code

* remove references to deleted key

* Remove fmt.Println

* formatting fixes

* fix tests

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

* Release 1.4.0 (#80)

* update changelog for 1.4.0

* prepare 1.4.0 release (#37)

* Prep for migration release (#75)

* add goreleaser.yml

* Update changelog

* fix version number

* Add GH actions for release (#76)

* Add GH actions for release

* Bump travis version

* Update readme

* Automatically add changelog entry to release (#77)

* Update go.mod and automatically set version header (#78)

* Add access tokens (#79)

* prepare 1.2.2 release (#24)

* Fix non-empty plan when creating a team member with a custom role (#63)

* Fix handling of missing user target variation in API response (#64)

Co-authored-by: Isabelle Miller <[email protected]>

* v1.2.2

* Cleanup after v1.2.2 release

* [ch85469] first pass at tokens

* Update launchdarkly/resource_launchdarkly_access_token.go

Co-authored-by: Henry Barrow <[email protected]>

* add links to sensitive data callout

* expiry and permission fixes

* update markdown

* use latest openapi client

* keys

* tidy

* fixes

* docs update

* Fix go.mod and vendoring

* Remove henry's fmt.Printf

* Clean up go.mod

* clean up go.mod even further

* address some of review

* custom role keys instead of ids

* remove unused var

* reintroduce removed code

* remove references to deleted key

* Remove fmt.Println

* formatting fixes

* fix tests

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

* update changelog for 1.4.0

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

* Ensure ommitted optional feature_flag_environment properties do not make changes when creating (#82)

* Ensure optional feature flag environment properties really are optional

* Update changelog

* Imiller/ch78293/make terraform project data source (#73)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* replace travis with circleCI to run full tests (#84)

* Add .circleci/config.yml

* specify working directory

* update run command

* comment out run command to see if it will build

* uncomment run & clean up'
:

* fix formatting

* change go version to 1.14

* add make vet

* fix indentation

* scrap travis

* don't run this test in parallel, see if it works

* that wasn't it

* add a 200ms sleep after creating custom roles to see if it fixes the not found error

* limit to 3 packages at a time

* try running just one package at a time?

* try a sleep of 1 second after custom role creation

* only clean team members that are pending invite

* run only team member tests

* run only create test

* only run update with custom role

* try all the team member tests again with seat limit flag off

* run all team member tests separately

* add test clean account

* remove -p and add custom props

* through test acc access token

* fix test name typo

* add all tests separately

* remove sleep

* don't run cleaner test

* run creates separately

* forgot to commit test name change

* run all four tests separately

* Imiller/ch78864/make environment data source (#83)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* refactor schemas to use overlapping baes

* scrap redundant config

* Update launchdarkly/environments_helper.go

Co-authored-by: Henry Barrow <[email protected]>

* Update launchdarkly/environments_helper.go

Co-authored-by: Henry Barrow <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>

* Imiller/ch87115/make feature flag data source (#85)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* scrap redundant config

* scrap redundant config

* fix merge issue

* fix merge again

* Imiller/ch88747/make feature flag environment a data source (#86)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* fix error typo (#89)

* Resolve issues with nested environments (#87)

* Imiller/ch87117/make webhook data source (#88)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* add a webhooks helper file

* extract out base schema from resource

* extract out read function

* fix typo & stub data source

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* oops make enabled optional

* refactor read

* forgot to define func param type

* stub tests

* add webhook & ff-env data sources to provider

* no match test

* set id for data source in read

* add webhook exists test

* change webhook_id to id

* add policy to test

* Imiller/ch87116/make segment data source (#91)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* add a webhooks helper file

* extract out base schema from resource

* extract out read function

* fix typo & stub data source

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* oops make enabled optional

* refactor read

* forgot to define func param type

* stub tests

* add webhook & ff-env data sources to provider

* no match test

* set id for data source in read

* add webhook exists test

* extract out resource schema

* extract out hte read function

* add data source to provider

* check accTest in webhook test

* differentiate read for resource & ds

* data source

* add no match test

* set id for data sources in read

* add exists test

* extract out resource schema

* extract out hte read function

* fix merge conflict

* make project key required on segment resource

Co-authored-by: Henry Barrow <[email protected]>

* change webhook_id to id

* add policy to test

* change name from optional to computed

Co-authored-by: Henry Barrow <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>

* Add nested environments documentation (#90)

* Use GetOKExists for off_variation and improve feature_flag_environment read efficiency (#93)

* Use GetOKExists for off_variation and improve read efficiency

* Add a json feature flag example with default variations (#94)

* Imiller/ch90407/write docs for new data sources (#92)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* add a webhooks helper file

* extract out base schema from resource

* extract out read function

* fix typo & stub data source

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* oops make enabled optional

* refactor read

* forgot to define func param type

* stub tests

* add webhook & ff-env data sources to provider

* no match test

* set id for data source in read

* add webhook exists test

* extract out resource schema

* extract out hte read function

* add data source to provider

* check accTest in webhook test

* differentiate read for resource & ds

* data source

* add no match test

* set id for data sources in read

* add exists test

* extract out resource schema

* extract out hte read function

* fix merge conflict

* make project key required on segment resource

Co-authored-by: Henry Barrow <[email protected]>

* change webhook_id to id

* add policy to test

* add new include_in_snippet arg to proj resource doc

* add project ds doc

* project key should be required in env ds

* add env ds doc

* update schema fields in ff ds

* fix typos

* feature flag ds doc

* no validation function on computed schema type

* fix feature_flag_env data source & tests

* add feature_flag_environment data source doc

* remove extra dashes for consistency

* add webhook ds doc

* fix typo

* refactor a bit for conciseness

* fix error in segment resource doc

* add segment doc

* differentiate reads between resource and ds for ff-env

* change name from optional to computed

Co-authored-by: Henry Barrow <[email protected]>

* minor fixes

* fix hcl example formatting

* change resource to data source

* update some wording & add ds links to website sidebar

* go get new api version & go mod vendor

* add client_side_availability ky

* add client side availability to flag data source

* switch out snippet for client side availability in project data source

* convert client side availability struct to appropriate map for data source

* update project test

* update feature flag read to set csa

* update feature flag data source test

* change include_in_snippet to client_side_availability in project & ff ds docs

* set include_in_snippet for feature flag resource instead of csa

* add csa block section to project & ff docs

* fix alignment

* update changelog

* singularize 'block'

* update wording

* update wording

Co-authored-by: Henry Barrow <[email protected]>

* change SDKS to SDKs

Co-authored-by: Henry Barrow <[email protected]>

* change SDKS to SDKs

Co-authored-by: Henry Barrow <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>

* Imiller/ch96679/figure out provider configuration for terraform (#96)

* add 0.13 syntax to doc

* add example for tf 0.13

* update example readme

* make provider config note a blockquote

* update links

* Add support for number and boolean targeting rule clause values (#98)

* Add rule clause value type

* update website and changelog

* Fix percentage rollout weight in example (#99)

* update LD client (#102)

* update client

* some files didn't get added

* try to circumvent 409 test failures with unique project ke ys

* try again

* try again

* defer takedowns

* fix a few more conflict issues

* move a few more deletes into defers

* fix test error messages

* missed one

* add missing takedown

* oops that was deleting an uncreated resource

* Update Go to 1.16 and remove vendor directory (#106)

* Imiller/ch113418/upgrade ld client with go 1.16 (#107)

* go get

* revendor everything

* fix all updated property names

* scrap vendor directory

* Rename `launchdarkly_webhook` enabled->on (#104)

* Update destination schema to support v2 (#103)

* Update destination schema to support v2

* Add breaking verify test

* Update webhook resource

* Update all tests for resource

* Update datasource

* Add whitespace in test configs

* update website

* Update changelog

* handle future deprecation of enabled

* update destination doc to handle deprecation

* update description for config

* update create, read, and update functions to handle dual on/enabled

* add azure-event-hubs as destination kind choice

* update destination helper to convert and validate all config fields

* add test cases for azure-event-hubs

* change enabled to on on one of the test resources to ensure it also works

* add example azure-event-hubs to doc

* add webhook field descriptions

* add policy statements field descriptions

* add description for data source

* fix typo in deprecation warning

* looks like ConflictsWith doesn't work with nested schemas oops

* update deprecate dmessage

* use helper function getDestinationon

* add comment'

* remove redundant ON key

* small doc changes

* update getDestinationOn helper function to us GetOkExists)

* add config fields for azure to doc

* use GetOkExists in read

* update changelog

* forgot to add before committing

* update to always set on unless enabled is set in read

* somehow dropped a brace

* remove importstateverify from createkinesis test - failing when we update enabled to on

* add destination example

Co-authored-by: Isabelle Miller <[email protected]>

* Improve 429 retry handling (#109)

* Improve 429 retry logic to include % jitter

* Imiller/ch114164/upgrade resource launchdarkly feature flag (#111)

* add descriptions for everything

* fix dangling default values

* fix bug where creating a non-bool flag with no variations creates a bool flag

* add bug fixes to changelog

* built in an idiotic bug, fixed now

* see if this fixes all of the tests

* found typo:

* fix broken tests

* obvious simplification

* Rename launchdarkly_webhook policy_statements -> statements (#108)

* rename launchdarkly_webhook policy_statements -> statements

* Fix webhook datasource

* start updating docs

* Update docs

* Update changelog

* remove typo

* clarify doc

Co-authored-by: Isabelle Miller <[email protected]>

* prep for release

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Arnold Trakhtenberg <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>
sloloris added a commit that referenced this pull request Aug 2, 2021
* Prep for migration release (#75)

* add goreleaser.yml

* Update changelog

* fix version number

* Add GH actions for release (#76)

* Add GH actions for release

* Bump travis version

* Update readme

* Automatically add changelog entry to release (#77)

* Update go.mod and automatically set version header (#78)

* Add access tokens (#79)

* prepare 1.2.2 release (#24)

* Fix non-empty plan when creating a team member with a custom role (#63)

* Fix handling of missing user target variation in API response (#64)

Co-authored-by: Isabelle Miller <[email protected]>

* v1.2.2

* Cleanup after v1.2.2 release

* [ch85469] first pass at tokens

* Update launchdarkly/resource_launchdarkly_access_token.go

Co-authored-by: Henry Barrow <[email protected]>

* add links to sensitive data callout

* expiry and permission fixes

* update markdown

* use latest openapi client

* keys

* tidy

* fixes

* docs update

* Fix go.mod and vendoring

* Remove henry's fmt.Printf

* Clean up go.mod

* clean up go.mod even further

* address some of review

* custom role keys instead of ids

* remove unused var

* reintroduce removed code

* remove references to deleted key

* Remove fmt.Println

* formatting fixes

* fix tests

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

* Release 1.4.0 (#80)

* update changelog for 1.4.0

* prepare 1.4.0 release (#37)

* Prep for migration release (#75)

* add goreleaser.yml

* Update changelog

* fix version number

* Add GH actions for release (#76)

* Add GH actions for release

* Bump travis version

* Update readme

* Automatically add changelog entry to release (#77)

* Update go.mod and automatically set version header (#78)

* Add access tokens (#79)

* prepare 1.2.2 release (#24)

* Fix non-empty plan when creating a team member with a custom role (#63)

* Fix handling of missing user target variation in API response (#64)

Co-authored-by: Isabelle Miller <[email protected]>

* v1.2.2

* Cleanup after v1.2.2 release

* [ch85469] first pass at tokens

* Update launchdarkly/resource_launchdarkly_access_token.go

Co-authored-by: Henry Barrow <[email protected]>

* add links to sensitive data callout

* expiry and permission fixes

* update markdown

* use latest openapi client

* keys

* tidy

* fixes

* docs update

* Fix go.mod and vendoring

* Remove henry's fmt.Printf

* Clean up go.mod

* clean up go.mod even further

* address some of review

* custom role keys instead of ids

* remove unused var

* reintroduce removed code

* remove references to deleted key

* Remove fmt.Println

* formatting fixes

* fix tests

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

* update changelog for 1.4.0

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Isabelle Miller <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>

* Ensure ommitted optional feature_flag_environment properties do not make changes when creating (#82)

* Ensure optional feature flag environment properties really are optional

* Update changelog

* Imiller/ch78293/make terraform project data source (#73)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* replace travis with circleCI to run full tests (#84)

* Add .circleci/config.yml

* specify working directory

* update run command

* comment out run command to see if it will build

* uncomment run & clean up'
:

* fix formatting

* change go version to 1.14

* add make vet

* fix indentation

* scrap travis

* don't run this test in parallel, see if it works

* that wasn't it

* add a 200ms sleep after creating custom roles to see if it fixes the not found error

* limit to 3 packages at a time

* try running just one package at a time?

* try a sleep of 1 second after custom role creation

* only clean team members that are pending invite

* run only team member tests

* run only create test

* only run update with custom role

* try all the team member tests again with seat limit flag off

* run all team member tests separately

* add test clean account

* remove -p and add custom props

* through test acc access token

* fix test name typo

* add all tests separately

* remove sleep

* don't run cleaner test

* run creates separately

* forgot to commit test name change

* run all four tests separately

* Imiller/ch78864/make environment data source (#83)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* refactor schemas to use overlapping baes

* scrap redundant config

* Update launchdarkly/environments_helper.go

Co-authored-by: Henry Barrow <[email protected]>

* Update launchdarkly/environments_helper.go

Co-authored-by: Henry Barrow <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>

* Imiller/ch87115/make feature flag data source (#85)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* scrap redundant config

* scrap redundant config

* fix merge issue

* fix merge again

* Imiller/ch88747/make feature flag environment a data source (#86)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* fix error typo (#89)

* Resolve issues with nested environments (#87)

* Imiller/ch87117/make webhook data source (#88)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* add a webhooks helper file

* extract out base schema from resource

* extract out read function

* fix typo & stub data source

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* oops make enabled optional

* refactor read

* forgot to define func param type

* stub tests

* add webhook & ff-env data sources to provider

* no match test

* set id for data source in read

* add webhook exists test

* change webhook_id to id

* add policy to test

* Imiller/ch87116/make segment data source (#91)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* add a webhooks helper file

* extract out base schema from resource

* extract out read function

* fix typo & stub data source

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* oops make enabled optional

* refactor read

* forgot to define func param type

* stub tests

* add webhook & ff-env data sources to provider

* no match test

* set id for data source in read

* add webhook exists test

* extract out resource schema

* extract out hte read function

* add data source to provider

* check accTest in webhook test

* differentiate read for resource & ds

* data source

* add no match test

* set id for data sources in read

* add exists test

* extract out resource schema

* extract out hte read function

* fix merge conflict

* make project key required on segment resource

Co-authored-by: Henry Barrow <[email protected]>

* change webhook_id to id

* add policy to test

* change name from optional to computed

Co-authored-by: Henry Barrow <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>

* Add nested environments documentation (#90)

* Use GetOKExists for off_variation and improve feature_flag_environment read efficiency (#93)

* Use GetOKExists for off_variation and improve read efficiency

* Add a json feature flag example with default variations (#94)

* Imiller/ch90407/write docs for new data sources (#92)

* add stub schema

* add read function that gets project by key

* fix syntax issues

* add test helper functions

* add dataSourceProject to the provider

* add test for an existing resource
add test for an existing data source

* add getProjectByKey method

* name should be optional

* fix test

* add rate limiting to api hit in test to avoid 429 error

* add include_in_snippet to project resource

* extract projectRead into a helper function

* set id for data source but not resource

* add comment

* remove redundant get function

* fix tests

* add include_in_snippet to project resource update test

* extract read into helper funciton

* stub data source

* add isDataSource param to env read helper

* actually add data source to provider

* fix schema

* add bad env test + scaffolding

* make a separate schema for env data source because of differing required/optional fields

* add test to check that it can get env

* add id check to test

* fix travis build

* remove unnecessary fields from config

* stub data source

* extract read from resource into helper & stub data source

* extract test helpers into a test_utils file

* add ff data source to provider

* make variation_type optional

* pass bool through read function to differentiate between resource and data source

* add no match test

* add scaffold helper function

* add exists test

* refactor schemas to use overlapping baes

* refactor to use overlapping base schema b/w resource and data source

* stub data source file

* extract schema into helper function

* extract read function into helper

* basic data source

* move flagIdToKeys into feature flag helper

* stub test config

* scrap redundant config

* scrap redundant config

* move patchFlagEnvPath() into helper

* add test scaffolding function

* stub nomatch test

* i did a very dumb thing - fix test

* fix test again

* return flag instead of config

* add exists test

* add a webhooks helper file

* extract out base schema from resource

* extract out read function

* fix typo & stub data source

* change all read functions to generic featureFlagEnvironmentRead

* move test helper into data source

* clean up test utils

* move helper to correct file and update test to patch everything

* check all the things

* fix assertions

* oops found a bug

* oops make enabled optional

* refactor read

* forgot to define func param type

* stub tests

* add webhook & ff-env data sources to provider

* no match test

* set id for data source in read

* add webhook exists test

* extract out resource schema

* extract out hte read function

* add data source to provider

* check accTest in webhook test

* differentiate read for resource & ds

* data source

* add no match test

* set id for data sources in read

* add exists test

* extract out resource schema

* extract out hte read function

* fix merge conflict

* make project key required on segment resource

Co-authored-by: Henry Barrow <[email protected]>

* change webhook_id to id

* add policy to test

* add new include_in_snippet arg to proj resource doc

* add project ds doc

* project key should be required in env ds

* add env ds doc

* update schema fields in ff ds

* fix typos

* feature flag ds doc

* no validation function on computed schema type

* fix feature_flag_env data source & tests

* add feature_flag_environment data source doc

* remove extra dashes for consistency

* add webhook ds doc

* fix typo

* refactor a bit for conciseness

* fix error in segment resource doc

* add segment doc

* differentiate reads between resource and ds for ff-env

* change name from optional to computed

Co-authored-by: Henry Barrow <[email protected]>

* minor fixes

* fix hcl example formatting

* change resource to data source

* update some wording & add ds links to website sidebar

* go get new api version & go mod vendor

* add client_side_availability ky

* add client side availability to flag data source

* switch out snippet for client side availability in project data source

* convert client side availability struct to appropriate map for data source

* update project test

* update feature flag read to set csa

* update feature flag data source test

* change include_in_snippet to client_side_availability in project & ff ds docs

* set include_in_snippet for feature flag resource instead of csa

* add csa block section to project & ff docs

* fix alignment

* update changelog

* singularize 'block'

* update wording

* update wording

Co-authored-by: Henry Barrow <[email protected]>

* change SDKS to SDKs

Co-authored-by: Henry Barrow <[email protected]>

* change SDKS to SDKs

Co-authored-by: Henry Barrow <[email protected]>

Co-authored-by: Henry Barrow <[email protected]>

* Imiller/ch96679/figure out provider configuration for terraform (#96)

* add 0.13 syntax to doc

* add example for tf 0.13

* update example readme

* make provider config note a blockquote

* update links

* Add support for number and boolean targeting rule clause values (#98)

* Add rule clause value type

* update website and changelog

* Fix percentage rollout weight in example (#99)

* update LD client (#102)

* update client

* some files didn't get added

* try to circumvent 409 test failures with unique project ke ys

* try again

* try again

* defer takedowns

* fix a few more conflict issues

* move a few more deletes into defers

* fix test error messages

* missed one

* add missing takedown

* oops that was deleting an uncreated resource

* Update Go to 1.16 and remove vendor directory (#106)

* Imiller/ch113418/upgrade ld client with go 1.16 (#107)

* go get

* revendor everything

* fix all updated property names

* scrap vendor directory

* Rename `launchdarkly_webhook` enabled->on (#104)

* Update destination schema to support v2 (#103)

* Update destination schema to support v2

* Add breaking verify test

* Update webhook resource

* Update all tests for resource

* Update datasource

* Add whitespace in test configs

* update website

* Update changelog

* handle future deprecation of enabled

* update destination doc to handle deprecation

* update description for config

* update create, read, and update functions to handle dual on/enabled

* add azure-event-hubs as destination kind choice

* update destination helper to convert and validate all config fields

* add test cases for azure-event-hubs

* change enabled to on on one of the test resources to ensure it also works

* add example azure-event-hubs to doc

* add webhook field descriptions

* add policy statements field descriptions

* add description for data source

* fix typo in deprecation warning

* looks like ConflictsWith doesn't work with nested schemas oops

* update deprecate dmessage

* use helper function getDestinationon

* add comment'

* remove redundant ON key

* small doc changes

* update getDestinationOn helper function to us GetOkExists)

* add config fields for azure to doc

* use GetOkExists in read

* update changelog

* forgot to add before committing

* update to always set on unless enabled is set in read

* somehow dropped a brace

* remove importstateverify from createkinesis test - failing when we update enabled to on

* add destination example

Co-authored-by: Isabelle Miller <[email protected]>

* Improve 429 retry handling (#109)

* Improve 429 retry logic to include % jitter

* Imiller/ch114164/upgrade resource launchdarkly feature flag (#111)

* add descriptions for everything

* fix dangling default values

* fix bug where creating a non-bool flag with no variations creates a bool flag

* add bug fixes to changelog

* built in an idiotic bug, fixed now

* see if this fixes all of the tests

* found typo:

* fix broken tests

* obvious simplification

* Rename launchdarkly_webhook policy_statements -> statements (#108)

* rename launchdarkly_webhook policy_statements -> statements

* Fix webhook datasource

* start updating docs

* Update docs

* Update changelog

* remove typo

* clarify doc

Co-authored-by: Isabelle Miller <[email protected]>

* Upate documentation with development guide (#115)

* Improve README and add docs/

* Remove 'make install'

* Upgrade V1 dependencies to latest (#118)

* Update V1 dependencies

* Update changelog

* Remove + from changelog

* Improve version consistency in changelog

* run go mod tidy

* Add `creation_date` to `launchdarkly_segment` and add descriptions. (#117)

* Remove unnecessary validation on creation

* Add segment creation_date and descriptions

* Remove versions.tf (#119)

* Imiller/ch114162/upgrade resource launchdarkly environment (#121)

* make project_key required

* update descriptions

* update changelog

* Imiller/ch114165/v1 project audit (#120)

* add descriptions

* update doc dscription

* audit team member for v1 (#122)

* update descriptions

* add import instructions to team member docs

* add team member examples

* ForceNew when email is updated

* update test file structure to better reflect provider pattern

* add AtLeastOneOf for role and custom_roles

* oops wrong doc

* use validation.StringInSlice()

* refactor key conversion functions into helper file

* remove owner

* forgot changelog

* Imiller/ch114163/v1 feature flag env (#112)

* add descriptions for everything

* fix dangling default values

* fix bug where creating a non-bool flag with no variations creates a bool flag

* add bug fixes to changelog

* built in an idiotic bug, fixed now

* see if this fixes all of the tests

* found typo:

* fix broken tests

* add descriptions

* update some descriptions for clarity

* make clauses RequiredWith on variations to preempt api error

* fix error in doc

* fix docs properly

* deprecated targeting_enabled in favor of on

* remove ReuqiredWith because it's causing a bug

* fix plan bug

* hopefully this will fix it

* ughhhhh it was that it needed to be computed

* forgot the doc oops

* forgot the changelog too meep

* Imiller/ch114160/v1 custom role (#125)

* add descriptions

* reformat tests to match pattern

* check removal of optional attributes removes

* Upgrade resource launchdarkly access token (#123)

* create examples for access token. Deprecate expire. Make name optional

* validate access token to make sure role, custom role, or policy statements are present. Also added conflictsWith between those three arguments. Updated descriptions

* change test back

* fixed one issue

* fixed another issue

* errorf instead of error

* validate updatye access token

* updated documentation and changelog. Finished example.tf

* rewrite comment to say inline custom role

* refer to policy statments as inline custom roles

* address pr comments

* rename policy_statements to inline_role and add validation for default_api_version

* fix test

* fix defaults in list issue

* reformat tests to match general pattern

* all tests passing

* use policyStatementSchemaOptions correctly

* address some pr comments

* fix typo

* wording tweaks

Co-authored-by: Isabelle Miller <[email protected]>

* update changelog

Co-authored-by: Henry Barrow <[email protected]>
Co-authored-by: Arnold Trakhtenberg <[email protected]>
Co-authored-by: tf-release-bot <[email protected]>
Co-authored-by: Sunny Guduru <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants