Commit Graph

29 Commits

Author SHA1 Message Date
Thomas Gelf 9f96b1d31b IcingaObjectFilterHelper: do not fail with no...
...involved parents (indirect inheritance with no child template)
2017-07-14 15:19:05 +02:00
Thomas Gelf e4d35d74e3 Migrations: fail on PHP 5.3.x
fixes #1006
2017-07-14 13:21:42 +02:00
Thomas Gelf 61e8621716 IcingaObjectFilterHelper: external filter helpers 2017-07-14 13:21:42 +02:00
Thomas Gelf 4860082d4b host/services: show applied service sets
fixes #735
2017-02-17 08:44:08 +01:00
Thomas Gelf 2bc477daaa Migration: do not require a Director\Db 2017-02-14 09:13:42 +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 b7a10d296c phpcs: mostly new PSR-2 SpacingAfter/Before checks 2017-01-13 20:54:52 +01:00
Thomas Gelf 2918ef555e schema: fix lost/diverged foreign keys
fixes #13591
2016-12-15 15:51:48 +01:00
Thomas Gelf ee0def7d2b Lots of files: make IDE users happy 2016-11-01 18:28:36 +01:00
Corentin Ardeois ddcfb09f58 Handle expressions only for apply objects
Expressions will be handled only if the object is an ApplyRule.
Only properties and custom variables are replaced.

refs #11976
2016-10-22 00:15:09 +00:00
Thomas Gelf 785746fb26 GroupMembershipCache: fix messed up properties
fixes #12887
2016-10-11 15:26:31 +00:00
Thomas Gelf 380fb0afe9 GroupMembershipCache: add missing property
fixes #12884
2016-10-10 19:15:34 +00:00
Thomas Gelf 1bc4a397a8 CustomVariableCache: optionally use digest()...
...for PostgreSQL in case pgcrypto is installed. Also add related hint to the
installation documentation
2016-10-09 12:43:04 +00:00
Thomas Gelf 6f12663756 PrefetchCache: lot's of improvements
This commit enables the prefetch cache per default when rendering configs
and adds the following features:

* prefetch all kinds of Icinga object inheritance (imports)
* prefetch group memberships
* prefetch custom variables
* render vars with the same checksum only once

Roughly measured performance boost with a large real-life config, renders three
times faster as it did before. Might be even more for those suffering from high
latencies when accessing their DB remotely and/or on a slow storage.

fixes #12876
2016-10-09 12:41:06 +00:00
Thomas Gelf 193e860beb Db\Migration: use query for OPTIMIZE, not exec
This is required as OPTIMIZE returns data
2016-07-26 13:43:18 +02:00
Thomas Gelf b09c4f8ef0 Db/Cache: first step to externalize lookup caches 2016-06-30 10:34:34 +02:00
Thomas Gelf f5f4bb1dfa Housekeeping: semicolon 2016-04-22 11:29:09 +02:00
Thomas Gelf 9c283e8bb6 Housekeeping: add getPendingTasks helper method 2016-04-22 11:12:29 +02:00
Thomas Gelf e30bafc62e various: code style 2016-03-20 16:38:00 +01:00
Thomas Gelf f77e9433d0 Cli: add housekeeping command 2016-03-20 16:32:04 +01:00
Thomas Gelf 5621b3d064 Housekeeping: lots of cleanup and new funcitonality 2016-03-20 16:17:45 +01:00
Thomas Gelf 9bd54f6af5 Houskeeping: allow to filter for pending tasks 2016-03-20 15:17:34 +01:00
Thomas Gelf 12e849d2a4 Housekeeping: wipe obsolete imported data 2016-03-20 15:10:28 +01:00
Thomas Gelf ca71bf5420 Migrations: add hasSchema helper method 2016-03-05 17:22:54 +01:00
Thomas Gelf 86f8830bcf Db/Housekeeping: prepare centralized housekeeping 2016-02-27 13:00:07 +01:00
Thomas Gelf 4bc5afb2f8 library/Director: fix PSR2 complaints 2016-02-26 11:58:37 +01:00
Thomas Gelf afe0bfb373 Migrations: run initial schema file...
...when no migrations have ever been applied
2016-02-17 15:42:34 +01:00
Thomas Gelf 84cbf522c9 Migrations: implement DB migration helpers 2016-02-08 22:33:28 +01:00