Commit Graph

1096 Commits

Author SHA1 Message Date
Thomas Gelf 8336d16d98 IcingaNotification: add related users and -_groups 2016-03-16 13:02:45 +01:00
Thomas Gelf 5861788420 IcingaObjectMultiRelations: new abstraction layer 2016-03-16 13:01:55 +01:00
Thomas Gelf 5b8dcc44db Import: one more protection against braindead "AI" 2016-03-16 11:52:47 +01:00
Thomas Gelf 6243fa33ff Db: and once again 2016-03-15 17:55:59 +01:00
Thomas Gelf 289939a1bb Db: still trying to work around AI 2016-03-15 17:48:37 +01:00
Thomas Gelf d7b0b18cdf Db: workaround for ZF super intelligent aliasing 2016-03-15 17:41:52 +01:00
Thomas Gelf 96e6a15655 Sync: implement filter-based properties 2016-03-15 17:28:49 +01:00
Thomas Gelf 0febe231ab QuickTable: use plain object renderer 2016-03-15 16:25:15 +01:00
Thomas Gelf c34f1c5411 ImportSourceLdap: field descriptions 2016-03-14 13:27:50 +01:00
Thomas Gelf 9404c68608 PropertyModifierFromAdSid: new property modifier 2016-03-14 12:46:44 +01:00
Thomas Gelf b4ed770651 Import: avoid stream resources for PostgreSQL
I'd like to change this back to binary data later on, but for now
the fix should be fine.

fixes #11321
2016-03-14 12:07:57 +01:00
Thomas Gelf ead2bf8fb0 Db: show pending deployments when never deployed 2016-03-13 22:27:47 +01:00
Thomas Gelf 471dea40ca Index: show notification summaries 2016-03-12 02:05:26 +01:00
Thomas Gelf 7209f162b2 IcingaNotificationForm: add times to main group 2016-03-12 01:44:28 +01:00
Thomas Gelf 23b1b008a8 ObjectController: REST API 422 was too strict 2016-03-12 01:36:58 +01:00
Thomas Gelf f971839f82 Notification: form and rendering improvements 2016-03-12 01:35:24 +01:00
Thomas Gelf 8b903486d3 IcingaObject: support merge for objects with no CV 2016-03-11 13:56:34 +01:00
Thomas Gelf b6dc8e5faf Db, DirectorObjectForm: support notifications 2016-03-11 09:07:22 +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 507dd176cc IcingaObject: fix lookup loop on lazy loading 2016-03-11 02:41:22 +01:00
Thomas Gelf 98ffe3628d DirectorObjectForm: commands -> templates, not obj 2016-03-10 21:14:20 +01:00
Thomas Gelf 47ef93cf91 IcingaNotification: fix loading for apply objects 2016-03-10 21:11:41 +01:00
Thomas Gelf d3957c276c application/forms: more object form abstraction 2016-03-10 20:44:12 +01:00
Thomas Gelf e8a28a12da DirectorObjectForm: replace state filter helpers 2016-03-10 19:32:29 +01:00
Thomas Gelf 5a5587eaab DirectorObjectForm: style 2016-03-10 19:06:02 +01:00
Thomas Gelf 251155e89a PropertyModifierExtractFromDN: fix labels 2016-03-10 15:08:32 +01:00
Thomas Gelf 32124bbba9 PropertyModifier: added split and join 2016-03-10 14:19:52 +01:00
Thomas Gelf 012a2bb577 PropertyModifierExtractFromDN: new modifier 2016-03-10 11:01:35 +01:00
Thomas Gelf be637551be application/forms: unify and clean up group forms 2016-03-09 20:55:26 +01:00
Thomas Gelf d8a3fb68bd IcingaObjectGroup: unify group object logic 2016-03-09 20:53:57 +01:00
Thomas Gelf a3c7e57333 DirectorObjectForm: fix typo 2016-03-09 19:37:50 +01:00
Thomas Gelf 9120db3f70 IcingaCommand: allow formatted timeout (e.g. 1m 4s)
refs #11340
2016-03-09 18:12:01 +01:00
Thomas Gelf faf40ec970 Db: style 2016-03-09 09:46:10 +01:00
Thomas Gelf 6105ae4386 FormExtensibleSet: fix add button 2016-03-09 09:45:06 +01:00
Thomas Gelf fda920d3ad DirectorObjectForm: inheritance error for arrays 2016-03-09 09:26:36 +01:00
vbalkanov a94843ef12 Db: Fix error in fetchActivityLogEntry($checksum)
Signed-off-by: Thomas Gelf <thomas@gelf.net>
2016-03-09 09:21:34 +01:00
Thomas Gelf 7cd2eb415f FormExtensibleSet: fix nested options (e.g. users) 2016-03-09 09:14:13 +01:00
Thomas Gelf 04f16008fe PropertyModifierMap: new list lookup modifier 2016-03-08 22:30:45 +01:00
Thomas Gelf 1d4b508ff3 different files: style 2016-03-08 22:30:12 +01:00
Thomas Gelf 1c395037c3 DbObject.php: forget autoinc on clone 2016-03-08 22:24:53 +01:00
Thomas Gelf 5b853879b0 PropertyModifierGetHostByName: new modifier 2016-03-08 22:10:50 +01:00
Thomas Gelf 66c8d7628f PropertyModifierHook: provide db connection 2016-03-08 22:09:59 +01:00
Thomas Gelf 23333f1b77 IcingaObject: unmodified object should be an object 2016-03-08 21:30:12 +01:00
Thomas Gelf ef50386cd7 CustomVariables: fix modification handling
Used to fail when stored and modified multiple consecutive times.
2016-03-08 21:28:54 +01:00
Thomas Gelf 2afacf3431 BaseTestCase: newObject helper method added 2016-03-08 21:25:27 +01:00
Thomas Gelf fdfedbae04 IcingaConfigHelper: render dictionaries sorted
Adjusted test scenario
2016-03-08 09:24:18 +01:00
Thomas Gelf 670b932526 IcingaObject: fix lezy-loading issues 2016-03-08 09:21:59 +01:00
Thomas Gelf 7ef09b99dc ObjectController: remove obsolete sprintf 2016-03-07 18:37:49 +01:00
Thomas Gelf e40c6d1f5e KickstartHelper: remove 'imports' workarounds 2016-03-07 18:37:11 +01:00
Thomas Gelf 572ac3ad4c DirectorObjectForm: lazy relations only for Icinga 2016-03-07 18:22:19 +01:00
Thomas Gelf f2d9e1a544 IcingaObject: fix key handling for unresolved props 2016-03-07 18:10:09 +01:00
Thomas Gelf b3a44bd7dd IcingaObject: fix 'empty' check for relation property 2016-03-07 18:07:36 +01:00
Thomas Gelf aee62754ce IcingaObject: fix resolution of lazy-loaded rels 2016-03-07 17:11:23 +01:00
Thomas Gelf 2826408c72 DirectorObjectForm: improve 'imports' element 2016-03-07 14:54:06 +01:00
Thomas Gelf da29da0065 forms/Icinga*: choose type first, then go on 2016-03-07 14:20:58 +01:00
Thomas Gelf aa53d57ec8 DirectorObjectForm: no default object_type 2016-03-07 14:14:52 +01:00
Thomas Gelf 8da2991e76 DirectorObjectForm: object knows redirect params 2016-03-07 13:41:30 +01:00
Thomas Gelf 4974d1a850 ObjectController: fix 'back' link style 2016-03-07 08:59:17 +01:00
Thomas Gelf 715c00e975 IcingaServiceAssignment: has no object name 2016-03-07 08:56:57 +01:00
Thomas Gelf f3ce5fab21 CoreApi: no special treatment for imports 2016-03-07 02:09:54 +01:00
Thomas Gelf 5350584bec IcingaObject: lazy-load related objects...
...if string name is given

fixes #11301
2016-03-07 02:06:04 +01:00
Thomas Gelf 378423ff10 IcingaObjectImports: implement lazy loading
reefs #11301
2016-03-07 02:05:10 +01:00
Thomas Gelf 529eb13118 IcingaEndpoint: fall back to name with no host
fixes #11315
2016-03-07 02:03:34 +01:00
Thomas Gelf e3699ac294 KickstartHelper: ignore empty host property 2016-03-07 01:10:17 +01:00
Thomas Gelf a1b7cd216b RestApiClient: catch 401 errors
fixes #11286
2016-03-06 21:43:32 +01:00
Thomas Gelf 218e67527b RestApiClient: fail without curl
fixes #10929
2016-03-06 21:12:59 +01:00
Thomas Gelf fd757054e7 ObjectController: enforce object only for REST API
refs #11315
2016-03-06 20:25:06 +01:00
Thomas Gelf 8cc7b0834e IcingaService: override setKey, allows for...
...different kind of links (host/service name VS id)
2016-03-06 19:13:58 +01:00
Thomas Gelf e09459625d DataTypeArray: allow to define custom arrays
refs #11317
2016-03-06 19:12:04 +01:00
Thomas Gelf cef7090666 IcingaServiceAssignment: new dedicated object type 2016-03-06 14:22:47 +01:00
Thomas Gelf 51916192a9 IcingaService: render assigned to host template 2016-03-06 14:21:18 +01:00
Thomas Gelf e5429ab1f3 ObjectController: improve object loading 2016-03-06 14:20:49 +01:00
Thomas Gelf fb43331379 IcingaObject: add getUrlParams helper 2016-03-06 14:20:05 +01:00
Thomas Gelf 24f1580c92 DirectorObjectForm: deletion check only when sent 2016-03-06 13:07:56 +01:00
Thomas Gelf cafd136232 DirectorObjectForm: get ids when resolving object
This formerly broke some forms
2016-03-06 10:27:37 +01:00
Thomas Gelf ad8dfeb31d DirectorObjectForm: add isObject helper 2016-03-06 09:47:42 +01:00
Thomas Gelf e0d00c3ae0 DirectorObjectForm: safety checks for non-imports 2016-03-06 09:11:29 +01:00
Thomas Gelf 70db23b8d1 FormSimpleNote: do not use "Note" from ZF
For compatibility reasons we'll not use 'note' anymore, it isn't part
of older Zend Framework versions

fixes #11297
2016-03-06 01:00:50 +01:00
Thomas Gelf ddba5c570c QuickForm: fix layout for html notes 2016-03-06 00:53:55 +01:00
Thomas Gelf 252093f794 PropertyModifier: clean them up, better descriptions 2016-03-06 00:37:03 +01:00
Thomas Gelf d8f721081e PropertyModifierHook: fix default name string 2016-03-06 00:16:44 +01:00
Thomas Gelf b07a3e724c Sync: quote binary checksums for PostgreSQL 2016-03-05 20:38:21 +01:00
Thomas Gelf 9ede46f839 Import: various fixes for PostgreSQL
refs #11315
2016-03-05 20:01:31 +01:00
Thomas Gelf 5268db6a61 ImportSourceCoreApi: fix host properties
refs #11315
2016-03-05 18:05:44 +01:00
Thomas Gelf 5520e311f1 ImportSourceCoreApi: replace legacy config lookup
fixes #11315
2016-03-05 17:55:03 +01:00
Thomas Gelf c4d69e1a88 ExtensibleSet: silently ignore null or empty strings 2016-03-05 17:25:23 +01:00
Thomas Gelf 3134630f86 ConfigHealthItemRenderer: use Migrations
fixes #11263
2016-03-05 17:23:40 +01:00
Thomas Gelf ca71bf5420 Migrations: add hasSchema helper method 2016-03-05 17:22:54 +01:00
Thomas Gelf f23c074143 DataTypeHook: also add getSetting helper method 2016-03-05 17:04:38 +01:00
Thomas Gelf d7da41b789 PropertyModifierSubstring: fix erraneous form fields 2016-03-05 17:04:13 +01:00
Thomas Gelf d0250dc312 PropertyModifierHook: add getSetting method 2016-03-05 17:03:31 +01:00
Thomas Gelf 0c579561ff PropertyModifierStripDomain: syntax 2016-03-05 17:03:08 +01:00
Thomas Gelf 8a733ee891 DirectorObjectForm: more descriptions 2016-03-05 16:22:07 +01:00
Thomas Gelf e8179318ab DirectorObjectForm: methods for extensible sets 2016-03-05 16:18:06 +01:00
Thomas Gelf da3d2a797f DirectorObjectForm: pass-through imports and groups 2016-03-05 16:15:37 +01:00
Thomas Gelf b5c09caff6 IcingaObject: support sets in hasBeenModified 2016-03-05 16:13:24 +01:00
Thomas Gelf f073b4d6a9 rectorObjectForm: catch errors when setting props 2016-03-05 15:58:24 +01:00
Thomas Gelf 6560864b4e DirectorObjectForm: wrap elements in dl's 2016-03-05 15:45:00 +01:00
Thomas Gelf f3e526f95f IcingaObjectImports: gracefully ignore empty members 2016-03-05 12:56:29 +01:00
Thomas Gelf 7498820700 QuickForm: add fake first submit button...
...and improve button handling. This is to make sure that form
submission will not erraneously use the wrong submit button.
2016-03-05 10:56:00 +01:00
Thomas Gelf 3460912fea IcingaObjectImports: fix behaviour, simplify usage 2016-03-05 10:49:37 +01:00
Thomas Gelf d2cd8c3939 KickstartHelper: fix import for nested zones
fixes #11301
2016-03-05 10:47:07 +01:00
Thomas Gelf 092bb8c3f6 IcingaObjectGroups: simplify setting groups 2016-03-05 10:46:12 +01:00
Thomas Gelf b6cb7389a1 QuickForm: add prefix path for local elements 2016-03-04 18:18:56 +01:00
Thomas Gelf 950745d4e9 Form/Element: introduce new element for sets 2016-03-04 18:08:37 +01:00
Thomas Gelf db9cc7d0f2 ObjectController: fix preview error for API user 2016-03-03 12:11:06 +01:00
Thomas Gelf 2fa9e7e998 ObjectController: fix clone link html/css 2016-03-03 09:45:33 +01:00
Thomas Gelf 9ae4553546 Db: indentation 2016-03-03 01:47:32 +01:00
Thomas Gelf 505d3434a2 Util: fix error for any resource type, like LDAP 2016-03-03 01:21:29 +01:00
Thomas Gelf 765ef97c80 IcingaConfig: fix related activity for PostgreSQL 2016-03-02 23:53:19 +01:00
Thomas Gelf 44b9142165 Db: add 'master' fallback for single-zone setups
This makes life easier for many users with simple setups as it would
silently use a single non-global zone as the preferred deployment
zone per default.

