Skip to content
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

Merged
merged 2 commits into from
Jul 13, 2021
Merged

cleanup items for LU generation #3375

merged 2 commits into from
Jul 13, 2021

Conversation

coldplaying42
Copy link
Contributor

Fixes #3374

Proposed Changes

Testing

@@ -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 != ''))}

Copy link
Contributor

@chrimc62 chrimc62 Jul 9, 2021

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.

Copy link
Contributor Author

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}
Copy link
Contributor

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.

@chrimc62
Copy link
Contributor

chrimc62 commented Jul 9, 2021

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.

Copy link
Contributor

@chrimc62 chrimc62 left a 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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{@

There should not be an @ here--this test should be failing.

- {@BreadProperty={@BreadValue=white} bread}
- {@BreadProperty={@BreadValue=whole} bread}
- {@BreadProperty={@BreadValue=whole wheat} bread}
- {@BreadProperty={BreadValue=multi}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{@

This should not be there. This is the file where all labels should not include an @.

Copy link
Contributor

@chrimc62 chrimc62 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LU Generation tweaks
3 participants