Commit Graph

118 Commits

Author SHA1 Message Date
Markus Frosch ab169e4b78 DbObject: Add and use DuplicateKeyException 2016-11-28 15:32:41 +01:00
Thomas Gelf 87fe623d11 DbObject: help IDE, render newline after a...
...disabled v1 object
2016-11-04 19:52:21 +01:00
Thomas Gelf ef9ef52124 IcingaService: provide assignment properties
fixes #12731
fixes #13038
fixes #12073
2016-11-03 16:35:27 +01:00
Thomas Gelf ee0def7d2b Lots of files: make IDE users happy 2016-11-01 18:28:36 +01:00
Thomas Gelf 5921f4773f DbObject: one more protection when looking up...
...prefetched objects by name
2016-10-27 19:34:11 +00:00
Thomas Gelf 5b4e7509f4 Just a couple of phpcs complaints fixed 2016-10-22 06:08:52 +00:00
Corentin Ardeois e7bd4343b5 Add support for Apply for rules in services
Apply for rules are defined through `apply_for` property
Only Array custom variables will be eligible in apply_for dropdown.

API Example:
```bash
 ./director-curl POST director/service?name=my_service '{"apply_for": "for (checked_tcp_port in host.vars.checked_tcp_ports)" }'
 ```

 Will render as:
 ```
  apply Service "my_service" for (checked_tcp_port in host.vars.checked_tcp_ports) {
      ...
  }
  ```
Feature: https://dev.icinga.org/issues/11976

Depends-On: https://github.com/Icinga/icingaweb2-module-director/pull/20
refs #11976
2016-10-22 06:00:54 +00:00
Thomas Gelf 42aef0105d DbObject: exists() should respect prefetch...
...also for negative lookups

