Commit graph

28 commits

Author SHA1 Message Date
Alexander A. Klimov
3c8ed68cc6 Upgrade license from GPLv2 to GPLv2+
This was easy because only README.md and doc/01-About.md were redacted manually, everything else via:
git ls-files -z |xargs -0 perl -pi -e 's/Icinga GmbH \| GPLv2/Icinga GmbH | GPLv2+/'

This is legal because we have only merged PRs with label:cla/signed or made by Icinga staff:
https://github.com/Icinga/icingadb-web/pulls?page=1&q=is%3Apr+is%3Aclosed+-label%3Acla%2Fsigned+-author%3Anilmerg

This has no risk for us in people distributing their own version under GPLv3 only.
After all, we won't take their patches anyway, unless they sign our CLA.

This is the cleanest solution for having e.g. these in one address space:

* Icinga Web, GPLv2+
* K8s Web, AGPLv3
* Thirdparty, some LGPLv3 and Apache-2.0

Apropos, K8s Web is even v3-licensed on purpose, to have a stronger protection against cloud ops.
2025-11-21 13:31:24 +01:00
Johannes Meyer
5e982dad40
Merge commit from fork
* Auth: Add method `assertColumnRestrictions`

* ObjectSuggestions: Do not suggest protected variables

`assertColumnRestrictions` does not allow to use them
anymore, hence we should not suggest them in searches
as well to not to let the user run into an error by
accepting a suggestion. Though, when fetching values
as well, we still have to obfuscate, otherwise protected
vars won't show up in details anymore.

* Introduce Icinga\Module\Icingadb\Common\Model

Must be used as base for all models, to ensure
column restrictions are asserted on filters.

* Utilize `Icinga\Module\Icingadb\Common\Model` where applicable
2025-10-16 08:42:51 +02:00
Johannes Meyer
9ea5d70512 users: Rename to contacts 2025-04-10 15:04:41 +02: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
6b4e0da35f NotificationHistory: Add notification relation 2023-05-31 16:08:50 +02:00
Sukhwinder Dhillon
cb5373b49e
Models: Use MillisecondTimestamp instead of Timestamp behavior (#753)
The `Timestamp` behavior returns float values, which the database (pgsql) cannot convert properly.
We already have a `MillisecondTimestamp` behavior, so we should use that.
2023-05-30 16:05:11 +02:00
Yonas Habteab
8a0582e403 Model: Add ReRoute behavior after the binary behaviors
When rewritting the filter condition in the reroute behavior, it might be transformed
into a filter chain and will produces an error when traversing the binary behaviors with
the transformed filter rule.
2022-08-22 11:45:19 +02:00
Johannes Meyer
10577631b3 Enhance column labels 2022-07-11 17:31:53 +02:00
Johannes Meyer
47332faffa Model: Rename getMetaData into getColumnDefinitions 2022-06-09 13:24:41 +02:00
Eric Lippmann
d0d9a5edc0 Drop Binary behavior
Now part of ipl-orm.
2022-05-24 16:04:23 +02:00
Eric Lippmann
8495244246 Merge behavior IdKey into Binary 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
12ad4c6082 NotificationHistory: Provide a label for the primary key 2021-08-04 12:22:14 +02:00
Johannes Meyer
0a900f5896 NotificationHistory: Utilize IdKey filter rewrite behavior 2021-08-04 12:22:14 +02:00
Johannes Meyer
bab7436431 Register missing *_history.history.* relations 2021-03-08 16:29:30 +01:00
Johannes Meyer
72386601fa Implement getMetaData() in all important models 2021-03-08 12:08:38 +01:00
Johannes Meyer
2a3aab2dc6 Model: Define missing search columns for some models 2021-01-14 11:17:08 +01:00
Johannes Meyer
3587ce437a NotificationHistory: Implement getMetaData() 2021-01-14 11:12:11 +01:00
Johannes Meyer
5e441c93a0 Add license note to every file 2020-03-13 10:36:24 +01:00
Johannes Meyer
2b44ecbea6 Establish relation between user <-> notification_history 2020-03-10 10:08:09 +01:00
Johannes Meyer
4952b91cb6 Fix missing host history entries 2020-03-10 09:26:28 +01:00
Johannes Meyer
9fc88e28c6 Join hosts and services with an INNER join in history queries
Otherwise history entries of removed objects are fetched.
2020-02-07 15:50:55 +01:00
Eric Lippmann
7f132951a3 Notifications: Adjust default sort 2019-12-11 20:39:26 +01:00
Eric Lippmann
aeff535454 NotificationHistory: Use and adjust getDefaultSort() in favor of removed getSortRules() 2019-12-11 16:13:55 +01:00
Johannes Meyer
1764087063 Model: Provide routes for restrictions in all models 2019-12-03 09:55:48 +01:00
Johannes Meyer
604246290d NotificationHistory: Rename column event_time to send_time 2019-12-02 08:53:42 +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/NotificationHistory.php (Browse further)