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

Comments

fix: fix luis appid not found error#2761

Merged
cwhitten merged 8 commits intomasterfrom
qika/luisfix
Apr 26, 2020
Merged

fix: fix luis appid not found error#2761
cwhitten merged 8 commits intomasterfrom
qika/luisfix

Conversation

@zidaneymar
Copy link
Contributor

Description

Task Item

fixes #2751

  1. After the runtime structure changes, need to update the settings path.
  2. builder.UseLuisSettings() don't search the settings in parent folder so need to add "root": "../" to specify the location

Screenshots

@github-actions
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling b4c4544 on qika/luisfix into 2c4fe20 on master.


builder.AddJsonFile($"ComposerDialogs/settings/appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile("appsetting.json", optional: true, reloadOnChange: true)
var configFile = Path.GetFullPath(Path.Combine(@"../settings/appsettings.json"));
Copy link
Contributor

Choose a reason for hiding this comment

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

We should not do this, we need to get the bot path first, and then search in botfolder/settings/appsettings.json, otherwise it will not working for the deployment scenario.

Copy link
Contributor

Choose a reason for hiding this comment

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

And, we should consider the deployment scenario, if it is deployment, we need to get the bot and root location from appsettings.deployment.json.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should not do this, we need to get the bot path first, and then search in botfolder/settings/appsettings.json, otherwise it will not working for the deployment scenario.

fixed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And, we should consider the deployment scenario, if it is deployment, we need to get the bot and root location from appsettings.deployment.json.

currently the deployment bot's path is hard-coded, do we need to make that configurable, I mean, move the 'bot': '../' to appsettings.development.json layer, and add 'bot': 'composerDialogs' to appsettings.deployment.json layer.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, we should make them configurable

cwhitten
cwhitten previously approved these changes Apr 25, 2020
@cwhitten cwhitten dismissed their stale review April 25, 2020 02:55

accident

@cwhitten cwhitten merged commit 4e8a637 into master Apr 26, 2020
@cwhitten cwhitten deleted the qika/luisfix branch April 26, 2020 16:27
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* fix luis appid unfound error

* fix typo

* use bot root to config the path of settings

* differ bot to different layer

* change the order of loading settings

* adapt lubuild, fix settings priority

Co-authored-by: Qi Kang <qika@microsoft.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants