calm-dsl icon indicating copy to clipboard operation
calm-dsl copied to clipboard

Mandatory variable is not marked as runtime by default

Open pipoe2h opened this issue 4 years ago • 2 comments

When using Calm UI, a variable marked as mandatory automatically enables the runtime icon. In Calm DSL the runtime=True must be implicit when is_madatory=True

pipoe2h avatar May 04 '20 13:05 pipoe2h

@pipoe2h , why don't we keep both operations as separate because. is_mandatory: value must be supplied or variable should be runtime is_runtime: value can be left as empty for now, but should be filled at runtime.


If we go via above approach i.e. make variable as runtime even if it is mandatory by default (what UI does), we cann't show this behaviour in python file by default that is easy to show in UI.

abhijeetkaurav1st avatar May 08 '20 08:05 abhijeetkaurav1st

It is find to keep it separate, but if is_mandatory is true, then we should set in the backend is_runtime to true too. When something is mandatory, the variable must be runtime in order for the user to change the value during launch.

Right now if you use is_mandatory and open the blueprint in the UI, runtime is not enabled so the user cannot provide. value during launch.

pipoe2h avatar May 08 '20 08:05 pipoe2h