Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: catch the throw error message from the luis file check function #2557

Merged
merged 7 commits into from
Apr 9, 2020

Conversation

lei9444
Copy link
Contributor

@lei9444 lei9444 commented Apr 8, 2020

Description

The luis check function before publishing will check empty file and referred lu files. The error message should show if the check fail.

Do some refactor about the publish luis and load bot logic:
The botStatus ={
connected = 'connected',
unConnected = 'unConnected',
publishing = 'publishing',
published = 'published',
reloading = 'loading',
pending = 'pending',
failed = 'failed',
}

If the project is new the status = unConnected;
if there are some errors when starting the bot status = failed, the callout will show the error message, the the status will be set pedding.
if status = publishing or reloading, will show the loading component.
if publish luis succeed the status will be set published and then will call the loadBot function.
if finish the flow, the status will be set connected.

Task Item

refs #2555

Screenshots

@a-b-r-o-w-n a-b-r-o-w-n added the Approved to merge approved, waiting to be merged label Apr 9, 2020
@a-b-r-o-w-n a-b-r-o-w-n self-assigned this Apr 9, 2020
@cwhitten cwhitten merged commit c668ccf into microsoft:master Apr 9, 2020
@cwhitten cwhitten mentioned this pull request Apr 9, 2020
7 tasks
@lei9444 lei9444 deleted the fixpublish branch April 14, 2020 08:28
lei9444 added a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
…icrosoft#2557)

* fix: catch the throw error message from luis file check function

* change the throw error

* refactor the test button

* remove log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved to merge approved, waiting to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants