Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Intent only import in lu will pull unrelated contents  #1123

@feich-ms

Description

@feich-ms

Versions

4.12.0-rc0

Describe the bug

Reported by composer here microsoft/BotFramework-Composer#5756 (comment). Intent import in lu will pull unrelated contents. Consider below scenarios:

common.en-us.lu:

# Greeting
- hi
- hello

root.en-us.lu:

[Common](common.en-us.lu)

# MyIntent
- test 1
- test 2

test.en-us.lu

# Test
- [MyIntent](root.en-us.lu#MyIntent)

The generated luis file for test.en-us.lu with luis:convert command will pull everything from common.en-us.lu, which is not expected.

To Reproduce

Steps to reproduce the behavior:

  1. Create above lu files
  2. Use bf luis:convert -i test.en-us.lu to convert lu to luis
  3. You will see intent and utterances in common.en-us.lu are added into the generated luis json file

Expected behavior

Only MyIntent is pulled

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

[bug]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions