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

Comments

luis build support to extract authoringKey set by config:set#731

Merged
feich-ms merged 6 commits intomasterfrom
feich/AddAuthoringKeyInConfig
Apr 26, 2020
Merged

luis build support to extract authoringKey set by config:set#731
feich-ms merged 6 commits intomasterfrom
feich/AddAuthoringKeyInConfig

Conversation

@feich-ms
Copy link
Contributor

@feich-ms feich-ms commented Apr 24, 2020

Fix issue #666. After the fix, users can use bf config:set -k authoringKey -v xxxxxx to set the authoring key in config and luis build will extract the key from config if it is already set. After set users don't need to always provide authoring key in luis build command.

@feich-ms feich-ms requested a review from chrimc62 April 24, 2020 10:00
@feich-ms feich-ms changed the title support to extract authoringKey set with config:set support to extract authoringKey set by config:set Apr 24, 2020
@feich-ms feich-ms changed the title support to extract authoringKey set by config:set luis build support to extract authoringKey set by config:set Apr 24, 2020
@vishwacsena vishwacsena added the R9 Release 9 - May 15th, 2020 label Apr 24, 2020
@feich-ms feich-ms merged commit 55e0539 into master Apr 26, 2020
@feich-ms feich-ms deleted the feich/AddAuthoringKeyInConfig branch April 26, 2020 02:12
}

if (!flags.authoringKey && (!userConfig || !userConfig.authoringKey)) {
throw new CLIError('Missing luis authoring key. Please pass authoring key with --authoringKey flag')

Choose a reason for hiding this comment

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

luis [](start = 36, length = 4)

Should be LUIS.

if (!flags.authoringKey && (!userConfig || !userConfig.authoringKey)) {
throw new CLIError('Missing luis authoring key. Please pass authoring key with --authoringKey flag')
} else {
flags.authoringKey = flags.authoringKey || userConfig.authoringKey

Choose a reason for hiding this comment

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

userConfig.authoringKey [](start = 51, length = 23)

Is there a separate PR for adding this to config? Even if config allows anything, I would still expect to see documentation updates both for this command and for config.

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