Commit graph

29 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
Johannes Meyer
f2da48219c tests: Enhance command transport tests 2025-11-12 15:15:10 +01:00
Johannes Meyer
0148f4f510 db: Use an alias for *_customvar through tables
fixes #1162
2025-07-14 15:47:45 +02:00
Eric Lippmann
28beb292e9 Test IcingaHealth::normalizeVersion() 2025-06-20 10:13:00 +02:00
Johannes Meyer
e66661196b usergroups: Rename to contactgroups 2025-04-10 15:04:41 +02:00
Johannes Meyer
9ea5d70512 users: Rename to contacts 2025-04-10 15:04:41 +02:00
Johannes Meyer
c57298e776 test: Make sure a backend exists 2024-12-17 16:33:05 +01:00
raviks789
bfb4c511b6
StateBadgesTest: Account for change in visibility for createLink method 2024-10-31 09:46:52 +01:00
Sukhwinder Dhillon
929258c30f PluginOutputTest: Migrate tests from monitoring/PluginOutputTest 2024-07-24 10:41:23 +02:00
Sukhwinder Dhillon
2fefc75552 PluginOutput::render(): Shorten the output by characterLimit before processing it
If the shorten output contained (not properly closed) HTML element, it merged the next list-item into the same html tag, because the closing tag was missing.
So we therefor shorten the output by characterLimit before proccessing it
2024-07-24 10:24:27 +02:00
Johannes Meyer
a0bb146790 test: Command transmission fallback handling
refs #950
2024-03-26 17:05:32 +01:00
Johannes Meyer
83af168936 FlattenedObjectVars: Force processing to finish early
fixes #1001
2024-03-26 17:04:36 +01:00
Johannes Meyer
018d45f629 Transform custom variable filters as late as possible
fixes #865
2024-03-22 15:04:32 +01:00
Johannes Meyer
ce750587a0 migrate: Document the --no-backup switch for the filter subcommand 2023-11-13 15:03:12 +01:00
Johannes Meyer
4c7cbfa67d migrate: Also backup roles
Logging is useful, but a backup even more.
2023-11-13 15:03:12 +01:00
Johannes Meyer
98c43732f7 migrate: Don't crash just because a directory does not exist 2023-11-13 15:03:12 +01:00
Johannes Meyer
8a3407b33c migrate: Also transform/migrate menu items 2023-11-13 15:03:12 +01:00
Johannes Meyer
4372be956d test: Add case for the new migrate command 2023-11-13 15:03:12 +01:00
Johannes Meyer
4ff444340d Macros: Properly support CompatHost and CompatService
fixes #900
2023-10-13 09:03:03 +02:00
Yonas Habteab
0f380c8411 Don't use customvar values from customvar table other than for empty array & dictionary 2023-10-13 09:02:01 +02:00
Johannes Meyer
959f06cafd Utilize ipl\Web\Url::setFilter() where applicable 2023-09-12 09:52:19 +02:00
raviks789
81cf29884c Add unit tests for invalid performance data evaluation 2023-09-05 16:44:44 +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
ca57b19ec1 test: Add case for Icinga\Module\Icingadb\Model\CustomvarFlat 2023-07-05 14:05:53 +02:00
Johannes Meyer
8a57ca7850 Introduce monitoring's perfdata tests here 2023-01-19 11:04:17 +01: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