Describe the bug
Inconsistency during language change, if you have a bot with only one language, if you change it, you can't train your NLU until restarting the Botpress Server.
To Reproduce
Steps to reproduce the behavior:
Create a Bot.
Change language to any other (keep it as a single language bot).
You can't see the 'Train Chatbot' button anymore, it will only be fixed after restarting the server.
Expected behavior
The Train Chatbot button to appear
Environment (please complete the following information):
Botpress Version 12.26.8
NodeJS 12.22.1
Additional context
This seems is to be related to the fact that module hooks (OnBotMount/OnBotUnmount) are not triggered in the current version.
Unmount/mount is a process that is done to update the bot configuration, but right now, there is code duplication in both core and studio repositories, creating inconsistency in the Behavior. So right now the module hooks are only being triggered during Server initialization.
Describe the bug Inconsistency during language change, if you have a bot with only one language, if you change it, you can't train your NLU until restarting the Botpress Server.
To Reproduce Steps to reproduce the behavior:
Expected behavior The Train Chatbot button to appear
Environment (please complete the following information):
Additional context This seems is to be related to the fact that module hooks (OnBotMount/OnBotUnmount) are not triggered in the current version.
Unmount/mount is a process that is done to update the bot configuration, but right now, there is code duplication in both core and studio repositories, creating inconsistency in the Behavior. So right now the module hooks are only being triggered during Server initialization.