Skip to content

segment clause with user.anonymous set to "true" (as string and not boolean) no longer works with nodejs v8 client library #196

Open
@ggerade

Description

@ggerade

We've had segment clauses in place for a while where the terraform for the clause looked like this:

clauses {
        attribute  = "anonymous"
        op         = "in"
        negate     = false
        values = [
          true
        ]
}

Given that there is no value_type, the type defaults to string. With earlier versions of the nodejs client library there seemed to be a conversion from string to boolean and we would get true back for these situations. But with version 8 of the client library we began getting false back.

If we change these clauses to include value_type = "boolean" then all starts working as expected.

The LaunchDarkly console UI also does not deal with the string type properly, I noted that when I click edit on a rule setup this way that the drop down for the boolean value is unpopulated. If I choose true from the list and save the rule, then the console converts it to type boolean.

I'm assuming the service wants this to be typed as boolean (reasonable). Ideally the provider would prevent someone from making this misstep and either enforce the type boolean or at least warn if not provided.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions