Open tomlm opened 3 years ago
@tomlm @GeoffCoxMSFT has some suggestions here for the SDK that will make this easier for Composer, and will follow-up
We have some findings
condition
fields are displayed as a dropdown with boolean because of sdk.schema
declares it as oneOf
field (generated by dialog:merge).
booleanExpression
is fine, it will be displayed as an abc
string field in Composer
(if edit sdk.schema manually)
67.png)
So for this problem, if we want to change all *.condition
fields' behavior in Composer, it's better to update it in dotnet sdk as a thorough fix.
@cwhitten @boydc2014 FYI
Transferred to botbuildet-dotnet.
@tomlm we believe this should be fixed in schema. From our understanding of the problem and a way to address it is to have condition
stop defining it's interface as a oneOf for expression or boolean. Because the schema says it can be a boolean, the form provides the related selectable options (TRUE/FALSE).
Describe the bug
schema:#/definitions/condition indicates that the default UX for the property should be the expression editor. NOTE: It should NOT HAVE an equals.
schema:#/definitions/booleanExpression indicates that the value could be a bool TRUE/FALSE or an expression which evaluates to that.
If you look in the schema you can see that IfCondition action the condition is different then disabled
I have written 3 bots with composer and NOT ONCE have I had a trigger or IfCondition which was "TRUE/FALSE". 100% of the time it was an expression such as user.age > 3
The current UI is saying that the default for an If condition is true
The effect of this bug is that I have to click 3 times EVERYTIME I create a new trigger or IfCondition.
Version
Browser
OS
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the schema design to be respected.
This should be all places that /definitions/condition is used in the .schema files:
Screenshots
Additional context