Commit graph

19 commits

Author SHA1 Message Date
Johannes Meyer
d4fcb48f0c Servicegroupsummary: Add name_ci as search column 2024-04-09 11:24:39 +02:00
Johannes Meyer
e04e6ebeab ServicegroupSummary: Support name_ci in quick searches 2024-03-22 13:53:27 +01:00
Sukhwinder Dhillon
89c0bb0686 Models: Add property type hints so that phpstan can scan correctly 2024-03-13 16:34:21 +01:00
Johannes Meyer
52cd8d4590 Properly visualize unreachable services
* Lists show it in their visual and title area
* The tatical view includes a slice for them
* State badges (list footers, host-/servicegroups) also show a badge
2023-07-21 10:24:10 +02:00
Johannes Meyer
7ed4570a31 Make group summaries work in the searchbar
Previously:
* Base columns were identified as relation columns
* Base columns were not enriched (had no labels)
* Hostgroup columns were invalid in the servicegroupsummary and vice versa
2022-09-01 09:51:14 +02:00
Eric Lippmann
d0d9a5edc0 Drop Binary behavior
Now part of ipl-orm.
2022-05-24 16:04:23 +02:00
Eric Lippmann
c41dbb80f4 Group summaries: Specify GROUP BY clause manually 2022-05-24 16:04:23 +02:00
Eric Lippmann
bc4cd07a82 Group summaries: Do not use NULL for name columns
Previously, all name columns in the UNION queries yield NULL except for
the Hostgroup or Servicegroup query. In PostgreSQL, this leads to
separate result sets because all SELECT columns must appear in the GROUP
BY clause, which also includes name columns.
2022-05-24 16:04:23 +02:00
Eric Lippmann
d0725fb45a PostgreSQL: Group summaries: Fix type resolution for UNION
Type resolution for UNION (CASE and related constructs) in PostgreSQL
works by taking the UNIONed queries 2 at a time, i.e. the first TWO
queries are resolved, then it takes the result and resolves it with the
next query and so on.

Previously, when using Hostgroup as the first query and Host (or
Service) as the next query, PostgreSQL encounters two NULL values for
the host_handled (or service_handled) column, resulting in the type
text. This leads to the following error:

UNION types text and boolenum cannot be matched.

Now Hostgroup is the last query that ensures there are not two
consecutive NULL values for host_handled (or service_handled).

NOTE: BREAKING: This change breaks other code that extracts the "base
query" which depends on Hostgroup or Servicegroup being the first query
in the getUnions() array, which has yet to be fixed.  In preparation for
a possible fix that could simply use the last query instead of the
first, the Servicegroup query has also been moved to the end.
2022-05-24 16:04:23 +02:00
Eric Lippmann
c859ec3a0d Add Binary behavior for binary columns 2022-05-24 16:04:23 +02:00
Johannes Meyer
adfeb079ba Servicegroupsummary: Fetch servicegroups in a separate query
Otherwise not all servicegroups are shown if there's a service restriction active
2021-03-09 09:26:19 +01:00
Johannes Meyer
5e441c93a0 Add license note to every file 2020-03-13 10:36:24 +01:00
Johannes Meyer
248ab1c704 Host-/ServicegroupSummary: Define which relations are required 2020-03-06 14:46:53 +01:00
Johannes Meyer
fa8ab3673b Servicegroupsummary: Count services, not their states 2020-03-03 14:28:24 +01:00
Johannes Meyer
c423f7973e Servicegroupsummary: Use servicegroup as table name 2020-01-28 17:09:32 +01:00
Eric Lippmann
13e9ee9174 ServicegroupSummary: Use and adjust getDefaultSort() in favor of removed getSortRules() 2019-12-11 16:13:56 +01:00
Johannes Meyer
f923f49d3c ServicegroupSummary: Add column services_severity 2019-12-03 09:55:48 +01:00
Eric Lippmann
77b4930098 Rename to Icingadb 2019-11-05 01:07:30 +01:00
Eric Lippmann
10f58fb4a0 Rename library/Eagle to library/Icingadb 2019-11-05 01:06:28 +01:00
Renamed from library/Eagle/Model/ServicegroupSummary.php (Browse further)