Closed boudewijn-zicht closed 7 months ago
@piotrpog Thanks for bringing this to my attention. Will look into this.
@boudewijn-zicht Fixed in the latest release, query is no longer being used before initialization. It was executed on dashboard due to checking for current user permissions before using asset bundle with plugin js. This happened on every control panel page. Right now asset bundle is used only when plugin template with filters is added to the elements list.
Thank you very much for the quick fix!
@boudewijn-zicht small update, turns out that plugin js needs to be injected on every page after all due to technical reasons (injecting js only when element list renders caused it to malfunction when viewing element list in element selection modal), so i released another update and plugin will be doing db query for checking current user after all. but it still does it after db initializes, so there still will be no warnings.
Using plugin version 2.2.1
We have many warnings in the logs, see the stack trace below. This occurs when the plugin is initialized by Craft, but the database isn't ready yet. Is this something you can help me with?
This happens every time we load the dashboard (and other pages). Why is a DB query performed by the craft-quick-filters plugin on the dashboard where the plugin shouldn't be doing anything?