257 Commits

Author SHA1 Message Date
raviks789
8d9ecf3b0a
Apply relevant restrictions on REST url endpoints
The following url end points should apply relevant restrictions to filter out objects and show correct HTTP status code:
- icingaweb2/director/service, if the host name is left out of the query (Example: icingaweb2/director/service?name=service-name)
- icingaweb2/directore/notification
- icingaweb2/director/serviceset
- icingaweb2/director/scheduled-downtime
2025-03-26 11:12:15 +01:00
raviks789
2e1cac6a58
Fix: Support data type change of columns ts_last_attempt and ts_last_error from timestamp to bigint 2025-03-25 16:31:54 +01:00
Ravi Kumar Kempapura Srinivasa
f1e54348c8 Remove gipfl/format package dependency 2024-02-07 15:01:25 +01:00
Thomas Gelf
97ee1ea30b ObjectSetTable: improve formatting
fixes #2648
2022-11-03 10:26:11 +01:00
raviks789
11b0ab8ec4 Reset Limit count and offset for $table in HostController::servicesAction
The limit in ObjectsTable::prepareQuery() limits the number of services shown in HostController::servicesAction.
But this limit is required for pagination in ServicesController. Hence, reset the limit when this query is used
in HostController::servicesAction().
2022-10-07 09:58:59 +02:00
Thomas Gelf
ebb08aceae ObjectSetTable: fix for PgSQL when not in branch 2022-09-21 11:00:07 +02:00
Thomas Gelf
47488d138e ObjectSetTable: fix a PostgreSQL issue 2022-09-20 15:27:16 +02:00
Thomas Gelf
59d62d0ff9 ObjectSetTable: branch support 2022-09-20 12:53:00 +02:00
Thomas Gelf
131d4e27ba TableWithBranchSupport: provide setter 2022-09-20 12:20:44 +02:00
Thomas Gelf
4d2f285c01 IcingaServiceSetServiceTable: branch classes 2022-09-20 12:19:31 +02:00
Thomas Gelf
4d8e3f6db7 ServiceSetQueryBuilder: new query builder 2022-09-20 12:19:21 +02:00
Thomas Gelf
b35b6b84cc TableWithBranchSupport: do not branchify relations 2022-09-20 12:03:00 +02:00
Thomas Gelf
28c149efed IcingaServiceSetServiceTable: refactor link logic 2022-08-31 14:45:28 +02:00
Thomas Gelf
d433631174 TableWithBranchSupport: new trait 2022-08-31 14:45:28 +02:00
Thomas Gelf
b2afca2496 Sync: support branches 2022-08-31 14:45:28 +02:00
Thomas Gelf
37954e0aa6 BranchActivityTable: show object name 2022-07-22 14:32:39 +02:00
Thomas Gelf
431d0cfe75 ObjectCommand: add --resolve-services 2022-07-20 16:42:26 +02:00
Thomas Gelf
0796635132 DbHelpers, Connection: improve escapeBinary logic
hex-style for MySQL too, support array values
2022-07-01 08:39:12 +02:00
moreamazingnick
83cc12944d
DirectorActivityLog: fix empty activity log exception
fixes #2505: empty activity log causes exception
fixes #2506
2022-03-28 14:52:46 +02:00
Thomas Gelf
ecf7bce482 ActivityLogTable: use more space, hover texts 2022-02-09 15:43:09 +01:00
Thomas Gelf
8bcc20e004 ActivityLogTable: support remarks
fixes #2471
2022-02-08 08:58:34 +01:00
Johannes Meyer
420dfcbdbf Avoid passing non-string args to ctype_*() functions 2022-01-14 11:31:55 +01:00
Thomas Gelf
36babe65f7 IcingaServiceSetServiceTable: use host uuid for...
...Set Member related to host
2021-12-23 13:46:37 +01:00
Thomas Gelf
212596a41e ObjectSetTable: drop name from link 2021-12-23 10:07:07 +01:00
Thomas Gelf
27e5e72f41 ObjectsTable: do not apply restrictions to objects
...created in the current config branch
2021-12-17 17:16:50 +01:00
Thomas Gelf
f77d5b8d0c HostController: show services for hosts created...
...in a branch
2021-12-17 13:57:18 +01:00
Thomas Gelf
e3cae7c20a ObjectsTable: remove outdated/duplicate method 2021-12-17 13:56:37 +01:00
Thomas Gelf
376344257c DbObjectStore: inject into DbObject for related...
...objects in a branch
2021-12-17 12:51:24 +01:00
Thomas Gelf
b07ee0dd8e TemplatesTable: use uuid for history link 2021-12-14 10:42:48 +01:00
Thomas Gelf
68cf42490f Importsource: some more branch-related hints 2021-12-14 08:36:08 +01:00
Thomas Gelf
eeaf3a84e3 ActivityLogTable: no text search for action
fixes #2057
2021-12-13 14:47:30 +01:00
Thomas Gelf
27abbb59a0 ObjectsTableService: replace HostServiceTable
This removes duplicate logic and shows services created in config
branches
2021-12-13 14:11:35 +01:00
Thomas Gelf
100bc4b777 library: php8-related cleanup 2021-12-06 23:03:06 +01:00
Thomas Gelf
257537d022 DbUtil: helper for pgsql binary resource handling 2021-12-06 22:11:31 +01:00
Thomas Gelf
37db546a0d ObjectsTableHostTemplateChoice: fix method params 2021-12-01 23:50:29 +01:00
Thomas Gelf
215988c3ca library: some hints for PHP 8.1 2021-12-01 23:50:04 +01:00
Ravi Kumar Kempapura Srinivasa
388c79e430 Add uuid to service sets. 2021-11-28 11:15:31 +01:00
Thomas Gelf
82656de2c2 Director: some PHP 8.1-related changes 2021-11-28 11:13:08 +01:00
Thomas Gelf
6786cc768f Director: some fixes for PHP v8.1
refs #2435
2021-11-24 11:56:18 +01:00
Thomas Gelf
3d528dc3af ObjectsTableEndpoint: provide UUID 2021-10-18 17:32:58 +02:00
Thomas Gelf
2d79281583 ApplyRulesTable: use UUIDs
refs #2411
2021-10-18 10:04:28 +02:00
Thomas Gelf
fe97970dc3 IcingaCommandArgumentTable: branch-specific fixes 2021-10-05 23:33:30 +02:00
Thomas Gelf
97b2f6c946 CommandController: branch support, argument table 2021-10-05 23:33:30 +02:00
Thomas Gelf
2dc83478ae IcingaHostServiceTable: support Branches 2021-10-05 23:33:30 +02:00
Thomas Gelf
84c299a7db Table/Object*: use UUIDs 2021-10-05 23:33:30 +02:00
Thomas Gelf
1845b43314 ObjectsTable: we have UUIDs now, new column names 2021-10-05 23:33:30 +02:00
Thomas Gelf
70c0b8f247 BranchActivityTable: new columns, better query 2021-10-05 23:33:30 +02:00
Thomas Gelf
378ef5d686 ObjectsTable, Infra: fix method signature
fixes #2395
2021-09-23 07:32:35 +02:00
Thomas Gelf
290e34a8ca ObjectsTable: add branchUuid, fail-safe 2021-08-23 09:00:26 +02:00
Thomas Gelf
1470a134f4 Branch support: initial import 2021-08-16 11:43:09 +02:00