fixes #11228
2016-03-02 23:32:25 +01:00
Thomas Gelf 06452dc78e overview: highlight missing deployment endpoint 2016-03-02 22:51:50 +01:00
Thomas Gelf d24b2a9642 Db: add more information to no-endpoint error 2016-03-02 22:26:42 +01:00
Thomas Gelf eb957ad5e4 ShowController: move binary transformation to db 2016-03-02 21:54:38 +01:00
Thomas Gelf a8a1f5b310 Db: fetchActivityLogChecksumById non-binary fetch 2016-03-02 21:47:37 +01:00
Thomas Gelf dca0ea63af IcingaConfig: check for #655 only on MySQL
PostgreSQL binary checksums are always passed as hex
2016-03-02 21:40:35 +01:00
Thomas Gelf eecb3cddf0 Db: fetch less binary data 2016-03-02 21:40:12 +01:00
Thomas Gelf 3d4052fa0c Db: fix checksum collisions for Postgres tests 2016-03-02 20:46:36 +01:00
Thomas Gelf 4e677dbc56 Forms: used templates should not be deleted 2016-03-02 19:29:35 +01:00
Thomas Gelf 6f35e3cd11 IcingaConfig: protect against ZF #655 2016-03-02 17:12:09 +01:00
Thomas Gelf 2865efde3f Db: add idPgsql helper method 2016-03-02 13:42:37 +01:00
Thomas Gelf c6196ff450 ObjectController: beautify REST API response codes
It doesn't hurt when the code matches the documentation ;)
2016-03-01 11:24:24 +01:00
Thomas Gelf 4461f3c8aa IcingaUserField: add missing field class 2016-03-01 06:40:45 +01:00
Thomas Gelf a8768c7741 IcingaUser: users should provide fields 2016-03-01 04:26:28 +01:00
Thomas Gelf 1329d01280 ActionController: helper method for JSON errors 2016-03-01 04:26:02 +01:00
Thomas Gelf 8b3d72a04a library: code style 2016-03-01 04:23:31 +01:00
Thomas Gelf ed4f34272b Db: a few more PostgreSQL fixes 2016-03-01 04:20:39 +01:00
Thomas Gelf 1561ad376b DbObject: fix lastInsertId for PostgreSQL 2016-03-01 04:11:35 +01:00
Thomas Gelf 7f0673d18c QuickTable: strip sort when couting, fixes pgsql 2016-03-01 04:11:35 +01:00
Thomas Gelf c2347b6b97 IcingaNotification: use external sets 2016-02-29 23:46:58 +01:00
Thomas Gelf 29b1253bea IcingaObject: log former related set state 2016-02-29 22:54:46 +01:00
Thomas Gelf c9a7c9d085 IcingaObject/ExtensibleSet: support toPlainObject 2016-02-29 20:05:38 +01:00
Thomas Gelf 013cc1c67d ExtensibleSet: allow global "set" 2016-02-29 19:00:52 +01:00
Thomas Gelf f97e117994 IcingaObject: load and store related sets 2016-02-29 18:57:19 +01:00
Thomas Gelf 4b46330855 ExtensibleSet: do not quote values, adjust tests 2016-02-29 18:30:32 +01:00
Thomas Gelf dcd2823a73 ExtensibleSet: do not render empty arrays 2016-02-29 18:29:58 +01:00
Thomas Gelf 62c1aec917 IcingaUser: remove obsolete states stub 2016-02-29 18:29:18 +01:00
Thomas Gelf 47f20c93a3 IcingaObject: render related sets 2016-02-29 18:19:01 +01:00
Thomas Gelf 245e632f54 ExtensibleSet: fix tests 2016-02-29 17:37:01 +01:00
Thomas Gelf c25c7ee95b IcingaConfigHelper: allow to render key/op/value 2016-02-29 17:36:12 +01:00
Thomas Gelf 74c0fc2dc6 ExtensibleSet: finish db handling 2016-02-29 17:35:41 +01:00
Thomas Gelf f2233aeaff BaseTestCase: apply migrations to test db 2016-02-29 17:34:48 +01:00
Thomas Gelf 5427df52e8 State/TypeFilterSet: add new event filter sets 2016-02-29 15:40:18 +01:00
Thomas Gelf bbcac7a00d ExtensibleSet: allow to load stored data 2016-02-29 15:39:25 +01:00
Thomas Gelf cc70193a56 ExtensibleSet: add and test renderer 2016-02-29 12:38:31 +01:00
Thomas Gelf e70de0a4af ExtensibleSet: re-order public/protected methods 2016-02-29 12:25:35 +01:00
Thomas Gelf 23dd4721ec ExtensibleSet: basic implementation & tests 2016-02-29 12:23:08 +01:00
Thomas Gelf 526659f069 controllers: remove icon tags, use link classes 2016-02-29 12:20:57 +01:00
Thomas Gelf 489fb661d9 ObjectController: no "edit" tab, got to /<object> 2016-02-28 18:07:24 +01:00