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

Comments

Updates to LU round tripping with luis_schema_version 7.0.0#730

Merged
vishwacsena merged 12 commits intomasterfrom
vishwac/686
Apr 24, 2020
Merged

Updates to LU round tripping with luis_schema_version 7.0.0#730
vishwacsena merged 12 commits intomasterfrom
vishwac/686

Conversation

@vishwacsena
Copy link
Contributor

  • LU -> JSON as well as JSON -> LU now support luis_schema_version 7.0.0
  • luis_schema_version 7.0.0 is now the default. Documents (LU or JSON) with 6.0.0 will be upgraded to 7.0.0
  • Ability to define prebuilt entities via @ prebuiltType entityName notation. Under the cover this will be transformed (unless not within an nDepth entity) to prebuilt type with a role for entityName.
  • Updated all tests to 7.0.0 format
  • Added new tests to cover upgrade paths from older schema version to 7.0.0

@vishwacsena vishwacsena added the R9 Release 9 - May 15th, 2020 label Apr 23, 2020
@cleemullins
Copy link
Contributor

@munozemilio, I don't think I'm qualified to signoff on this one. Can you take a look?

if (item.featureName) featuresList.push(item.featureName);
if (item.modelName) featuresList.push(item.modelName);
if (item.modelName) {
if (item.isRequired !== undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the same?

            if (item.isRequired === undefined || 
            (item.isRequired !== undefined && 
            item.isRequired !== true)) {
                featuresList.push(item.modelName);
            }

}

const isRootEntity = function (entityName, entitiesCollection) {
if ((entitiesCollection || []).find(ecEntity => ecEntity.name == entityName) !== undefined)
Copy link
Contributor

Choose a reason for hiding this comment

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

return ((entitiesCollection || []).find(ecEntity => ecEntity.name == entityName) !== undefined) directly?

@vishwacsena vishwacsena merged commit b822399 into master Apr 24, 2020
@vishwacsena vishwacsena deleted the vishwac/686 branch April 24, 2020 21:28
@vishwacsena vishwacsena mentioned this pull request Apr 24, 2020
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

R9 Release 9 - May 15th, 2020

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants