Commit graph

9 commits

Author SHA1 Message Date
Johannes Meyer
88db56e17b Optimize restriction application to avoid multiple or needless sub-queries (#1329)
2cd1f96c Fixes that a condition, to keep redundancy groups in the result
(as they cannot be subjected to restrictions), lead to expensive and
irrelevant sub-queries in cases where redundancy groups were not
fetched. (e.g. usergroups)

6cb15efc Changes restriction application so that restrictions of
multiple roles are merged together instead of being processed
individually. This helps the ORM to generate less sub-queries and I
suspect performance will also be improved, even if just slightly.

fixes #1294

(cherry picked from commit 3b77b1c956)
2026-03-02 14:59:35 +01:00
raviks789
bfb4c511b6
StateBadgesTest: Account for change in visibility for createLink method 2024-10-31 09:46:52 +01:00
Johannes Meyer
4ff444340d Macros: Properly support CompatHost and CompatService
fixes #900
2023-10-13 09:03:03 +02:00
Johannes Meyer
959f06cafd Utilize ipl\Web\Url::setFilter() where applicable 2023-09-12 09:52:19 +02:00
Johannes Meyer
34ecf5d80f StateBadges: Require a real filter in method createLink 2023-07-21 10:24:10 +02:00
Johannes Meyer
4a0583f89d Add StateBadge(s) changes from ipl-web here 2023-07-20 10:20:09 +02:00
Johannes Meyer
3074e8861b MacrosTest: Drop Mockery usage 2023-01-18 12:13:15 +01:00
Johannes Meyer
1a73126938 Model: Implement createDefaults where applicable 2022-05-23 15:51:51 +02:00
Yonas Habteab
6748302a8e Test: Add Macros unit tests 2021-11-02 09:26:38 +01:00