From 6271f48fadf9519d1d097f7aa12f8aa62c3297af Mon Sep 17 00:00:00 2001 From: Herafia Date: Tue, 17 Nov 2026 11:05:50 +0100 Subject: [PATCH 1/3] Fix(Perf): read dashboard rights in one query and cut Metabase API calls --- CHANGELOG.md | 6 ++ front/collections.php | 4 +- front/profileright.form.php | 36 ++++++---- inc/apiclient.class.php | 44 ++++++++++-- inc/dashboard.class.php | 8 +-- inc/profileright.class.php | 139 +++++++++++++++++++++++++++++------- setup.php | 17 +++-- 7 files changed, 200 insertions(+), 54 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 461137d..fa7185a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [Unreleased] + +### Fixed + +- Fix the profile rights tab freezing the browser and failing to save with many dashboards, and the collections page querying Metabase once per collection + ## [1.4.3] - 2026-10-06 ### Fixed diff --git a/front/collections.php b/front/collections.php index e48faa3..389b933 100644 --- a/front/collections.php +++ b/front/collections.php @@ -60,8 +60,10 @@ echo '

' . __s('Extract questions from metabase:', 'metabase') . '

'; echo "