5439 Commits

Author SHA1 Message Date
Johannes Meyer
9919b65fc5 DirectorDatafield: Properly cache category in getCategory()
Makes `getCategoryName()` work.
2024-11-19 13:15:34 +01:00
Johannes Meyer
bf591093d8 Provide implementation for hook Icingadb/CustomVarRenderer 2024-11-19 13:15:34 +01:00
Johannes Meyer
ca0b8ebc4e Provide implementation for hook Monitoring/CustomVarRenderer 2024-11-19 13:15:34 +01:00
Johannes Meyer
431468366c Introduce implementation for hook Icingadb/CustomVarRenderer 2024-11-19 13:15:34 +01:00
Johannes Meyer
c20b477df8 Introduce implementation for hook Monitoring/CustomVarRenderer 2024-11-19 13:15:34 +01:00
Sukhwinder Dhillon
2d48843d87 Phpstan: Separate workflow 2024-11-19 09:57:31 +01:00
Eric Lippmann
ef7f53cc8f
fixes #2393 clusterzone check is not a plugincheck (#2502) 2024-11-07 15:49:58 +01:00
moreamazingnick
fd7babe81e fixes #2393 clusterzone check is not a plugincheck 2024-11-07 15:28:51 +01:00
Eric Lippmann
5daa3a85ed
Add hasBasketSupport for TimePeriods (#2543)
This adds the missing "hasBasketSupport" for TimePeriodController which
allows to add the TimePeriod to specific baskets.
2024-11-07 15:24:45 +01:00
André Nähring
1835661850 Add hasBasketSupport for TimePeriods 2024-11-07 13:16:38 +01:00
Eric Lippmann
853efc8c6d
Fix CSRF validation for sorting in property tables (#2893) 2024-11-07 13:15:52 +01:00
raviks789
7fd1468229 Fix CSRF validation for sorting in property tables 2024-11-07 12:57:40 +01:00
Eric Lippmann
030740942e
IcingaCloneObjectForm: Fix cloning of hosts in director branches (#2898)
The cloned host must also have services and service sets that are under
the original host.
2024-11-07 12:57:02 +01:00
raviks789
9d186638cd IcingaCloneObjectForm: Fix cloning of hots in director branches
The cloned host must also have services and service sets that are under the original host.
2024-11-07 11:32:36 +01:00
Eric Lippmann
d9b3b23de6
IcingaMultiEditForm: Fix editing custom vars with space in their name (#2900) 2024-11-07 11:32:18 +01:00
raviks789
5298c8ee5d IcingaMultiEditForm: Fix editing custom vars with space in their name 2024-11-07 11:21:46 +01:00
Eric Lippmann
39c823c655
Basket::setObjects: Reset $chosenObjects property only if the given objects is empty (#2902) 2024-11-07 11:21:15 +01:00
raviks789
6be8cd49af Basket::setObjects: Reset $chosenObjects property only if the given objects is empty 2024-11-07 11:14:36 +01:00
Eric Lippmann
058bc4a776
PropertyModifierGetHostByName: Fix inet_pton unrecognized address error (#2903) 2024-11-07 11:14:15 +01:00
raviks789
6c7918033d PropertyModifierGetHostByName: Fix inet_pton unrecognized address error 2024-11-07 11:02:21 +01:00
Eric Lippmann
aaf51452be
ObjectImporter: Retransform sync job settings apply_changes from boolean to 'y' or 'n' (#2904)
Sync jobs restored from a basket snapshot with `apply_changes` settings
set to `Yes`, runs without applying any changes to the objects affected
by the sync rule. This happens as the value of the setting is exported
as a boolean but is not retransformed back to `y` or `n` while
importing.


fixes ref/IP/53326
2024-11-07 11:02:03 +01:00
raviks789
44a8bbb70e ObjectImporter: Retransform sync job settings apply_changes from boolean to 'y' or 'n' 2024-11-07 10:39:40 +01:00
Eric Lippmann
2d332a2a16
Fix sync rule preview in case of boolean properties (#2905)
Sync rules created for import sources, importing objects with boolean
properties, throws `SQLSTATE` error as shown in the screenshot below.

![Sync Preview SQL State
error](https://github.com/user-attachments/assets/7c1f27f1-0c98-4945-8599-1e60ea5c9574)

The reason for this is because the preview creates temporary branched
objects by importing the objects' properties to check for the
modifications. And the boolean properties, were not transformed to `y`
or `n` (which is the supported datatype for boolean (`ENUM('y','n')`) to
store in the database) before the temporary object is created.

fixes ref/IP/53248
2024-11-07 10:39:14 +01:00
raviks789
409962251b Fix sync rule preview in case of boolean properties 2024-11-07 10:24:19 +01:00
Eric Lippmann
340e3d550f
IcingaObjectMultiRelations: Set property modified to false when loaded from DB (#2907) 2024-11-07 10:24:04 +01:00
raviks789
c3fd4118d9 IcingaObjectMultiRelations: Set property modified to false when loaded from DB 2024-11-07 09:45:13 +01:00
Eric Lippmann
aa1df8d772
DirectorDatalist: Match column types to join tables in postgres by explicit type casting (#2916) 2024-11-07 09:44:49 +01:00
raviks789
6291179bcc DirectorDatalist: Match column types to join tables in postgres by explicit type casting 2024-11-07 09:41:27 +01:00
Eric Lippmann
2f888ba135
Fix typo in SNMP Data Fields example documentation (#2931) 2024-11-07 09:27:10 +01:00
Sam Banks
75acfad6fb Fixing typo 2024-11-06 14:03:37 +13:00
Eric Lippmann
0287012739
ImportSourceRestApi: Fix strlen deprecation (#2891)
fix #2889
2024-10-23 13:17:45 +02:00
raviks789
d946b0d316
ImportSourceRestApi: Fix strlen deprecation 2024-10-22 16:47:06 +02:00
dependabot[bot]
a6da978ec9
Bump peter-evans/repository-dispatch from 1 to 3 (#2929) 2024-10-22 14:05:05 +00:00
dependabot[bot]
d434a3da40
Bump peter-evans/repository-dispatch from 1 to 3
Bumps [peter-evans/repository-dispatch](https://github.com/peter-evans/repository-dispatch) from 1 to 3.
- [Release notes](https://github.com/peter-evans/repository-dispatch/releases)
- [Commits](https://github.com/peter-evans/repository-dispatch/compare/v1...v3)

---
updated-dependencies:
- dependency-name: peter-evans/repository-dispatch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-22 14:01:39 +00:00
dependabot[bot]
91147304a9
Bump actions/checkout from 3 to 4 (#2928) 2024-10-22 14:00:43 +00:00
dependabot[bot]
087439d0df
Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-22 13:51:32 +00:00
Eric Lippmann
21aaa77efb
Enable Dependabot for GitHub Actions (#2927) 2024-10-22 15:50:03 +02:00
Eric Lippmann
f21f12528e Enable Dependabot for GitHub Actions 2024-10-22 15:48:24 +02:00
Eric Lippmann
4ed60f527b
Fix PhpStan complaining about arithmetic operations between string and int (#2926) 2024-10-22 15:46:19 +02:00
Eric Lippmann
ce64888b81 Fix const visibility 2024-10-22 15:36:03 +02:00
Eric Lippmann
00985429c5 Fix PSR-12 violations 2024-10-22 14:31:14 +02:00
Eric Lippmann
48ad72f9c2 Use PSR-12 for phpcs 2024-10-22 14:23:16 +02:00
Eric Lippmann
28261d8a7f Fix PhpStan complaining about arithmetic operations between string and int 2024-10-22 14:19:55 +02:00
raviks789
853b6ceb84 Make unique constraints consistent across databases 2024-08-15 09:21:07 +02:00
raviks789
428a49f433 Remove gipfl/format package dependency
refs: #2847
2024-02-08 15:59:13 +01:00
Johannes Meyer
994030260a Prepare version 1.11.1 2024-02-07 14:02:02 +01:00
raviks789
e48ddd2f35 Restore services of service set on restoring service set
All the services which were under the service set when it was deleted must be restored when it is restored from activity log.
2024-02-07 13:40:33 +01:00
Johannes Meyer
6351df68ea
Support the rendering of service custom variable in Dependencies form (#2298)
Earlier the director did not support the rendering of service custom
variables for Parent Service in Dependencies form. Here, this issue is
fixed.

fixes #2289
2024-02-07 12:48:22 +01:00
raviks789
48ea3e46f9 IcingaDependencyForm: Make parent host and parent service element values removeable 2024-02-07 11:59:54 +01:00
Ravi Kumar Kempapura Srinivasa
1b74177d6d Support the rendering of service custom variable in Dependencies form 2024-02-07 11:59:52 +01:00