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 2.17.0 release #192

Merged
merged 200 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
8fd56bd
prepare release (#80) (#188)
sloloris Jan 20, 2022
aea6005
Do not allow 0% segment rule weights (#189)
ldhenry Jan 21, 2022
f1e972c
Fix flag trigger creation panic (#190)
ldhenry Jan 21, 2022
09a6fa3
Backmerge/release 2.4.1 (#191)
ldhenry Jan 21, 2022
e493b76
Add Slack webhooks to audit_log_subscription (#192)
ldhenry Feb 7, 2022
2512cf3
backmerge v2.5.0 (#193)
ldhenry Feb 8, 2022
f4332bc
Use jennifer to generate audit log subscription configs (#194)
ldhenry Feb 8, 2022
de0fe41
Run terraform provider acceptance tests daily and notify of failures …
ldhenry Feb 8, 2022
9a38dde
Update changelog branch (#195)
ldhenry Feb 9, 2022
d285706
[ sc-143291] update autogenerated audit_log_subscription configs (#197)
monsagri Mar 14, 2022
42d99ac
Increase checkpoint-api.harhicorp.com timeout to 10s (#198)
ldhenry Mar 17, 2022
04b73ff
Updated destination tests to use random env keys to avoid env conflic…
ctawiah Apr 6, 2022
b6bc3f2
Merge pull request #199 from launchdarkly/ctawiah/sc-148136/randomize…
ctawiah Apr 6, 2022
e722f06
[sc 148065] add approvals bypass to terraform docs (#200)
monsagri Apr 7, 2022
b88452a
Backmerge/release 2.6.0 (#201)
monsagri Apr 7, 2022
ae41bdb
fix doc issues (#202)
sloloris Apr 14, 2022
a402d11
[sc-149869] roll back documentation changes regarding (#203)
monsagri Apr 14, 2022
66d55a1
backmerge 2.6.1 (#204)
monsagri Apr 14, 2022
494df8f
Imiller/sc 151834/add base permissions to custom role resource (#205)
sloloris May 4, 2022
38d70bc
Backmerge/release 2.7.0 (#206)
sloloris May 5, 2022
6559f71
(bug-fix) Update modules to accept new API header
May 11, 2022
4795ea3
Merge pull request #207 from launchdarkly/fix-ci
lucywyman May 13, 2022
626aaae
Update circleci test timeout to 15 seconds
May 19, 2022
2c88570
Merge pull request #208 from launchdarkly/sunny/sc-153482/increase-ti…
lucywyman May 20, 2022
9084524
Regenerate auditlog configs to resolve CI failures (#211)
ldhenry Jun 30, 2022
54dbc29
Run make generate to supress CI failures (#212)
ldhenry Jul 11, 2022
b9a3419
added a check for environment and warning
Jul 12, 2022
c073a3b
fix go lint error
Jul 12, 2022
822f9d8
Merge branch 'main' into sunny/sc-158595/leftover-resources-cannot-be…
Jul 12, 2022
2ba884b
use environmentExists function
Jul 12, 2022
dd21dac
remove grafana
Jul 13, 2022
66c862c
fix: [sc-158595] leftover resources cannot be cleared out after launc…
Jul 13, 2022
88840f0
Update changelog with bug fix for datasource feature flag environment
Jul 13, 2022
33a1f9f
Merge pull request #215 from launchdarkly/sunny/update-changelog-data…
lucywyman Jul 14, 2022
7b218fe
added changes
Jul 26, 2022
c1a3b89
Merge pull request #216 from launchdarkly/backmerge/release-2.7.1
Jul 26, 2022
70c9c34
upgrade go version 1.18.1 (#217)
sloloris Jul 27, 2022
8bee33e
Backmerge public/release v2.7.1 3 (#219)
ldhenry Jul 27, 2022
402b508
Remove invalid integration configurations (#221)
ldhenry Jul 28, 2022
db398b8
Add blacklist to manifest codegen and remove Zapier. (#222)
ldhenry Jul 28, 2022
b9e966d
Backmerge release 2.7.2 (#223)
ldhenry Jul 28, 2022
e7d7f77
Update Go api client to 10.0.1
Jun 28, 2022
6a6345e
Fix up v10 migration PR
Jul 28, 2022
11e3b82
Merge pull request #225 from launchdarkly/migrate-terraform-to-v10
lucywyman Jul 28, 2022
e9c8d43
[SC-160359] Create Teams resource and datasource
Jun 28, 2022
1d1e3d3
Fix up documentation
Aug 3, 2022
70e838e
Make lists unsorted to avoid unnecessary change detection
Aug 3, 2022
8fb4544
Update website/docs/d/team.html.markdown
lucywyman Aug 3, 2022
a97b4ae
Make lists unsorted to avoid unnecessary change detection
Aug 3, 2022
1cd0737
Merge pull request #224 from launchdarkly/dominickagnello/sc-160359/u…
lucywyman Aug 4, 2022
da5dacd
prepare 2.6.0 release (#91)
monsagri Apr 7, 2022
43ee03b
prepare 2.6.1 release (#94)
monsagri Apr 14, 2022
519707a
Prepare 2.7.1 release (#103)
Jul 25, 2022
1d371d9
Prepare release 2.7.1 2 (#104)
sloloris Jul 27, 2022
6276ea6
fix merge issue in Circle config (#105)
ldhenry Jul 27, 2022
76f1bcf
Release 2.7.2 (#106)
ldhenry Jul 28, 2022
416ec8b
prepare 2.8.0 release
Aug 4, 2022
8569589
Merge pull request #227 from launchdarkly/backmerge/release-2.8.0
lucywyman Aug 4, 2022
f21dd2c
[SC-163244] Add no-access role for team member resource
Aug 5, 2022
aded53f
Merge pull request #228 from launchdarkly/lucyvoigt/sc-163244/add-no-…
lucywyman Aug 5, 2022
f8caaea
Backmerge 2.9.0 release
Aug 5, 2022
72236a5
[sc-147722] add codeowners file (#230)
monsagri Aug 9, 2022
fd4a7de
Merge pull request #229 from launchdarkly/backmerge/release-2.9.0
lucywyman Aug 10, 2022
c60959a
Dominickagnello/sc 163883/open a pr against the terraform provider (#…
Blugil Aug 10, 2022
8ceb94b
add conditional so that new action only runs in private repo
Aug 10, 2022
229b5b9
Remove example.com email addresses from acceptance tests (#234)
ldhenry Aug 10, 2022
d459813
Retry failed acceptance tests once
Aug 10, 2022
e23033f
Merge pull request #235 from launchdarkly/retry-failed-tests-once
lucywyman Aug 10, 2022
124c1da
Merge pull request #233 from launchdarkly/dominickagnello/sc-163883/o…
lucywyman Aug 11, 2022
362669f
[SC-163262] Suppress diff when value_type doesn't change
Aug 5, 2022
c1ff182
Update launchdarkly/clause_helper.go
lucywyman Aug 23, 2022
a83f848
Merge pull request #236 from launchdarkly/lucyvoigt/sc-163262/don-t-s…
lucywyman Aug 24, 2022
e7affce
[bot] Regenerate integration configs (#237)
github-actions[bot] Aug 24, 2022
b8c9085
Update feature_flag_environmewnt to only create patch statements when…
ldhenry Aug 24, 2022
07e3cc0
merge public/main (#239)
ldhenry Aug 24, 2022
8311a3a
Imiller/sc 166499/defaults for boolean flags do not apply to existing…
sloloris Sep 1, 2022
9e135b6
Backmerge public (#241)
ldhenry Sep 1, 2022
c65030c
Imiller/sc 168660/terraform issue importing project with environments…
sloloris Sep 13, 2022
628672e
[SC-169876] Correctly set bucketBy to nil when empty
Sep 20, 2022
a438dfa
[SC-168865] Print error message with API errors
Sep 13, 2022
c7c9269
Merge pull request #242 from launchdarkly/lucyvoigt/sc-168865/hi-team…
lucywyman Sep 26, 2022
3dcf1bc
Merge pull request #244 from launchdarkly/lucyvoigt/sc-169876/launchd…
lucywyman Sep 26, 2022
3a6f10e
[SC-170290] Add ignore_changes guide to Terraform docs
Sep 28, 2022
8134e76
Merge pull request #245 from launchdarkly/lucyvoigt/sc-170290/update-…
lucywyman Sep 30, 2022
5f2984c
Backmerge 2.9.3 release
Oct 3, 2022
384cfb9
Merge pull request #246 from launchdarkly/backmerge/release-2.9.3
lucywyman Oct 3, 2022
259ab96
[SC-174121] Docs bug fixes
Oct 26, 2022
f8d6a58
Merge pull request #247 from launchdarkly/lucyvoigt/sc-174121/fix-gui…
lucywyman Oct 26, 2022
fae2eba
Imiller/sc 162868/update documentation on using feature flag env sett…
sloloris Oct 31, 2022
94298b1
update links to docs.launchdarkly
mmrj Jan 9, 2023
0940048
Apply some additional copy suggestions from code review
mmrj Jan 9, 2023
b88eb72
add changelog entry
mmrj Jan 10, 2023
5eb15a1
Update CHANGELOG.md
sloloris Jan 10, 2023
7342d64
Merge pull request #251 from launchdarkly/mollyjones2723/sc-182866/in…
mmrj Jan 10, 2023
dfafc3b
should not be able to set targets with empty values (#252)
sloloris Jan 10, 2023
15ee255
fix test (#255)
sloloris Jan 10, 2023
33de477
fix retry command (#254)
sloloris Jan 10, 2023
3d214ef
Update generated audit log config (#267)
sloloris Jan 27, 2023
76a985f
merge main from public?
sloloris Jan 27, 2023
f792697
backmerge (#268)
sloloris Jan 30, 2023
a2b4c4a
[bot] Regenerate integration configs (#269)
github-actions[bot] Feb 1, 2023
2289644
Add optional targeting rule descriptions (#270)
ldhenry Feb 1, 2023
f240372
[bot] Regenerate integration configs
Blugil Feb 8, 2023
143d6d0
Merge pull request #272 from launchdarkly/regenerate-integration-conf…
lucywyman Feb 9, 2023
0d4a2e5
[bot] Regenerate integration configs
Blugil Feb 9, 2023
f6b2ccd
Merge pull request #273 from launchdarkly/regenerate-integration-conf…
lucywyman Feb 9, 2023
8d57914
add ldrelease metadata (#275)
monsagri Feb 16, 2023
4fd103c
[sc 189042] update project releaser config (#276)
monsagri Feb 21, 2023
30edd7c
Releasing version 2.9.6
Feb 21, 2023
98b5c1a
[sc 189042] update project releaser config permissions (#277)
monsagri Feb 21, 2023
a9cee2a
Releasing version 2.9.6
Feb 21, 2023
562f945
[sc 189042] update project releaser artifacts (#278)
monsagri Feb 21, 2023
81b0692
Releasing version 2.9.6
Feb 21, 2023
8233722
add update-version back in (#279)
monsagri Feb 21, 2023
7f383af
Releasing version 2.9.7
Feb 21, 2023
db1bbff
fix changelog (#280)
monsagri Feb 21, 2023
e3061c6
Releasing version 2.9.7
Feb 21, 2023
66c0c5b
(maint) Document 'archived' attribute of feature_flag
Feb 21, 2023
a834b44
[sc 189042] automate terraform provider releases 2 (#282)
monsagri Feb 22, 2023
23dcf51
Merge pull request #281 from launchdarkly/add-archive-docs
lucywyman Feb 22, 2023
0d0a853
Imiller/sc 189789/investigate workarounds for default CSA issue (#283)
sloloris Feb 27, 2023
f567041
Remove tests (#284)
sloloris Feb 27, 2023
8203c0a
Maint/fix backlog conflict (#285)
monsagri Feb 27, 2023
8cb1cee
merge from public after release
Feb 27, 2023
584b69d
Add support for Custom Contexts (#249)
sloloris Feb 28, 2023
d2c3bd8
merge from public after release
Feb 28, 2023
1e3785e
[bot] Regenerate integration configs (#286)
github-actions[bot] Mar 6, 2023
47f57b1
Bump golang.org/x/net from 0.1.0 to 0.7.0 (#288)
dependabot[bot] Mar 9, 2023
d3eb324
Update CODEOWNERS (#289)
ldhenry Mar 9, 2023
5131b70
Upgrade to Go 1.19 and bump golangci-lint in pre-commit (#290)
ldhenry Mar 9, 2023
bced6a8
[sc-190487] add randomization_units (optional) to metric resource (#287)
goldfrapp04 Mar 10, 2023
1529d77
merge from public after release
Mar 10, 2023
a957055
Bump go to v1.19 in remaining places (#291)
ldhenry Mar 10, 2023
f8f1326
merge from public after release
Mar 10, 2023
6d65531
Add pull request template (#292)
sloloris Mar 15, 2023
86eb3b7
[bot] Regenerate integration configs (#293)
github-actions[bot] Apr 4, 2023
3eab336
[bot] Regenerate integration configs (#294)
github-actions[bot] Apr 18, 2023
0c44fb7
[bot] Regenerate integration configs (#295)
github-actions[bot] May 10, 2023
b53545c
Imiller/sc 202319/terraform provider panics if empty fallthrough (#296)
sloloris May 11, 2023
745ed90
update changelog version (#297)
sloloris May 15, 2023
1b648b0
backmerge (#298)
monsagri Jun 28, 2023
d23e6bd
backmerge (#299)
monsagri Jun 28, 2023
deff2a7
merge from public after release
Jun 28, 2023
9522b0c
[bot] Regenerate integration configs (#300)
github-actions[bot] Jul 4, 2023
19423e3
Bump google.golang.org/grpc from 1.46.0 to 1.53.0
dependabot[bot] Jul 5, 2023
2483db2
Merge pull request #301 from launchdarkly/dependabot/go_modules/googl…
lucywyman Jul 5, 2023
402f8e4
Add support for future terraform-plugin-framework resources using tf5…
ldhenry Jul 14, 2023
3efcfe2
Add launchdarkly_team_role_mapping resource (#303)
ldhenry Jul 17, 2023
753d9ef
merge from public after release
Jul 17, 2023
06fb5e1
Add GPG TTY to release script (#304)
ldhenry Jul 17, 2023
75d2804
Backmerge public (#305)
ldhenry Jul 17, 2023
9d3a407
backmerge public
ldhenry Jul 17, 2023
51cf422
Remove old changelog
ldhenry Jul 17, 2023
cca070e
Merge pull request #306 from launchdarkly/hbarrow/backmerge-2
ldhenry Jul 17, 2023
148c158
merge from public after release
Jul 17, 2023
49bacd0
Update dry run script and gpg command (#307)
ldhenry Jul 17, 2023
d9634b1
merge from public after release
Jul 17, 2023
e550f5a
Extend GPG passphrase cache TTL to fix release pipeline (#308)
ldhenry Jul 18, 2023
088fae0
backmerge public
ldhenry Jul 18, 2023
811c428
Merge pull request #309 from launchdarkly/hbarrow/backmerge-3
ldhenry Jul 18, 2023
9e27b11
Fix team_role_mapping header (#310)
ldhenry Jul 18, 2023
4577840
merge from public after release
Jul 18, 2023
513ce91
Fix grammar on launchdarkly_team_role_mapping docs
ldhenry Jul 18, 2023
c9d7d9d
Merge pull request #311 from launchdarkly/hbarrow/sc-209434/add-new-r…
ldhenry Jul 18, 2023
6d6b760
Update team_role_mapping documentation to include team sync with SCIM…
ldhenry Jul 19, 2023
fab317f
Use lowercase t
ldhenry Jul 19, 2023
5938276
Merge pull request #312 from launchdarkly/hbarrow/sc-209434/add-new-r…
ldhenry Jul 19, 2023
96b3d7c
merge from public after release
Jul 19, 2023
4815ecf
Add support for environment pagination in launchdarkly_project resour…
ldhenry Jul 26, 2023
741f9fd
merge from public after release
Jul 26, 2023
98bdd16
[bot] Regenerate integration configs (#315)
github-actions[bot] Jul 31, 2023
71c7b25
update relay documentation to adhere to the proper metadata (#171) (#…
ldhenry Aug 3, 2023
d144384
merge from public after release
Aug 3, 2023
37ae424
[Part 1]: Use tfplugindocs to generate documentation from the provide…
ldhenry Aug 10, 2023
ec5ae5f
Generate `launchdarkly_feature_flag_environment` resource and data so…
ldhenry Aug 10, 2023
efe1e16
Fix forProject bug and add new test (#320)
ldhenry Aug 10, 2023
1e450d5
Increase max project key length to 100 (#322)
ldhenry Aug 10, 2023
4481abf
merge from public after release
Aug 10, 2023
49ae664
Update file extensions and change guide title (#323)
ldhenry Aug 11, 2023
333057f
Add `http_timeout` provider option (#321)
ldhenry Aug 11, 2023
cc01451
merge from public after release
Aug 11, 2023
caefe27
Generate `launchdarkly_feature_flag` resource and data source documen…
ldhenry Aug 14, 2023
262475e
Add docs team as CODEOWNERS for /docs directory (#326)
ldhenry Aug 17, 2023
c164530
Fix typo in webhook example code (#180) (#327)
ldhenry Aug 30, 2023
b2f21c8
merge from public after release
Aug 30, 2023
1300320
Add 404 retries to team role mapping resource (#329)
ldhenry Sep 26, 2023
21ef81d
launchdarkly_environment: only add tags to patch array when they chan…
ldhenry Sep 26, 2023
79844ac
merge from public after release
Sep 26, 2023
9563d98
Bump golang.org/x/net from 0.11.0 to 0.17.0
dependabot[bot] Oct 11, 2023
60dae81
Merge pull request #330 from launchdarkly/dependabot/go_modules/golan…
lucywyman Oct 12, 2023
1a8db1c
Merge remote-tracking branch 'public/main' into hbarrow/backmerge-pub
ldhenry Oct 16, 2023
a61a08d
Add big segment fields to segment schema and add tests
ldhenry Oct 16, 2023
7e81ee2
Merge pull request #331 from launchdarkly/hbarrow/sc-220820/review-me…
ldhenry Oct 16, 2023
cfdc1c8
Generate launchdarkly_segment resource and data source docs (#332)
ldhenry Oct 17, 2023
90bef27
merge from public after release
Oct 17, 2023
753c0f1
Bump google.golang.org/grpc from 1.56.1 to 1.56.3
dependabot[bot] Oct 25, 2023
f5274a5
Merge pull request #333 from launchdarkly/dependabot/go_modules/googl…
lucywyman Oct 26, 2023
2efd7c2
Add service_kind and service_config to environment approval settings …
ldhenry Dec 8, 2023
c921eab
merge main
ldhenry Dec 8, 2023
d6e38c9
Update project docs
ldhenry Dec 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/data-sources/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ Read-Only:
- `min_num_approvals` (Number)
- `required` (Boolean)
- `required_approval_tags` (List of String)
- `service_config` (Map of String)
- `service_kind` (String)
- `service_config` (Block List)
16 changes: 4 additions & 12 deletions docs/resources/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,11 @@ Optional:
- `min_num_approvals` (Number) The number of approvals required before an approval request can be applied. This number must be between 1 and 5. Defaults to 1.
- `required` (Boolean) Set to `true` for changes to flags in this environment to require approval. You may only set `required` to true if `required_approval_tags` is not set and vice versa. Defaults to `false`.
- `required_approval_tags` (List of String) An array of tags used to specify which flags with those tags require approval. You may only set `required_approval_tags` if `required` is not set to `true` and vice versa.
- `service_kind` (String) The kind of service to use when requesting an approval. Use this to switch which system approval requests go to. Valid values are `launchdarkly` and `servicenow`. The default is `launchdarkly`.
- `service_config` (Block List) The config for the approval service. This will differ for different kinds of services. (See [below for nested schema](#nestedblock--approval_settings_service_config))
- `service_config` (Map of String) The configuration for the service associated with this approval. This is specific to each approval service. For a `service_kind` of `servicenow`, the following fields apply:

<a id="nestedblock--approval_settings_service_config"></a>
### Nested Schema for `service_config`
The structure of the `service_config` object will be different for each different service kind.

For a `service_kind` of `servicenow`:

- `detail_column` (String) The name of the column to place the details in when creating the change request in ServiceNow.
- `template` (String) The sys_id of the Standard Change Request Template in ServiceNow to use when creating the change request.

For a `service_kind` of `launchdarkly`: No properties are required.
- `template` (String) The sys_id of the Standard Change Request Template in ServiceNow that LaunchDarkly will use when creating the change request.
- `detail_column` (String) The name of the ServiceNow Change Request column LaunchDarkly uses to populate detailed approval request information.
- `service_kind` (String) The kind of service associated with this approval. This determines which platform is used for requesting approval. Valid values are `servicenow`, `launchdarkly`.

## Import

Expand Down
17 changes: 4 additions & 13 deletions docs/resources/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,12 @@ Nested environments `approval_settings` blocks have the following structure:

- `required_approval_tags` - An array of tags used to specify which flags with those tags require approval. You may only set `required_approval_tags` if `required` is not set to `true` and vice versa.

- `service_kind` (String) The kind of service to use when requesting an approval. Use this to switch which system approval requests go to. Valid values are `launchdarkly` and `servicenow`. The default is `launchdarkly`.
-
- `service_config` (Block List) The config for the approval service. This will differ for different kinds of services. (See [below for nested schema](#nestedblock--approval_settings_service_config))
- `service_config` (Map of String) The configuration for the service associated with this approval. This is specific to each approval service. For a `service_kind` of `servicenow`, the following fields apply:

<a id="nestedblock--approval_settings_service_config"></a>
### Nested Schema for `service_config`
- `template` (String) The sys_id of the Standard Change Request Template in ServiceNow that LaunchDarkly will use when creating the change request.
- `detail_column` (String) The name of the ServiceNow Change Request column LaunchDarkly uses to populate detailed approval request information.

The structure of the `service_config` object will be different for each different service kind.

For a `service_kind` of `servicenow`:

- `detail_column` (String) The name of the column to place the details in when creating the change request in ServiceNow.
- `template` (String) The sys_id of the Standard Change Request Template in ServiceNow to use when creating the change request.

For a `service_kind` of `launchdarkly`: No properties are required.
- `service_kind` (String) The kind of service associated with this approval. This determines which platform is used for requesting approval. Valid values are `servicenow`, `launchdarkly`.

### Nested Client side Availability Block

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ require (
golang.org/x/tools v0.6.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
google.golang.org/grpc v1.56.1 // indirect
google.golang.org/grpc v1.56.3 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1359,8 +1359,8 @@ google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9K
google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
google.golang.org/grpc v1.56.1 h1:z0dNfjIl0VpaZ9iSVjA6daGatAYwPGstTjt5vkRMFkQ=
google.golang.org/grpc v1.56.1/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
google.golang.org/grpc v1.56.3 h1:8I4C0Yq1EjstUzUJzpcRVbuYA2mODtEmpWiQoN/b2nc=
google.golang.org/grpc v1.56.3/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
Expand Down
23 changes: 12 additions & 11 deletions launchdarkly/approvals_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,18 @@ func approvalSchema(options approvalSchemaOptions) *schema.Schema {
},
},
SERVICE_KIND: {
Type: schema.TypeString,
Optional: !options.isDataSource,
Computed: options.isDataSource,
Description: "The kind of service that is associated with this approval. This is used to determine which platform is used for requesting approval. Valid values are `servicenow`, `launchdarkly`.",
Default: "launchdarkly",
Type: schema.TypeString,
Optional: !options.isDataSource,
Computed: options.isDataSource,
Description: "The kind of service associated with this approval. This determines which platform is used for requesting approval. Valid values are `servicenow`, `launchdarkly`.",
Default: "launchdarkly",
ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{"servicenow", "launchdarkly"}, false)),
},
SERVICE_CONFIG: {
Type: schema.TypeMap,
Optional: !options.isDataSource,
Computed: options.isDataSource,
Description: "The configuration for the service that is associated with this approval. This will be specific to each approval service.",
Type: schema.TypeMap,
Optional: !options.isDataSource,
Computed: options.isDataSource,
Description: "The configuration for the service associated with this approval. This is specific to each approval service. For a `service_kind` of `servicenow`, the following fields apply:\n\n\t - `template` (String) The sys_id of the Standard Change Request Template in ServiceNow that LaunchDarkly will use when creating the change request.\n\t - `detail_column` (String) The name of the ServiceNow Change Request column LaunchDarkly uses to populate detailed approval request information. ",
},
}

Expand Down Expand Up @@ -94,8 +95,8 @@ func approvalSettingsFromResourceData(val interface{}) (ldapi.ApprovalSettings,
CanReviewOwnRequest: approvalSettingsMap[CAN_REVIEW_OWN_REQUEST].(bool),
MinNumApprovals: int32(approvalSettingsMap[MIN_NUM_APPROVALS].(int)),
CanApplyDeclinedChanges: approvalSettingsMap[CAN_APPLY_DECLINED_CHANGES].(bool),
ServiceKind: approvalSettingsMap[SERVICE_KIND].(string),
ServiceConfig: approvalSettingsMap[SERVICE_CONFIG].(map[string]interface{}),
ServiceKind: approvalSettingsMap[SERVICE_KIND].(string),
ServiceConfig: approvalSettingsMap[SERVICE_CONFIG].(map[string]interface{}),
}
// Required and RequiredApprovalTags should never be defined simultaneously
// unfortunately since they default to their null values and are nested we cannot tell if the
Expand Down
8 changes: 4 additions & 4 deletions launchdarkly/environments_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ func TestEnvironmentToResourceData(t *testing.T) {
CanApplyDeclinedChanges: true,
RequiredApprovalTags: []string{"approval"},
CanReviewOwnRequest: true,
ServiceKind: "launchdarkly",
ServiceConfig: map[string]interface{}(nil),
ServiceKind: "launchdarkly",
ServiceConfig: map[string]interface{}(nil),
},
},
expected: envResourceData{
Expand All @@ -103,8 +103,8 @@ func TestEnvironmentToResourceData(t *testing.T) {
CAN_APPLY_DECLINED_CHANGES: true,
REQUIRED_APPROVAL_TAGS: []string{"approval"},
REQUIRED: true,
SERVICE_KIND: "launchdarkly",
SERVICE_CONFIG: map[string]interface{}(nil),
SERVICE_KIND: "launchdarkly",
SERVICE_CONFIG: map[string]interface{}(nil),
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion launchdarkly/resource_launchdarkly_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func resourceProjectUpdate(ctx context.Context, d *schema.ResourceData, metaRaw
}
_, _, err = client.ld.EnvironmentsApi.PatchEnvironment(client.ctx, projectKey, envKey).PatchOperation(patch).Execute()
if err != nil {
return diag.Errorf("failed to update environment with key %q for project: %q: %+v", envKey, projectKey, err)
return diag.Errorf("failed to update environment with key %q for project: %q: %+v", envKey, projectKey, handleLdapiErr(err))
}
}
// we also want to delete environments that were previously tracked in state and have been removed from the config
Expand Down
7 changes: 7 additions & 0 deletions templates/resources/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ Nested environments `approval_settings` blocks have the following structure:

- `required_approval_tags` - An array of tags used to specify which flags with those tags require approval. You may only set `required_approval_tags` if `required` is not set to `true` and vice versa.

- `service_config` (Map of String) The configuration for the service associated with this approval. This is specific to each approval service. For a `service_kind` of `servicenow`, the following fields apply:

- `template` (String) The sys_id of the Standard Change Request Template in ServiceNow that LaunchDarkly will use when creating the change request.
- `detail_column` (String) The name of the ServiceNow Change Request column LaunchDarkly uses to populate detailed approval request information.

- `service_kind` (String) The kind of service associated with this approval. This determines which platform is used for requesting approval. Valid values are `servicenow`, `launchdarkly`.

### Nested Client side Availability Block

The nested `default_client_side_availability` block describes which client-side SDKs can use new flags by default. To learn more about this setting, read [Making flags available to client-side and mobile SDKs](https://docs.launchdarkly.com/home/getting-started/feature-flags#making-flags-available-to-client-side-and-mobile-sdks). This block has the following structure:
Expand Down