Skip to content

bug: [TS SDK] setVariable's parameter isSecretIfNotExist is incorrectly interpreted #7208

@Tyg-g

Description

@Tyg-g

Describe the bug

When the parameter isSecretIfNotExist in the setVariable function is false, the created variable becomes a secret variable when it should not.

Reference: setVariable(path, value, isSecretIfNotExist?, descriptionIfNotExist?): Promise<void>
Doc: https://app.windmill.dev/tsdocs/functions/setVariable.html

To reproduce

Use the setVariable function to create a new variable.

Behavior:

OptionalisSecretIfNotExist
value
Behavior
true The variable becomes a secret
false The variable also becomes a secret!
undefined normal variable (not a secret)

Expected behavior

The value false should produce a plain variable.

Screenshots

No response

Browser information

Opera One version: 123.0.5669.47, Chromium version:139.0.7258.156

Application version

Windmill CE v1.583.1-3-g193efe31c

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions