botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
69 stars 83 forks source link

[BUG] Google-Speech configuration | Refers to the Global Config #1483

Open bassamtantawi-botpress opened 2 years ago

bassamtantawi-botpress commented 2 years ago

Describe the bug When clicking the global google-speech config then change to bot google-speech config, it still refers to the global one. Most probably because the two files have the same name, so the editor thinks it is the same fill

To Reproduce 1- Activate Google-Speech module 2- Go into your bot 3- Click the global google-speech configuration 4- Make a copy to your bot and fill it's details 5- Save and refresh

6- while in the bot, click the global google-speech config 7- click the bot google-speech config The opened file will still refer to the global file.

Expected behavior To view the file I clicked on

Screenshots image

Environment (please complete the following information): v12.26.0

EFF commented 2 years ago

Question, have you tried to unmount and mount your bot and see of that still occure ? Or even better, have you tried to restart the server and this still happens ?

Not that it's a fix but it'll help troubleshooting

bassamtantawi-botpress commented 2 years ago

Yes, I tried to restart the server, and it doesn't fix it. It is not related to any event, just when the files have the same name.

charlescatta commented 2 years ago

I believe this might be the display bug in the code editor's file tree where the selected file is only defined by the filename so when you copy a config file to a bot it looks like you have both the local and global config files selected when that is not the case, see https://github.com/botpress/v12/issues/1293