Limekiller / moodle-block_openai_chat

An AI chat block for Moodle, powered by GPT
https://moodle.org/plugins/block_openai_chat
GNU General Public License v3.0
27 stars 15 forks source link

All settings are always loaded #38

Closed ewallah closed 5 months ago

ewallah commented 5 months ago

Settings should only be loaded when necessary. Normally this is done by adding if ($hassiteconfig) { and if ($ADMIN->fulltree) { in the settings file.

Detected when running Behat tests: Exception: Javascript code and/or AJAX requests are not ready after 10 seconds. There is a Javascript error or the code is extremely slow (block_openai_chat/settings).

Limekiller commented 5 months ago

Thanks for the report. I think this should be fixed by https://github.com/Limekiller/moodle-block_openai_chat/commit/7e6d984046b06727f49665b5100692f0eeefbb35