28 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
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
d433631174 TableWithBranchSupport: new trait 2022-08-31 14:45:28 +02: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
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
1845b43314 ObjectsTable: we have UUIDs now, new column names 2021-10-05 23:33:30 +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
Thomas Gelf
606d71501e Use ipl, try to keep dipl compatibility 2019-09-11 23:02:39 +02:00
Thomas Gelf
dbc4699042 Merge branch 'next' 2019-09-11 22:44:27 +02:00
Thomas Gelf
73227bda0f ObjectsTable: style 2019-09-11 22:40:56 +02:00
Thomas Gelf
e1565c9990 Revert "Merge branch 'next'"
This reverts commit f45f925e5e1dbfec627345868d0dd56abc77c4f1, reversing
changes made to 90c07943e4173ef8e32dae5087203f5a712f8077.

This was too early, need to check for incubator
2019-09-06 09:54:03 +02:00
Thomas Gelf
17f8ef1dd0 Use ipl, try to keep dipl compatibility 2019-09-06 09:48:11 +02:00
Thomas Gelf
c72b51c538 ScheduledDowntimes: a bunch of url-related changes 2019-04-11 02:34:14 +02:00
Thomas Gelf
4f8c60bb46 various: cleanup, sop using deprecated methods 2018-05-05 00:24:49 +02:00
Thomas Gelf
7525a7b0f6 ObjectsTable: allow to filter any type by name
Not used yet, will make it easy to create restrictions like
director/host/filter-by-name = "*.dev.example.com"
2018-02-25 18:15:12 +01:00
Thomas Gelf
ad88207d84 ObjectsTable: cleanup 2018-02-25 18:08:40 +01:00
Thomas Gelf
d1e116a5a1 ipl: rename to dipl
fixes #1217
2017-10-09 15:23:27 +02:00
Thomas Gelf
e950bb3395 Objects: ship templates via REST API
fixes #1185
2017-09-18 10:23:36 +02:00
Thomas Gelf
014963f96c Tables: get rid of assemble workaround 2017-07-20 14:58:23 +02:00
Thomas Gelf
1df9ef13d9 ObjectsTable: show 100 lines instead of 25 2017-07-20 08:28:38 +02:00
Thomas Gelf
db31f337f1 Table: override inherited assemble method
This is an ugly workaround for now, need to find a better solution
2017-07-19 19:07:42 +02:00
Thomas Gelf
2691081349 HosttemplateController: introduce usage view
fixes #884
2017-07-14 13:21:42 +02:00
Thomas Gelf
f8ffc13642 Tables: use 'disabled' property 2017-07-14 13:21:42 +02:00
Thomas Gelf
9845cddcb4 QureyBasedTable: move to ipl 2017-07-14 13:21:42 +02:00
Thomas Gelf
f3a11213f7 cs fixes 2017-07-14 13:21:42 +02:00
Thomas Gelf
cc2cb11cf3 ObjectsTable: new generic table 2017-07-14 13:21:42 +02:00