Commit graph

13 commits

Author SHA1 Message Date
Eric Lippmann
272e791390 License source files as GPL-3.0-or-later
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-11 14:03:05 +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
Sukhwinder Dhillon
89c0bb0686 Models: Add property type hints so that phpstan can scan correctly 2024-03-13 16:34:21 +01: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
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
9051478cd4 Optimize imports 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
Sukhwinder Dhillon
9810452527 Add licence header 2021-08-20 12:15:45 +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
5eee45a29c Introduce class FlappingHistory 2020-03-11 07:58:13 +01:00