microsoft / BotFramework-Composer

Dialog creation and management for Microsoft Bot Framework Applications
https://docs.microsoft.com/en-us/composer/
MIT License
869 stars 369 forks source link

Error for Orchestrator intent with entities is inconsistent & interferes with some scenarios #7192

Open scheyal opened 3 years ago

scheyal commented 3 years ago

Repro

Expected:

Visuals

When adding intent we get an error:

image

But in another pane it is just fine:

image

darrenj commented 3 years ago

I see this when Orchestrator is enabled (warnings). This is on LU trigger editing on a dialog

image image

However as Eyal has found if you edit the LU on the new trigger dialog you don't get the same consistent warnings/errors

image

mewa1024 commented 3 years ago

I get the same behavior as Darren on 2.0.0-nightly.255657.9d2aeef, namely if I switch from the default recognizer to Orchestrator my existing trigger phrases with entities do not show a warning. The warning is only triggered when I start editing the trigger phrases.

The reverse is also true: If I am using Orchestrator and have entities in my trigger phrases, I see the warnings. If I then switch back to the default recognizer, the warnings persist until I start editing:

https://user-images.githubusercontent.com/39317542/124047204-76844a80-d9c8-11eb-9536-88e276d6216e.mov

It seems like we should run validation on the trigger phrases when the recognizer is changed, not just when phrases are edited.

mewa1024 commented 3 years ago

(removing UX design label)