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.

bf luis:convert from json to lu prebuilt intent inheritance invalid #818

@ghost

Description

Versions

@microsoft/botframework-cli/4.9.0 win32-x64 node-v12.13.1
Powershell

Describe the bug

Converting json version export to LUDown with prebuilt intent incorrectly formats the @intent.inherits information.
Compare:

!# @intent.inherits = name : Utilities.Cancel
with
!# @intent.inherits = name : Utilities.Cancel; domain_name : Utilities; model_name : Cancel
which comes from the "Export as LU" option in the LUIS portal.

To Reproduce

Steps to reproduce the behavior:

  1. Create LUIS application containing prebuilt intent
  2. Run bf luis:version:export and output to file... i.e. test.json
  3. Run bf luis:convert --in .\test.json --out test.lu
  4. Inspect intent.inherits information
  5. Run bf luis:convert --out .\test2.json --in test.lu
  6. Observer error:
    [WARN]: Invalid intent inherits information found. Skipping "> !# @intent.inherits = name : Utilities.Cancel"
  7. Attempt to import resulting JSON using bf luis:version:import
  8. Failed to import app version: Error: The model name { Utilities.Cancel } are reserved.
  9. Compare LU from portal to converted LU

Expected behavior

Correct inheritance information stored in LU down file

[bug]

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.R10Release 10 - August 17th, 2020customer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.lunon luis api commands

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions