botpress icon indicating copy to clipboard operation
botpress copied to clipboard

[BUG] Language change is inconsistent

Open davidvitora opened this issue 4 years ago • 0 comments

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:

  1. Create a Bot.
  2. Change language to any other (keep it as a single language bot).
  3. 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.

image

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.

davidvitora avatar Dec 13 '21 22:12 davidvitora