Thomas Gelf
e0589d3560
DbObject: allow to instantiate from Db row...
...
...even from outside. This breaks some legacy principles, but this class is
going to be separated into multiple components anyways. Also allow to directly
get a specific property
2017-07-14 13:21:42 +02:00
Thomas Gelf
fd99b6924e
SingleObjectApiHandler: attempt to move REST API
...
...and it's related logic away from controllers
2017-07-14 13:21:42 +02:00
Thomas Gelf
8fd60b87c0
SimpleController: remove functionality...
...
...as it is implemented elsewhere
2017-07-14 13:21:42 +02:00
Thomas Gelf
4f2a53dc90
MultiSelect: add table extension trait
2017-07-14 13:21:42 +02:00
Thomas Gelf
d84a3c68e0
QuickForm: no role and tabindex for fake submit
2017-07-14 13:21:42 +02:00
Thomas Gelf
84b56da899
TemplateTree: independent new implementation
2017-07-14 13:21:42 +02:00
Thomas Gelf
4f3f4e7f52
IcingaTemplateResolver: implement a reverse index
2017-07-14 13:21:42 +02:00
Thomas Gelf
51e8af2266
BaseTestCase: be precise on type hint
2017-07-14 13:21:42 +02:00
Thomas Gelf
2038ab28d7
HostsDashboard: introduce a new dashboard
2017-07-14 13:21:42 +02:00
Thomas Gelf
ac815b14b6
GroupMembershipResolver: fix SQL table alias
2017-07-14 13:21:42 +02:00
Thomas Gelf
18c0ce3c4f
IcingaObject: allow to prefetch related object...
...
...types
2017-07-14 13:21:42 +02:00
Thomas Gelf
875627ead7
ObjectApplyMatches: refactor host-only code
...
refs #897
2017-07-14 13:21:42 +02:00
Thomas Gelf
526492580c
GroupMembershipResolver: refactor from HostGroup
...
This is now a more generic implementation and can serve multiple object types
refs #897
2017-07-14 13:21:42 +02:00
Thomas Gelf
aa3a8987ba
HostGroupMembershipResolver: handle single groups
...
Formerly this worked only with apply rules, now this also respects single host/
group assignments.
fixes #832
2017-07-14 13:21:42 +02:00
Thomas Gelf
0e759fb2f6
Sync: do not fail on non-IcingaObject, fix typo
...
refs #832
2017-07-14 13:21:42 +02:00
Thomas Gelf
b558cc405b
BetaHostgroupRestriction: fix permissions, use...
...
...new resolved table
refs #832
2017-07-14 13:21:42 +02:00
Thomas Gelf
5ae7997f9d
Sync: tune membership resolver
...
Also fixes error on host creation
refs #832
2017-07-14 13:21:42 +02:00
Thomas Gelf
3cb38596c0
Dashboard: remove newline for phpcs
2017-07-14 13:21:42 +02:00
Thomas Gelf
45c93b3445
HostGroupMembershipResolver: first implementation
...
refs #832
2017-07-14 13:21:42 +02:00
Thomas Gelf
56af88ee3f
BetaHostgroupRestriction: fix single-host query
2017-07-14 13:21:42 +02:00
Thomas Gelf
02a3652c86
Restrictriction: add simple hostgroup restrictions
...
refs #832
2017-07-14 13:21:42 +02:00
Thomas Gelf
cde328eeed
CoreApi: add checkServiceAndWaitForResult()
...
Will be moved to icingadb soon, committing this to clean up my stash
2017-07-14 13:21:42 +02:00
Thomas Gelf
cb1804111f
Controllers: whitespace fixes
2017-07-14 13:21:42 +02:00
Thomas Gelf
b753341e64
ServicesDashboard: add a bunch of new Dashlets...
...
...and related tables
2017-07-14 13:21:42 +02:00
Thomas Gelf
69406d631c
ServicesOnHosts: add a new table
2017-07-14 13:21:42 +02:00
Thomas Gelf
d877949e60
Services/ObjectsController: rough integration...
...
...for multiselect on services
2017-07-14 13:21:42 +02:00
Thomas Gelf
200d00d092
SimpleController: new base controller based on ipl
2017-07-14 13:21:42 +02:00
Thomas Gelf
47bfb2d31d
IcingaObjectImports: add meaningful error...
...
...would have saved me some troubleshooting time
2017-07-14 13:21:42 +02:00
Markus Frosch
fa61805df2
QuickTable: Fix enforced filters for non-FilterAnd filters
...
We need to use the result of andFilter() as the new Filter.
The filter gets replaced by FilterAnd($oldFilter, $enforcedFilter) here.
2017-06-02 14:59:26 +02:00
Thomas Gelf
2237272b6b
SyncRule: do not allow to sync unless some...
...
...properties have been defined.
fixes #383
2017-05-03 11:24:22 +02:00
Thomas Gelf
f91dd5fa0e
PropertyModifierCombine: implementation, tests...
...
...and related changes with some documentation
fixes #922
2017-05-03 10:39:49 +02:00
Thomas Gelf
220d15c523
IcingaObjectFieldLoader: return early...
...
...and save CPU-cycles
2017-04-27 15:45:17 +02:00
Thomas Gelf
6de258730b
Sync: fix issues with PHP 5.3
...
Problem has been introduced with f885d90
fixes #906
2017-04-26 15:31:24 +02:00
Thomas Gelf
a63135be2a
ExtensibleSet: check for empty array
...
refs #906
2017-04-21 15:11:18 +02:00
Thomas Gelf
1887780363
PropertyModifierHook: add setSetting() method
...
This is required for our tests
refs #908
2017-04-20 12:49:30 +02:00
Thomas Gelf
c284dfef88
PropertyModifierArrayFilter: new modifier
...
fixes #908
2017-04-20 12:33:54 +02:00
Thomas Gelf
6234648a1f
IcingaEndpoint: work on Zone, not on the id
...
fixes #878
2017-03-29 12:52:54 +02:00
Thomas Gelf
58ba7f9f86
IcingaEndpoint: deploy to where it's Zone is...
...
...to be found
refs #463
2017-03-29 11:41:13 +02:00
Thomas Gelf
3714d2567b
IcingaEndpoint: fix indentation
2017-03-28 20:56:10 +02:00
Thomas Gelf
9f2070dced
IcingaEndpoint: provide getRestApiClient() helper
...
fixes #877
2017-03-28 18:08:27 +02:00
Thomas Gelf
f885d90a0a
Sync: also fetch columns used in filters only
...
Filters might otherwise in some circumstances not work as expected
fixes #876
2017-03-28 18:03:53 +02:00
Thomas Gelf
e1760724b8
AssignRenderer: hardcode int for specific filters
...
fixes #850
2017-03-15 15:00:38 +01:00
Thomas Gelf
afce89dc98
DirectorActivityLog: log username and ip
...
Logged values are now JSON-encoded
fixes #849
2017-03-15 12:02:08 +01:00
Thomas Gelf
da41e2f4db
AssignRenderer: improve/separate in-related code
...
fixes #844
2017-03-13 22:25:04 +01:00
Thomas Gelf
8b98113e83
CoreApi: just comments
2017-03-13 22:08:43 +01:00
Thomas Gelf
242bff4011
KickstartHelper: handle renamed master
...
* fix zone cleanup
* delete obsolete endpoints
* re-structure code
* remove obsolete Db helper
fixes #842
2017-03-13 22:06:10 +01:00
Thomas Gelf
cb9fff90ef
IcingaObject: add new static helper, expose...
...
...existing one
refs #842
2017-03-13 22:03:02 +01:00
Thomas Gelf
1b57171583
SyncUtils: allow special varnames, add tests
...
fixes #839
2017-03-09 10:57:37 +01:00
Thomas Gelf
4963b5fe54
SyncUtils: fix PHP 5.3 compatibility
2017-03-09 10:56:14 +01:00
Thomas Gelf
20ee7f6728
PropertyModifierLConfCustomVar: add array support
2017-03-09 08:54:39 +01:00
Thomas Gelf
ff4e953a11
PropertyModifierLConfCustomVar: trim left side
2017-03-09 08:52:19 +01:00
Thomas Gelf
a7ff250ecd
PropertyModifierLConfCustomVar: new modifier
...
fixes #837
2017-03-09 08:49:31 +01:00
Thomas Gelf
a48e0c6dda
AssignRenderer: test and fix contains rendering
...
fixes #803
2017-03-06 11:10:24 +01:00
Thomas Gelf
bff76dad8e
HostApplyMatches: fix matching for "contains"
...
fixes #803
2017-03-03 09:41:25 +01:00
Thomas Gelf
5842e40fb6
AssignRenderer: do not re-use json-encoded value
...
...as encoding in Icinga 2 differs
fixes #558
2017-03-03 09:24:15 +01:00
Tobias von der Krone
fd53224a58
Return data list name
...
Return the data list name instead of the id for the function
getDatalistName().
refs #621
2017-02-17 23:32:15 +01:00
Thomas Gelf
82e79c810f
IcingaServiceSetForm: redirect to host services...
...
...when adding a set to a single host
fixes #804
2017-02-17 16:35:13 +01:00
Thomas Gelf
099eca0d0b
IcingaCommandForm: allow to configure zones
...
fixes #802
2017-02-17 16:08:57 +01:00
Thomas Gelf
4860082d4b
host/services: show applied service sets
...
fixes #735
2017-02-17 08:44:08 +01:00
Thomas Gelf
25395656ce
CustomVariable: fix rendering for keys starting...
...
...with numbers
fixes #792
2017-02-15 12:50:27 +01:00
Thomas Gelf
2bc477daaa
Migration: do not require a Director\Db
2017-02-14 09:13:42 +01:00
Thomas Gelf
dc1d572229
HostController: override REST API handling
...
fixes #759
2017-02-08 12:38:14 +01:00
Thomas Gelf
bfde75a0a2
IcingaServiceSet: import DirectorOverrideTemplate
...
...when rendering services belonging to a set for a single host
fixes #776
2017-02-08 10:04:47 +01:00
Thomas Gelf
a3249350c2
CoreApi: remove space for compliance
2017-02-02 12:34:00 +01:00
Thomas Gelf
aa0c04d5e7
CoreApi: add a couple of helper methods
2017-01-31 10:03:58 +01:00
Thomas Gelf
6396fbc1ee
Migrations: table name should depend on module
...
refs #746
2017-01-24 16:41:43 +01:00
Thomas Gelf
0e2a056f49
Migrations: make it ready for use by other modules
...
fixes #746
2017-01-24 15:17:59 +01:00
Thomas Gelf
e1b420d4c4
CoreApi: allow to stream raw events
...
fixes #744
2017-01-24 11:14:12 +01:00
Thomas Gelf
d4b769b8d7
IcingaHost: do not render Endpoint and Zone...
...
...for disabled hosts
fixes #741
2017-01-24 09:45:32 +01:00
Thomas Gelf
5c158e708e
RestApiClient: re-add lost method
2017-01-19 22:49:51 +01:00
Thomas Gelf
c75b4fc6b0
DirectorDatafield: phpcs -> SpacingBeforeClose
2017-01-19 13:58:07 +01:00
Thomas Gelf
b08be6ecc0
DirectorDatafield: do not fail on missing command
...
refs #712
refs #731
2017-01-19 13:55:59 +01:00
Thomas Gelf
164b5bd93d
Fields: fix inheriting fields from commands
...
refs #712
refs #731
2017-01-19 13:50:50 +01:00
Thomas Gelf
c7d90481a4
AgentWizard: endpoints should be an array
...
refs #651 - but doesn't fix the issue
2017-01-18 14:31:54 +01:00
Thomas Gelf
44866c5176
IcingaObjectFieldLoader: force values related...
...
...to filtered data fields to be removed. This also changes field order and
places fields without filter first
2017-01-18 11:20:59 +01:00
Thomas Gelf
3bbf06d6b7
DirectorObjectForm: simplify method call
...
FieldLoader already has the object
2017-01-18 11:04:23 +01:00
Thomas Gelf
e4dbdbe808
Kickstart: unify strings
2017-01-16 17:30:22 +01:00
Thomas Gelf
bc67f603f9
KickstartDashlet: extend description
2017-01-16 11:41:08 +01:00
Thomas Gelf
d3e55ed5c9
Dashboards: add Infrastructure dashboard
...
fixes #14017
2017-01-16 08:50:18 +01:00
Thomas Gelf
b7a10d296c
phpcs: mostly new PSR-2 SpacingAfter/Before checks
2017-01-13 20:54:52 +01:00
Thomas Gelf
8cc99f76d0
tests: simplify bootstrap, enforce PSR-2
2017-01-13 20:10:35 +01:00
Thomas Gelf
2416007b24
ActionController: fix indentation
2017-01-13 19:59:11 +01:00
Thomas Gelf
9e771f2d5a
Fix phpcs complaints
2017-01-13 19:47:54 +01:00
Thomas Gelf
f6fca75eae
Acl: code cleanup, more comments
2017-01-13 18:59:04 +01:00
Thomas Gelf
1b71df732e
CubeLinks: cleanup, comments
2017-01-13 18:58:46 +01:00
Thomas Gelf
792e58abae
DirectorDatafield: just newlines
2017-01-13 16:39:35 +01:00
Thomas Gelf
f874a79bb4
IcingaObjectFieldLoader: no mandatory field on cmd
...
fixes #12644
2017-01-13 16:05:34 +01:00
Thomas Gelf
9b6eda4e97
IcingaObjectFieldLoader: cleanup, improve handling
2017-01-13 15:24:50 +01:00
Thomas Gelf
40ff51e487
IcingaTemplateResolver: separate concerns...
...
...and make helper accessible
2017-01-13 15:20:04 +01:00
Thomas Gelf
4a75804d86
various: change icinga.org to icinga.com
...
fixes #14001
2017-01-13 13:33:58 +01:00
Thomas Gelf
7a3a845570
Forms: try to give dev UI more hints on fluent...
...
...code
2017-01-13 13:15:01 +01:00
Thomas Gelf
9fc3957f11
QuickForm: fix broken submit button
2017-01-02 10:49:14 +01:00
Thomas Gelf
87f88bf0c7
DirectorObjectForm: allow to hook custom code...
...
...after fields have been added
2017-01-02 10:17:49 +01:00
Thomas Gelf
0a9ed6ff39
HostApplyMatches: allow usage for single hosts
...
refs #13849
2017-01-02 10:15:55 +01:00
Thomas Gelf
c9929f7b17
QuickForm: postpone default submit button creation
...
This gives more possibilities to override them at a late stage
2017-01-02 10:14:30 +01:00
Thomas Gelf
a395923aed
QuickTable: provide more hooks for special tables
2016-12-30 21:10:29 +01:00
Thomas Gelf
441f94bb37
PropertyModifierRegexpSplit: adjust name
2016-12-30 12:22:39 +01:00
Markus Frosch
4c576f9edc
PropertyModifierRegexSplit: Add regexp based split modifier
...
fixes #13841
2016-12-30 12:11:50 +01:00
Thomas Gelf
fae2a57ed5
Import: fix some type hints and comments
2016-12-30 10:20:24 +01:00
Thomas Gelf
a9874879dd
TemplateResolver: add new methods for stricter...
...
...path resolution. Also ships related tests
refs #13839
2016-12-30 10:15:25 +01:00