Commit Graph

5322 Commits

Author SHA1 Message Date
Thomas Gelf 4d050834db IcingaConfig: render host templates to all...
...non-global zones, instead of the default global zone

refs #2410
2023-09-21 15:22:31 +02:00
raviks789 63a3e6a1ec Fix editing of multi-selected services with same name
Since the object names function as keys for the multi-selected objects array, this becomes a problem when
multiple services as the same name. Hence for the services the array keys must be a combination of service name
and the host name to which the service is related.
2023-09-21 14:59:42 +02:00
raviks789 7426e65067 Update PHPStan baseline 2023-09-21 14:57:30 +02:00
raviks789 dcd36877ea Make `TemplateUsageTable`s and other tables compatible with `director branches`
`TemplateUsageTable`, `ApplyRulesTable`, `ObjectsTableSetmembers` and `TemplatesTable` are
made compatible with `director branches`.
2023-09-21 14:57:30 +02:00
raviks789 3c7082cabc Modify `IcingaObjectFilterHelper::filterByTemplate` for director branches
Icinga objects must be filterable based on templates when a director branch is active.
2023-09-21 14:57:30 +02:00
raviks789 e6f7d82c09 Add a `imports` column to the objects
The host or service objects require retrieve the imports column. This
makes it possible to filter them based on templates when a director
branch is active.
2023-09-21 14:57:30 +02:00
Ravi Kumar Kempapura Srinivasa 939f805378 Add `setmembers` summyary line to TemplateUsageTable
`'setmembers' => $this->getSummaryLine('object', 'o.service_set_id IS NOT NULL AND o.host_id IS NOT NULL'),` is added to TemplateUsageTable
and `objects` is set to ` $this->getSummaryLine('object', 'o.service_set_id IS NULL')`. Subsequently, ObjectTableSetMembers
is added which is used in `setmembersAction` in `TemplateController`. `ObjectTableSetMembers` uses service set name or service name
as search columns.
2023-09-21 14:57:30 +02:00
Thomas Gelf ac7b899d5e doc/changelog: mention fix 2023-09-21 14:49:48 +02:00
raviks789 9e332b4022 Remove limit count for service set directly added to the host 2023-09-21 14:37:03 +02:00
Thomas Gelf 612165c4c3 doc/changelog: refresh 2023-09-21 13:01:10 +02:00
Thomas Gelf 53323ad861 de_DE: compile translation 2023-09-21 13:01:10 +02:00
Thomas Gelf 0c33c5d6bc IcingaNotificationForm: just a dot 2023-09-21 13:01:10 +02:00
Thomas Gelf bfa72ee892 de_DE: use relative paths 2023-09-21 13:01:10 +02:00
Thomas Gelf dbd1ed249a de_DE: refresh translation 2023-09-21 13:01:10 +02:00
Thomas Gelf 3199eb627b FormFieldSuggestion: fix wording 2023-09-21 13:01:10 +02:00
Johannes Meyer 89fa677941 phpstan: Remove obsolete pattern from baseline 2023-09-21 09:15:16 +02:00
raviks789 228cbc8376 `Dashboard`: Suppress covariance error of `count()` method 2023-09-21 09:00:55 +02:00
raviks789 32e674aca2 PHPStan: Add baseline 2023-09-21 09:00:55 +02:00
raviks789 9cc04eb5c6 `StartupLogRenderer`: Use correct syntax to write to array `$lines` 2023-09-21 09:00:55 +02:00
raviks789 fcaa97e1b2 Remove dead class `SingleObjectApiHandler` 2023-09-21 09:00:55 +02:00
raviks789 dec1951774 `CustomVariableCache`: Remove redundant destructor
Property `$db` is not declared for it to be unset
2023-09-21 09:00:55 +02:00
raviks789 98f6768dcb Declare properties that are dynamically used
Dynamic properties are deprecated since PHP 8.2.
2023-09-21 09:00:55 +02:00
raviks789 00523d9b35 `IcingaTemplateResolver`: Remove unused dynamic property `$table` 2023-09-21 09:00:55 +02:00
raviks789 69a3e9aa8e Workflow: Add PHPStan static analyzer 2023-09-21 09:00:55 +02:00
raviks789 132d49777a Workflow: Add PHP 8.2 version to the workflow 2023-09-21 09:00:55 +02:00
Johannes Meyer 079bf87a9a
Add php action workflow (#2309) 2023-08-31 10:32:34 +02:00
Johannes Meyer 48c4ae1d73 doc: Add note for GitHub tests 2023-08-31 10:24:54 +02:00
Johannes Meyer 2ca1fc99c9 test: Replace usages of `@expectException` 2023-08-31 09:48:48 +02:00
Johannes Meyer 8d0c8515da Drop travis integration 2023-08-30 17:31:38 +02:00
Johannes Meyer 629297116b BaseTestCase: Use phpunit's new TestCase 2023-08-30 17:28:06 +02:00
Johannes Meyer 37c8056689 Fix phpcs errors 2023-08-30 17:28:06 +02:00
Johannes Meyer aaf59945d9 Add php action workflow 2023-08-30 17:28:06 +02:00
Thomas Gelf fc7bfe7db9 Datalist: fix snapshot diff
fixes #2791
2023-08-25 17:15:08 +02:00
Thomas Gelf 5298243d94 SyncruleController: fix typo
fixes #2613
2023-08-25 11:00:39 +02:00
Thomas Gelf a7a58c5893 Merge branch 'fix/setting-null-with-merge' 2023-08-23 15:49:18 +02:00
Thomas Gelf b19c01daef Sync: ignore null for policy = ignore
fixes #2657
2023-08-23 15:48:13 +02:00
Thomas Gelf e94ad714fb Sync: drop obsolete/useless method 2023-08-22 10:32:44 +02:00
Thomas Gelf 8896e54d69 IcingaArguments: be unmodified when loaded from db
fixes #2660
2023-08-21 12:44:59 +02:00
Thomas Gelf 907d93ebe9 FormFieldSuggestion: propose macros from set_if
fixes #514
2023-08-20 13:11:19 +02:00
Thomas Gelf 7aa7f51929 IcingaObjectFieldForm: move back getFilterFields() 2023-08-20 13:11:12 +02:00
Thomas Gelf d97bbc0526 FormFieldSuggestion: refactor, dedicated class 2023-08-20 13:11:02 +02:00
Thomas Gelf 62f59d4c5a DirectorDatafieldForm: fix typo, translate 2023-08-20 13:10:52 +02:00
Lorenz Kästle 71b311e258 Add missing time unit in translation 2023-08-11 08:36:33 +02:00
Michael Pirogov b9ad2ef9f5 migrations: fix syntax error on 187 2023-08-04 14:51:58 +02:00
moreamazingnick f3455c197d Fix duplicate service sets on clone service
fixes #2671
2023-07-31 08:33:46 +02:00
Sebastian Gumprich 6e49615740 fix wrong example in rest-api docs
the example uses wrong parameters to get configs and activities, according to the code: https://github.com/Icinga/icingaweb2-module-director/blob/master/application/controllers/ConfigController.php#L144
2023-07-30 20:57:36 +02:00
Thomas Gelf 479d964841 BasketSnapshotFieldResolver: provide fixOptional...
...DatalistReference()
2023-07-30 20:54:39 +02:00
Thomas Gelf 02d6ebb0af DirectorDatafield: prefer list uuid...
...on basket restore
2023-07-30 20:52:56 +02:00
Thomas Gelf 14604b64d6 GroupMembershipResolver: namespace is useless 2023-07-30 20:45:14 +02:00
Thomas Gelf 5371b57630 BasketSnapshotFieldResolver: return types 2023-07-30 20:42:59 +02:00