refs #12876
2016-10-08 19:34:59 +00:00
Thomas Gelf 749f035971 Db/IcingaObject: formatting & style 2016-10-05 18:05:59 +00:00
Thomas Gelf 6178ca8320 DbObject: allow to clear all caches 2016-06-30 12:07:33 +02:00
Thomas Gelf a17e0eeb23 DbObject: reset modified properties when loaded 2016-05-25 08:16:41 +02:00
Thomas Gelf 06f862618e ValueFilter: add a few custom filters 2016-05-19 15:00:34 +02:00
Thomas Gelf 6708df8a61 DbObject: allow to statically clearPrefetchCache 2016-05-02 10:24:32 +02:00
Thomas Gelf c879cd1e5e DbObject: compare numbers as string 2016-04-18 15:20:41 +02:00
Thomas Gelf 3c95fd7ec8 DbObject: NOTE -> recheck this 2016-03-24 13:32:11 +01:00
Thomas Gelf 2939f82758 DbObject: just a newline 2016-03-21 19:10:43 +01:00
Thomas Gelf e30bafc62e various: code style 2016-03-20 16:38:00 +01:00
Thomas Gelf fad7592eb9 DbObject: make sure we fetch unresolved relations 2016-03-20 14:47:50 +01:00
Thomas Gelf 9549df5833 DbObject: re-enable and extend prefetch support 2016-03-19 22:12:22 +01:00
Thomas Gelf 4af6b11f58 DbObject: provide friendler not-found errors 2016-03-16 21:41:00 +01:00
Thomas Gelf 4fd4f0f7ce DbObject: add prefetch stats for evaluation 2016-03-11 02:55:45 +01:00
Thomas Gelf c832ca4ade DbObject: reallySet should not risk magic lookups 2016-03-11 02:49:41 +01:00
Thomas Gelf 1c395037c3 DbObject.php: forget autoinc on clone 2016-03-08 22:24:53 +01:00
Thomas Gelf 2865efde3f Db: add idPgsql helper method 2016-03-02 13:42:37 +01:00
Thomas Gelf 1561ad376b DbObject: fix lastInsertId for PostgreSQL 2016-03-01 04:11:35 +01:00
Thomas Gelf 4bc5afb2f8 library/Director: fix PSR2 complaints 2016-02-26 11:58:37 +01:00
Thomas Gelf 14223712eb DbObject: fix storing object multiple times 2016-02-25 19:57:08 +01:00
Thomas Gelf 1d24efd103 DbObjectWithSettings: slightly speed up deletion 2016-02-17 21:41:22 +01:00
Thomas Gelf 4fd0054a59 DbObjectWithSettings: one more abstraction layer
Would be a candidate for traits, unfortunately we still support PHP 5.3
2016-02-17 21:23:24 +01:00
Thomas Gelf 88ffc6baf2 Icinga/DbObject: explizit destruction 2016-02-04 16:58:32 +01:00
Thomas Gelf a09e1d638c DbObject: temporarily disable prefetch cache 2015-12-18 16:54:46 +01:00
Thomas Gelf 81efcd0e8e DbObject: NotFoundError for "better" status codes 2015-12-10 11:44:27 +01:00
Thomas Gelf d055c68a5c DbObject: allow null components in multicol keys 2015-12-10 11:42:21 +01:00
Thomas Gelf b03f5c55ca DbObject: first attempt to seriously use prefetch 2015-12-03 19:43:08 +01:00
Thomas Gelf d623502f5f DbObject: show more debug info, until removal 2015-12-02 03:39:33 +01:00
Thomas Gelf a09c34a190 DbObject: no change on update is not an error 2015-12-02 02:44:10 +01:00
Thomas Gelf a94f5c5969 DbObject: relax primary key check 2015-12-02 02:38:19 +01:00
Thomas Gelf 41d6f47752 DbObject: allow to change primary key (not autoinc) 2015-11-30 21:03:46 +01:00
Thomas Gelf ccf47171fe DbObject: re-order method checks when setting 2015-11-02 09:23:41 +01:00
Thomas Gelf e317b7cf6d DbObject: add prefetch support 2015-10-28 22:31:10 +01:00
Thomas Gelf 82a893b06c DbObject: add loadWithAutoIncId 2015-10-26 12:05:37 +01:00
Thomas Gelf d7c2e7dacd DbObject: do not hide our exceptions 2015-10-15 20:01:18 +02:00
Thomas Gelf 7f9d1750c5 DbObject: new method getKeyParams() 2015-10-15 17:48:29 +02:00
Thomas Gelf ef46c9de56 DbObject: allow to create without props 2015-10-13 17:53:01 +02:00
Thomas Gelf e098f1bbb0 DbObject: improve exceptions 2015-10-13 17:47:32 +02:00
Thomas Gelf 6077ca6c75 DbObject: add listProperties() method 2015-09-14 16:27:48 +02:00
Thomas Gelf bf596d98ee DbObject: introduce onClone() hook 2015-08-03 12:54:40 +02:00
Thomas Gelf 417b59f6d6 DbObject: add a hint on getId, check later 2015-08-03 12:54:39 +02:00
Thomas Gelf d522cb8d2b DbObject: add hasConnection() helper method 2015-07-27 23:24:50 +02:00
Alexander Fuhr 9bc8d3882e DbObject: Fix the array to string conversion 2015-07-22 13:42:47 +02:00
Thomas Gelf 4881cd3860 DbObject: add missing call to onLoadFromDb 2015-07-21 15:12:23 +02:00
Thomas Gelf 33892f3298 DbObject: get rid of setDb. Fix race condition 2015-07-03 10:00:16 +02:00
Thomas Gelf 02c7a5c62c DbObject: don't ->getId() for ->id 2015-07-02 14:11:13 +02:00
Alexander Fuhr 4d2cbdea44 DbObject: Fix mixed key collision 2015-07-01 15:13:28 +02:00
Thomas Gelf 2021dc3479 DbObject: fix legacy method call 2015-06-25 08:45:36 +02:00
Alexander Fuhr 040dbdbb99 DbObject: Fix wrong type comparison 2015-06-23 16:02:54 +02:00
Thomas Gelf 676acf0740 Util: new helper class 2015-06-23 14:37:23 +02:00
Alexander Fuhr 2dcd1c2d78 DbObject: Add pg escape for checksum 2015-06-23 14:19:30 +02:00
Thomas Gelf 6c8213f4db DbObject: do not insert id=NULL, fails on pgsql 2015-06-23 13:05:02 +02:00
Alexander Fuhr 85b26041f9 DirectorObjectForm: Fix typo and so on 2015-06-17 11:18:44 +02:00
Alexander Fuhr 616892984d Groups: Add generic Groups support
resolves #9427
2015-06-16 17:58:47 +02:00
Thomas Gelf e4e31268c2 DbObject: add loadAll method 2015-06-11 22:48:07 +02:00
Thomas Gelf 24fff442e0 DbObject: separate setting db properties 2015-06-11 22:00:36 +02:00
Thomas Gelf c8576ea2db Revert "DbObject: do not treat an empty string as null"
This was needed as we get empty strings from form fields. Should be
fixed in our forms, restoring former behavior right now.

This reverts commit 03ad5f7376.
2015-06-11 08:11:15 +02:00
Thomas Gelf 03ad5f7376 DbObject: do not treat an empty string as null 2015-06-10 19:12:07 +02:00
Alexander Fuhr 43982b6c3a DbObject: fix multicolumn primary keys 2015-06-02 17:27:36 +02:00
Thomas Gelf ca3398247e Activity log: initial basic implementation
fixes #9167
2015-04-24 15:57:01 +02:00
Thomas Gelf 0d0fcc973b Initial tables and related base classes
Still VERY simple

fixes #9135
2015-04-24 14:27:22 +02:00