Skip to content

FIX: query panel not loading in chromium

Timm Fitschen requested to merge f-query-panel-chromium into main

Summary

Fix for https://gitlab.indiscale.com/caosdb/customers/leibniz-zmt/management/-/issues/216 and https://gitlab.indiscale.com/caosdb/customers/leibniz-zmt/management/-/issues/218

Focus

Chromium Bug

For some reason, the legacy adapter code was executed before the DOM tree was fully loaded in chromium while this was not the case in firefox. That's why the query panel did not load in chromium, yet it did in firefox. The new approach makes a retry by listening on the DOMContentLoaded event when the old query panel is not in the DOM tree yet.

Most of our other (legacy) webui modules/extensions use jQuery's $.ready function to avoid this, but I tried to stay clear of jquery here.

Bad Performance

The bad performance is being fixed in caosdb/src/caosdb-webui-core-components!6 This MR just updates the package.json to use an unreleased version - you have to checkout the f-autocompletion branch of the core-components, npm pack there, then run npm install here.

Test Environment

Please try with chromium and firefox.

Edited by Timm Fitschen

Merge request reports

Loading