-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cleanup items for LU generation #3375
Conversation
@@ -155,7 +155,7 @@ | |||
|
|||
# actionAssign(entity) | |||
> Assign entity to current property | |||
- ${list(where([actionSetOrPush(`@${entity}`), actionDeletePropertyToChange()], actions, actions != ''))} | |||
- ${list(where([actionSetOrPush(`${entity}`), actionDeletePropertyToChange()], actions, actions != ''))} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tells me you have not tried to actually tested a generated dialog. I always build sandwich and interact with it to make sure scenarios work. Removing @ is only for labels in LU files. Here this is how you refer to an entity and it should be here. This whole file should not be changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean the whole generator.lg should not be changed?
@@ -8,7 +8,7 @@ | |||
|
|||
# qnaAnswer_text() | |||
> Show QnA answer | |||
- ${@answer} | |||
- ${answer} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not be changed.
You should always test to see if things work. This does not work because @ is how you refer to entities at runtime. This change is only about removing the @ in the LU files--not in .dialog/trigger files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐
@@ -344,7 +344,7 @@ describe('dialog:generate --merge files', async function () { | |||
await assertMissing('language-generation/en-us/BreadValue/sandwichMerge-BreadValue.en-us.lg', /white/, errors) | |||
//sandwichMerge | |||
await assertMissing('language-understanding/en-us/sandwichMerge.en-us.lu', /pulled/, errors) | |||
await assertContains('language-understanding/en-us/Bread/sandwichMerge-Bread-BreadValue.en-us.lu', />- {@BreadProperty={@BreadValue=rye}}/, errors) | |||
await assertContains('language-understanding/en-us/Bread/sandwichMerge-Bread-BreadValue.en-us.lu', />- {@BreadProperty={BreadValue=rye}}/, errors) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- {@BreadProperty={@BreadValue=white} bread} | ||
- {@BreadProperty={@BreadValue=whole} bread} | ||
- {@BreadProperty={@BreadValue=whole wheat} bread} | ||
- {@BreadProperty={BreadValue=multi}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #3374
Proposed Changes
Testing