-
Notifications
You must be signed in to change notification settings - Fork 24
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
launchdarkly_feature_flag_environment should make optional attributes optional #38
Comments
Actually, this seems very dangerous. Given this apply changed the default variation without reporting it in the plan, I imagine it would also update the rules without reporting it in the plan. We want our users to manage the rules outside of terraform, but require prereqs be managed inside. If a user created some rules, then decided they wanted a prereq, this would potentially wipe out all the rules without reporting it to them in the plan. Am I reading that right? |
Thanks for bringing this to my attention. I'm going to file this as a high priority bug in our internal issue tracker. I'll be sure to come back here if I need any more info and when we have a fix ready. Thanks, |
Hi @bschaeffer, Thanks again for your help finding this nasty bug. I just published release v1.4.1 with a fix. Please let us know if you have an further issues or feature requests and feel free to re-open this issue if you are still running into trouble. Thanks, |
Here's a weird one. Take these flags
foo
andbar
where bar wants to define a prereq forfoo=true
:Given the above, I would expect that an apply would leave
bar
's default and fallthrough variations beDisabled (false)
.Actually, terraform ends up creating
launchdarkly_feature_flag.bar
with the false default/fallthrough, but when applying thelaunchdarkly_feature_flag_environment.bar_prereq
it ends up patching these to true. Here's an example patch from one of our applies:I would just expect to see prerequisite patches since that's all wanted to update. Why is it patching rules to empty? What if I wanted terraform to just update a prereq but leave existing rules as is.
The text was updated successfully, but these errors were encountered: