Thomas Gelf
5f333b0ea7
Import: always store dictionaries ordered
2015-11-02 09:25:39 +01:00
Thomas Gelf
b7cd26b597
DirectorObjectForm: new helper method hasObject()
2015-11-02 09:24:58 +01:00
Thomas Gelf
ccf47171fe
DbObject: re-order method checks when setting
2015-11-02 09:23:41 +01:00
Thomas Gelf
7370bf34bb
SyncRule: remove obsolete commented code
2015-11-02 09:22:32 +01:00
Thomas Gelf
857acd65b2
SyncProperty: remove obsolete comment
2015-11-02 09:11:40 +01:00
Thomas Gelf
e73413fc25
SyncProperty: new setter method, fix tabs
2015-11-02 09:11:13 +01:00
Thomas Gelf
9d111d0db0
CustomVariableDictionary: always store an object
2015-11-01 00:57:02 +01:00
Thomas Gelf
0c121cf4fe
CustomVariableString: immediate false for non-strings
2015-11-01 00:54:43 +01:00
Thomas Gelf
a2e061cae3
QuickTable: allow for more flexibility with classes
2015-10-30 23:36:17 +01:00
Thomas Gelf
b41ca7826e
Sync: allow to determine expected modifications
2015-10-30 23:34:27 +01:00
Thomas Gelf
d25e28c137
Forms: no dtdd wrapper for fieldsets
2015-10-29 17:21:52 +01:00
Thomas Gelf
139b52079f
Import: allow for simple objects (hashes, dicts)
2015-10-28 22:31:37 +01:00
Thomas Gelf
e317b7cf6d
DbObject: add prefetch support
2015-10-28 22:31:10 +01:00
Thomas Gelf
1d2cc2b12d
QuickTable: quick & dirty way to render objects
2015-10-28 22:29:25 +01:00
Thomas Gelf
06f9477bc1
IcingaCommand: fix magic PluginDir prefix
2015-10-28 22:28:43 +01:00
Thomas Gelf
7298092e97
CustomVariable: add support for creating new types
2015-10-28 22:27:53 +01:00
Thomas Gelf
5886765e37
CustomVariableNumber: new type for ints and floats
2015-10-28 22:27:24 +01:00
Thomas Gelf
51813557c9
CustomVariableBoolean: add a new custom var type
2015-10-28 22:27:01 +01:00
Thomas Gelf
73b01b8cb5
CustomVariableDictionary: fix storage and more
2015-10-28 22:26:38 +01:00
Thomas Gelf
353427fa1a
CustomVariableNull: store to db as json
2015-10-28 22:24:34 +01:00
Thomas Gelf
82a893b06c
DbObject: add loadWithAutoIncId
2015-10-26 12:05:37 +01:00
Thomas Gelf
11892d3e78
DirectorActivityLog: imports, not groups
2015-10-26 11:42:38 +01:00
Thomas Gelf
1bbd07efe1
Import: use IcingaException, add a TODO
2015-10-21 07:45:08 +02:00
Thomas Gelf
9ec520c788
Sync: start code cleanup
...
We want to store sync history and show sync previews, code needs to
be prepared for those tasks
2015-10-20 23:29:29 +02:00
Thomas Gelf
29206188bf
ActionController: provide api to all controllers
2015-10-20 22:47:06 +02:00
Thomas Gelf
62a0f5f9c2
Sync: indentation
2015-10-20 22:22:58 +02:00
Thomas Gelf
fc5976b5f8
Sync: use IcingaException
2015-10-20 22:21:48 +02:00
Thomas Gelf
ccf8e6fa78
IcingaCommandArgument: first rendering implementation
2015-10-16 18:42:38 +02:00
Thomas Gelf
0a0015f96a
DirectorDeploymentLog: adjust object to fit schema
2015-10-16 18:42:11 +02:00
Thomas Gelf
72c76134f6
CoreApi: add getStatus() method
2015-10-16 18:41:53 +02:00
Thomas Gelf
e833d7be76
IcingaObject: just a newline
2015-10-16 18:41:07 +02:00
Thomas Gelf
a1aea38cb4
IcingaCommand: extend input handling, be flexible
2015-10-16 18:39:13 +02:00
Thomas Gelf
7832cf85f1
IcingaArguments: new helper object, readonly
2015-10-16 18:38:28 +02:00
Thomas Gelf
249b849b08
IcingaConfigHelper: introduce alreadyRendered()
2015-10-16 18:36:43 +02:00
Thomas Gelf
371589a2a7
IcingaCommand: render command as an array
2015-10-16 18:13:42 +02:00
Thomas Gelf
062cd77496
CoreApi: store deployed config checksum
2015-10-16 18:12:47 +02:00
Thomas Gelf
776cd98253
CoreApi: provide active stage name
2015-10-16 18:08:18 +02:00
Thomas Gelf
bbf7796b53
QuickTable: allow to provide pre-row classes
2015-10-16 18:04:12 +02:00
Thomas Gelf
071cf627d2
DirectorObjectForm: implement generic deletion
2015-10-15 23:56:25 +02:00
Thomas Gelf
4d72e315f2
DirectorObjectForm: add vars to fields group for now
2015-10-15 23:55:56 +02:00
Thomas Gelf
f122fc3eb1
ObjectController: remove legacy delete tab
2015-10-15 23:55:13 +02:00
Thomas Gelf
0a5addabd1
DirectorObjectForm: group exection options, style
2015-10-15 23:52:31 +02:00
Thomas Gelf
dc41842118
DirectorObjectForm: add store/delete button helper
2015-10-15 23:51:29 +02:00
Thomas Gelf
b376527c44
ObjectController: formatting
2015-10-15 23:49:34 +02:00
Thomas Gelf
c4f8425634
IcingaHost: add enumProperties, test for now
2015-10-15 23:48:36 +02:00
Thomas Gelf
988eb4bf77
DirectorObjectForm: redirect to newly created objects
2015-10-15 23:47:05 +02:00
Thomas Gelf
eea642bd1c
ImortSourceLdap: remove test columns
2015-10-15 23:45:30 +02:00
Thomas Gelf
51ee2a1fa5
QuickForm: add buttons to group
...
TODO: create list of buttons, get rid of hardcoded delete
2015-10-15 23:44:37 +02:00
Thomas Gelf
439d4ebc3d
IcingaConfg: make use of new ShipConfigFiles hook
2015-10-15 20:35:21 +02:00
Thomas Gelf
81c6920b93
ShipConfigFilesHook: new hook
...
Allows other modules to ship additional files to/through Icinga 2.
2015-10-15 20:32:15 +02:00
Thomas Gelf
e7687d226a
DirectorObjectForm: provide delete button
2015-10-15 20:16:07 +02:00
Thomas Gelf
48a0389c80
QuickForm: remove most decorators from submit
2015-10-15 20:11:40 +02:00
Thomas Gelf
4693be3aa2
DirectorObjectForm: add fields to display group
2015-10-15 20:05:18 +02:00
Thomas Gelf
fc748ff80a
IcingaConfig::configFile(): allow custom suffix
2015-10-15 20:02:44 +02:00
Thomas Gelf
d7c2e7dacd
DbObject: do not hide our exceptions
2015-10-15 20:01:18 +02:00
Thomas Gelf
b7d4b3f1a2
QuickForm: set decorators for form errors
2015-10-15 17:53:29 +02:00
Thomas Gelf
7693192e66
QuickForm: catch Exceptions from success handlers
2015-10-15 17:52:56 +02:00
Thomas Gelf
0544be3aec
QuickForm: allow params for successUrl
2015-10-15 17:52:02 +02:00
Thomas Gelf
7f9d1750c5
DbObject: new method getKeyParams()
2015-10-15 17:48:29 +02:00
Thomas Gelf
45e6cb9944
ObjectController: correctly load fields
2015-10-13 17:58:50 +02:00
Thomas Gelf
ef46c9de56
DbObject: allow to create without props
2015-10-13 17:53:01 +02:00
Thomas Gelf
a39c8c3280
QuickForm: add getSuccessUrl()
2015-10-13 17:48:16 +02:00
Thomas Gelf
e098f1bbb0
DbObject: improve exceptions
2015-10-13 17:47:32 +02:00
Thomas Gelf
5a244e209a
QuickForm: fix ampersand for form actions
2015-10-13 17:29:20 +02:00
Thomas Gelf
be98cf5133
QuickForm: return sent value only when sent
2015-10-13 17:28:26 +02:00
Thomas Gelf
7c081c12ce
QuickTable: use one more class, thanks web 2.0.0
2015-10-13 17:21:39 +02:00
Thomas Gelf
346eb597ee
ActionController: add deployments to config tabs
2015-09-30 08:50:59 +02:00
Thomas Gelf
416cf848ab
inspect: studio-like tree
2015-09-30 08:41:51 +02:00
Thomas Gelf
9ea08647dc
RestApiClient: handle non-json errors
2015-09-29 19:01:25 +02:00
Thomas Gelf
a0c418a952
Db: don't collect states we learned about
...
Might be reverted later on, but is the safer choice for now
2015-09-29 18:53:53 +02:00
Thomas Gelf
386a7ee90d
DirectorObjectForm: gracefully handle missing...
...
...data type implementations. Happens when fields have been configured
with data types provided by modules that have been disabled later on.
2015-09-29 18:47:49 +02:00
Thomas Gelf
7b6245dc0a
ActionController: remove legacy syncproperty tab
2015-09-14 16:55:19 +02:00
Thomas Gelf
1a553df185
ObjectController: allow to edit fields
2015-09-14 16:54:43 +02:00
Thomas Gelf
5cbe07e95b
ActionController: rename Import "run" to "history"
2015-09-14 16:53:15 +02:00
Thomas Gelf
bda3ab311d
DirectorObjectForm: extended hint for imports
2015-09-14 16:52:18 +02:00
Thomas Gelf
6077ca6c75
DbObject: add listProperties() method
2015-09-14 16:27:48 +02:00
Thomas Gelf
7bc59c010e
QuickTable: allow to enforce filters
2015-09-14 16:26:15 +02:00
Thomas Gelf
68677e610f
Core: import basic api implementation
2015-09-14 16:23:43 +02:00
Thomas Gelf
3c5103e077
ConfigDiff: new diff lib based on PHP-FineDiff
2015-09-14 13:37:27 +02:00
Thomas Gelf
3c0fbe11cd
IcingaCommandField: new object
2015-08-29 01:13:53 +02:00
Thomas Gelf
4d34b2188e
IcingaObject: allow to load by type with prefix
2015-08-29 01:12:04 +02:00
Thomas Gelf
dd06be4a58
Import: handle empty sets
2015-08-29 01:10:56 +02:00
Thomas Gelf
38c4c06c77
DataTypeSqlQuery: temporarily hardcode UTF8
2015-08-29 01:10:14 +02:00
Thomas Gelf
ff80463d76
DataTypeSqlQuery: disable buggy cache
2015-08-29 01:08:45 +02:00
Thomas Gelf
ce0a982821
DirectorDeploymentLog: new object
2015-08-29 01:07:26 +02:00
Thomas Gelf
f92689efd7
Db: implement getUncollectedDeployments()
2015-08-29 01:05:23 +02:00
Thomas Gelf
c0043c26b0
IcingaObject: no zones right now
2015-08-29 01:04:28 +02:00
Thomas Gelf
0507a65e0b
IcingaObject: log changes before storing relations
2015-08-29 01:03:34 +02:00
Thomas Gelf
8711e877ab
IcingaHost: add display_name
2015-08-29 00:05:39 +02:00
Thomas Gelf
693837004a
Sync: allow to enforce array format
2015-08-28 23:56:54 +02:00
Thomas Gelf
0b4bb9979b
Import: work with data formats
2015-08-28 23:53:56 +02:00
Thomas Gelf
8ccad501e8
Sync: retrieve import format
2015-08-28 23:52:02 +02:00
Thomas Gelf
c456f79c4c
Import: do nothing if matching last import
2015-08-28 23:48:14 +02:00
Thomas Gelf
9c66661cdf
Db: implement getLastImportedChecksum()
2015-08-28 23:46:40 +02:00
Thomas Gelf
7b1fda25bd
IcingaCommand: prepare argument handling
2015-08-28 23:44:26 +02:00
Thomas Gelf
1936ad8997
CustomVariables: improve modification handling
2015-08-28 23:42:40 +02:00
Thomas Gelf
ae9e4300c8
CustomVariableDictionary: our 'value' is an array
2015-08-28 23:39:14 +02:00
Thomas Gelf
8b11c07c65
objects/tree: generic template for all object types
2015-08-28 23:36:07 +02:00
Thomas Gelf
053854e2c6
CustomVariable: improve modification handling
2015-08-28 18:37:17 +02:00
Thomas Gelf
b9a4820515
CustomVariable: fix nested vars
2015-08-28 18:35:42 +02:00
Thomas Gelf
5d363374ad
CustomVariableDictionary: implement getValue
2015-08-28 18:30:53 +02:00
Thomas Gelf
e912b566a2
CustomVariableArray: implement get(Db)Value()
2015-08-28 18:26:51 +02:00
Thomas Gelf
a16fd24cac
IcingaObject: intercept set() for sub-objects
2015-08-28 18:23:13 +02:00
Thomas Gelf
3757c0fb85
IcingaObject: type should not be private
2015-08-28 18:21:04 +02:00
Thomas Gelf
f81f6167d5
CustomVariable: store format on modification
2015-08-28 18:17:21 +02:00
Thomas Gelf
0c3e316bb9
CustomVariables: cast foreign id to int
2015-08-28 18:16:36 +02:00
Thomas Gelf
7e4067d265
CustomVariableNull: allow for null vars
2015-08-28 18:13:01 +02:00
Thomas Gelf
8a72bbf513
Db: only use use'd classes
2015-08-28 18:02:44 +02:00
Thomas Gelf
3da616aa96
ObjectsController: directly set filterEditor
2015-08-28 18:00:34 +02:00
Thomas Gelf
b204e7e6a0
ActionController: remove obsolete code
2015-08-28 17:53:35 +02:00
Thomas Gelf
9d921eece6
IcingaConfig: (temp) disable zones
2015-08-28 17:52:19 +02:00
Thomas Gelf
e8ae1235fd
QuickTable: show array values on multiple lines
...
NB: Should we better json_encode?
2015-08-28 17:31:31 +02:00
Thomas Gelf
6ff5dd323a
DirectorObjectForm: work even with no templates
2015-08-28 17:20:12 +02:00
Thomas Gelf
cdfac373fb
ImportSourceLdap: new import source
2015-08-28 17:16:58 +02:00
Thomas Gelf
3f176de03a
DirectorActivityLog: handle sub-objects
2015-08-28 17:14:59 +02:00
Thomas Gelf
9f7e97d80a
IcingaObjectGroups: history-related modifications
2015-08-28 17:12:46 +02:00
Thomas Gelf
3811c1612b
IcingaObjectImports: attempt to fix history
2015-08-28 17:11:51 +02:00
Thomas Gelf
3d38a6fec9
DirectorObjectForm: do not show structured vars
2015-08-28 17:01:57 +02:00
Thomas Gelf
45755f7a63
Util: add methods for Ldap resources
2015-08-28 16:57:40 +02:00
Thomas Gelf
3ddd6291e4
ObjectController: add missing title
2015-08-28 16:51:41 +02:00
Thomas Gelf
5d643534ad
QuickTable: gracefully handle missing columns
2015-08-28 16:49:48 +02:00
Thomas Gelf
abd17e8be7
Sync: initial work to support more object types
2015-08-04 19:52:02 +02:00
Thomas Gelf
e9d9a435b9
IcingaObject: add more class loading helpers
2015-08-04 19:26:53 +02:00
Thomas Gelf
0aae476498
Sync: handle 'import' property on creation
2015-08-03 15:12:46 +02:00
Thomas Gelf
9771e04ee0
IcingaCommandArgument: adjust schema column name
2015-08-03 13:53:58 +02:00
Thomas Gelf
be99769fc6
DirectorObjectForm: fields not required if inherited
2015-08-03 13:51:55 +02:00
Thomas Gelf
8eb2bd7701
IcingaObject: prepare generic "arguments" support
2015-08-03 13:43:30 +02:00
Thomas Gelf
73ed4d398f
DirectorObjectForm: never inherit object_name
2015-08-03 13:42:52 +02:00
Thomas Gelf
b90c93ebdc
Command templates and more
2015-08-03 13:42:19 +02:00
Thomas Gelf
9946bed438
ObjectController: do not load objects twice
2015-08-03 13:41:42 +02:00
Thomas Gelf
4133733664
ObjectController: add missing variable
2015-08-03 13:41:22 +02:00
Thomas Gelf
19eec671f2
Import/Sync: add support for 'import' fields
2015-08-03 13:39:55 +02:00
Thomas Gelf
c26f2ed087
DirectorObjectForm: handle object_type only if such
2015-08-03 13:39:12 +02:00
Thomas Gelf
b6018c2d31
DirectorObjectForm: fix non-Icinga defaults
2015-08-03 13:13:28 +02:00
Thomas Gelf
2bab21c2d8
DirectorObjectForm: prefill object with defaults
2015-08-03 12:54:40 +02:00
Thomas Gelf
44154fe914
ObjectController: directly use this->object
2015-08-03 12:54:40 +02:00
Thomas Gelf
22aa1552a4
DirectorObjectForm: imports field should be larger
2015-08-03 12:54:40 +02:00
Thomas Gelf
b9bd71cc13
DirectorObjectForm: more restrictive auto-id field
2015-08-03 12:54:40 +02:00
Thomas Gelf
d931eee9b3
DirectorObjectForm: customvars work with post
2015-08-03 12:54:40 +02:00
Thomas Gelf
ea2add6dc0
DirectorObjectForm: postpone "dummy" object creation
2015-08-03 12:54:40 +02:00
Thomas Gelf
02daf8b97a
DirectorObjectForm: allow to set object externally
2015-08-03 12:54:40 +02:00
Thomas Gelf
44013eec42
DirectorObjectForm: remodel boolean helpers
2015-08-03 12:54:40 +02:00
Thomas Gelf
1e5deb2441
DirectorObjectForm: say "inherited from ..."
2015-08-03 12:54:40 +02:00
Thomas Gelf
213df7e34b
DirectorObjectForm: remove now useless hook
2015-08-03 12:54:40 +02:00
Thomas Gelf
237aaffc45
ObjectController: code cleanup, use fields
2015-08-03 12:54:40 +02:00
Thomas Gelf
94e777a390
ObjectController: add fields action
2015-08-03 12:54:40 +02:00
Thomas Gelf
591e816638
ObjectController: simplify object loading
2015-08-03 12:54:40 +02:00
Thomas Gelf
1d617c7bdd
DirectorObjectForm: relax private to protected
2015-08-03 12:54:40 +02:00
Thomas Gelf
ab2e55321d
IcingaObject: new static loadByType() method
2015-08-03 12:54:40 +02:00
Thomas Gelf
bf596d98ee
DbObject: introduce onClone() hook
2015-08-03 12:54:40 +02:00
Thomas Gelf
de843b19ed
QuickForm: set csrf value through addHidden
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
34c550f4bc
Db: split fetchTemplateTree() logic
2015-08-03 12:54:39 +02:00
Thomas Gelf
483ba3fbbd
QuickForm: setValue instead of setDefaultValue
2015-08-03 12:54:39 +02:00
Thomas Gelf
c38a9fcc12
CsrfToken: fix erraneous return value usage
2015-08-03 12:54:39 +02:00
Thomas Gelf
0203196ffd
QuickForm: more robust submit button handling
2015-08-03 12:54:39 +02:00
Thomas Gelf
b265f48a89
IcingaService: make use of fields
2015-07-31 17:34:12 +02:00
Thomas Gelf
caa3f97048
ObjectController: re-add object type hack
2015-07-31 17:33:05 +02:00
Thomas Gelf
80fe9ccc11
Object forms: group check execution elements
2015-07-31 16:59:56 +02:00
Thomas Gelf
c5e0a709ad
DirectorDatafield: fix unset/delete operation
2015-07-31 16:00:04 +02:00
Thomas Gelf
e97f3c946a
DirectorObjectForm: fix overrideable object name
2015-07-31 15:51:07 +02:00
Thomas Gelf
cbdaf34339
DirectorDatafield, DirectorObjectForm: just lines
2015-07-31 15:48:40 +02:00
Thomas Gelf
7b07d07d02
QuickForm: prepare elements before onRequest
2015-07-31 15:46:46 +02:00
Thomas Gelf
c8e9369dde
IcingaObject: improve/reorganize resolver code
2015-07-31 14:52:46 +02:00
Thomas Gelf
591d933929
DirectorObjectForm: reorganize, simplify, improve
2015-07-31 14:51:41 +02:00
Thomas Gelf
f5bf209a8a
DirectorActivityLog: going towards logging deep
2015-07-31 14:50:36 +02:00
Thomas Gelf
299251276e
ObjectController: improve title settings, clean up
2015-07-31 14:50:05 +02:00
Thomas Gelf
51672e33bd
QuickForm: addHtml VS addHtmlNote (note is styled)
2015-07-31 14:48:17 +02:00
Thomas Gelf
24f7e36e92
DataTypeSqlQuery: do not break form on errors
2015-07-31 14:47:03 +02:00
Thomas Gelf
43fc6fc42b
CustomVariables: clone vars, may not suffice
2015-07-31 14:46:20 +02:00
Thomas Gelf
f4e992f6da
CustomVariables: allow access to unmodified vars
2015-07-31 14:40:55 +02:00
Thomas Gelf
362eddb75c
Util: Manager is now Auth in Web 2
2015-07-31 14:38:22 +02:00
Thomas Gelf
3a96f9ebe4
CustomVariables: handle deleted vars
2015-07-31 14:35:49 +02:00
Thomas Gelf
4780e11241
CustomVariable: add delete() method
2015-07-31 14:34:14 +02:00
Thomas Gelf
48a8e1ab63
IcingaObjectImports: simplify code
2015-07-31 14:33:09 +02:00
Thomas Gelf
bdb7d22e99
ObjectController: fix inverted titles
2015-07-30 16:51:20 +02:00
Thomas Gelf
f5ebb06d8a
QuickForm: be strict on setting request only once
2015-07-30 15:39:51 +02:00
Thomas Gelf
1fc7f6e2cb
QuickForm: dedicated method for special options
2015-07-30 15:39:09 +02:00
Thomas Gelf
10d2d513df
DirectorObjectForm: remove (probably) useless hook
2015-07-30 12:54:54 +02:00
Thomas Gelf
8b9a212bf7
DirectorObjectForm: experiments with inheritance
2015-07-30 12:53:37 +02:00
Thomas Gelf
49042393bf
DirectorObjectForm: use helper method for button
2015-07-30 12:52:38 +02:00
Thomas Gelf
9d4bd323a8
DirectorObjectForm: methods dealing with fields
2015-07-30 12:46:08 +02:00
Thomas Gelf
364904e8e7
DirectorObjectForm: less references
2015-07-30 12:44:40 +02:00
Thomas Gelf
63a5e3fb77
DirectorObjectForm: add missing use statement
2015-07-30 12:41:48 +02:00
Thomas Gelf
8c96af2348
DirectorObjectForm: postpone element creation
...
We must first load the object to have it available when creating
our form elements
2015-07-30 11:51:45 +02:00
Thomas Gelf
7ebb2dcdc9
QuickForm: add onRequest hook
2015-07-30 11:49:08 +02:00
Thomas Gelf
eb1d4c67b0
DirectorObjectForm: finally remove obsolete helpers
2015-07-30 11:48:42 +02:00
Thomas Gelf
db54a4f365
DirectorObjectForm: one more string to translate
2015-07-30 11:48:12 +02:00
Thomas Gelf
5ab69a4876
DirectorObjectForm: just spaces for obsolete tests
2015-07-30 11:47:46 +02:00
Thomas Gelf
a88563f925
DirectorActivityLog: start to log related objects
...
First implementation: groups
2015-07-30 11:46:27 +02:00
Thomas Gelf
3b7cf5a4d4
IcingaHost: use inherited fields support
2015-07-30 11:45:55 +02:00
Thomas Gelf
2643b6ae8c
DirectorObjectForm: improve import handling
2015-07-30 11:43:33 +02:00
Thomas Gelf
3d205724c3
IcingaObject: resolving methods should be generic
2015-07-30 11:39:00 +02:00
Thomas Gelf
44a9755cce
QuickForm: no label for hints
2015-07-30 10:09:44 +02:00
Thomas Gelf
d30d5c51c2
DirectorObjectForm: add a bunch of helper methods
2015-07-30 10:07:44 +02:00
Thomas Gelf
d93e498688
ObjectController: reorganize tabs
...
Edit is the new default action, config snippet is "preview"
2015-07-30 10:04:12 +02:00
Thomas Gelf
3253bf2c88
ObjectsController: reorganize tabs
2015-07-30 09:49:34 +02:00
Thomas Gelf
b97cb14e05
Objects: add template tree
2015-07-30 09:49:01 +02:00
Thomas Gelf
ceb22f830d
DataTypeSqlQuery: set textarea rows, use Util::*
2015-07-30 09:47:06 +02:00
Thomas Gelf
fa9a6eeabb
ImportSourceSql: make use of new Util helpers
2015-07-30 09:46:14 +02:00
Thomas Gelf
918660e3bf
ObjectsController: support template distinction
2015-07-30 09:45:32 +02:00
Thomas Gelf
03436efa29
ObjectController: distinct templates and objects
2015-07-30 09:26:02 +02:00
Thomas Gelf
5a3fead131
DirectorObjectForm: allow to enforce object type...
...
...when creating new objects
2015-07-30 09:22:55 +02:00
Thomas Gelf
24cd649908
Util: add missing use, remove backslash
2015-07-30 09:12:19 +02:00
Thomas Gelf
cc9b783f69
Util: a couple of db resource helpers
2015-07-30 09:11:53 +02:00
Thomas Gelf
18782b9ff5
QuickForm: add buttons before onSetup() hook
2015-07-30 09:10:57 +02:00
Thomas Gelf
7058536530
IcingaObject: add getFields() lookup method
2015-07-30 09:09:44 +02:00
Thomas Gelf
92f53f18d1
IcingaObjects: add supportsFields(), but still...
...
...unsure whether this shouldn't be implicitely depend on
supportsCustomVars
2015-07-30 09:08:27 +02:00
Thomas Gelf
0bc2fbe9c7
Util: add auth helper methods
2015-07-30 09:04:42 +02:00
Thomas Gelf
e98401d291
DirectorObjectForm: add setElementValue() helper
2015-07-30 08:54:03 +02:00
Thomas Gelf
c9dd2e284c
QuickForm: addHtmlHint helper method
2015-07-30 08:54:03 +02:00
Thomas Gelf
cb8077057c
Db: fix enumImportSource
2015-07-30 08:54:03 +02:00
Thomas Gelf
a2cc9a612a
DirectorObjectForm: move optionalEnum to QuickForm
2015-07-30 08:54:03 +02:00
Thomas Gelf
5dcc9b35d9
Db: template tree should be generic
2015-07-30 08:54:03 +02:00
Thomas Gelf
2bc57d459b
QuickForm: translate() makes use of module name
2015-07-30 08:54:03 +02:00
Stefan Scheungrab
229902687a
PropertyModifierHook - corrected function transform in order to get the hooks working
2015-07-30 04:28:19 +02:00
Thomas Gelf
3f3fbacedd
Db: simplify enum methods
2015-07-29 18:07:21 +02:00
Thomas Gelf
2fbfc109d1
Db: tabs VS spaces in enumSyncRule
2015-07-29 17:31:27 +02:00
Thomas Gelf
b0e8dbc957
Db: fetchHostTemplateTree() experiments
2015-07-29 17:19:45 +02:00
Alexander Fuhr
34237b265e
QuickTable: Use the setColumns in EditorFilter
2015-07-29 17:16:38 +02:00
Alexander Fuhr
99027a343d
ListController|ObjectsController: setupFilterControl
...
refs #9729
2015-07-29 15:31:32 +02:00
Alexander Fuhr
b6b7518285
QuickTable: Implement the Filter usage
...
refs #9729
2015-07-29 15:31:32 +02:00
Thomas Gelf
6db336fc54
DataTypeSqlQuery: add a new crazy data type
2015-07-28 17:58:02 +02:00
Alexander Fuhr
e4bf3ee370
IcingaHost: Add first basic getFields() method
...
resolves #9760
2015-07-28 17:37:58 +02:00
Alexander Fuhr
f7a2425b97
DataTypeDatalist: Implement getEntries()
2015-07-28 17:37:58 +02:00
Alexander Fuhr
31e2b23d82
IcingaServiceField: Implement the field assignment
...
refs #9752
2015-07-28 15:25:44 +02:00
Alexander Fuhr
6005913bbd
IcingaHostField: Implement the field assignment
...
refs #9752
2015-07-28 15:25:44 +02:00
Alexander Fuhr
e89a568fc3
Db: Add enumHostTemplates and enumServiceTemplates
2015-07-28 15:25:44 +02:00
Thomas Gelf
51c7a258ce
IcingaConfig: start to work on zone magic...
...
...still incomplete
2015-07-28 15:24:05 +02:00
Thomas Gelf
d381fddfff
IcingaConfig: add zone name lookup helper and cache
2015-07-28 15:22:48 +02:00
Thomas Gelf
f57847cb32
IcingaConfig: add configFile helper method
2015-07-28 15:22:20 +02:00
Thomas Gelf
2e0c636574
object/delete: add new delete form
2015-07-28 15:15:08 +02:00
Thomas Gelf
9e80a5242b
QuickForm: support spaces and more on submit labels
2015-07-28 15:09:16 +02:00
Alexander Fuhr
45049e45da
DataTypeDatalist: rename datalist field to datalist_id
2015-07-28 12:03:47 +02:00
Alexander Fuhr
f5e8b5f8f8
DirectorDatafield: Imlement settings handling
...
refs #9715
2015-07-28 12:03:47 +02:00
Thomas Gelf
d52549acd7
Db: add enumDatalist helper method
2015-07-28 11:49:30 +02:00
Thomas Gelf
fa8dbaadfc
QuickForm: add getSentValue() helper method
2015-07-28 11:48:42 +02:00
Thomas Gelf
03ffbb1de6
DirectorObjectForm: allow access to our db
2015-07-28 11:40:45 +02:00
Thomas Gelf
d2d7565887
DirectorObjectForm: run setup() before object
2015-07-28 11:39:18 +02:00
Thomas Gelf
a8b2eeeaf7
DirectorObjectForm: pass db to object if no such
2015-07-28 11:38:21 +02:00
Thomas Gelf
38501e8e96
QuickForm: postpone setup() call
2015-07-28 11:37:08 +02:00
Thomas Gelf
570a0ac00a
QuickForm: do not validate unsubmitted but sent
...
There is no clean way to clear errors detected by isValidPartial
afterwards, so we shouldn't call it
2015-07-28 11:35:53 +02:00
Thomas Gelf
d522cb8d2b
DbObject: add hasConnection() helper method
2015-07-27 23:24:50 +02:00
Thomas Gelf
1b13d15070
Db: provide import statistics
2015-07-27 22:39:29 +02:00
Alexander Fuhr
1400d3df97
DataTypeHook: Implement addSettingsFields...
2015-07-27 17:23:48 +02:00
Alexander Fuhr
0380e51087
DataTypeHook: Add DataType Hook Datalist
2015-07-27 17:22:21 +02:00
Alexander Fuhr
9c938f1953
DataTypeTime: Add DataType Time Hook
2015-07-27 17:02:33 +02:00
Alexander Fuhr
03009502a9
DataTypeHooks: Add name param to getFormElement()
2015-07-27 15:49:59 +02:00
Thomas Gelf
68e359cbc0
Sync: start to work with multiple datasources...
...
...working, but still unfinished
2015-07-26 15:46:25 +02:00
Thomas Gelf
ce766df466
Db: allow access to dynamic imported rows query
2015-07-26 15:40:53 +02:00
Thomas Gelf
c9e5f16d3e
Import: exception for missing key column...
...
...but skip check for now
2015-07-26 15:38:29 +02:00
Thomas Gelf
666aafc842
QuickTable: lazy-load view everywhere
2015-07-26 15:37:01 +02:00
Thomas Gelf
22444f2792
Db: getImportrunRowsetChecksum helper method
2015-07-26 15:36:32 +02:00
Thomas Gelf
1ffc032e26
Sync: dummy return value to succeed in controller
...
Fixes redirect unless we store a sync run history
2015-07-24 15:31:57 +02:00
Thomas Gelf
f05fa90fee
Sync: fix purge mechanism
2015-07-24 15:31:57 +02:00
Thomas Gelf
f65e880aaa
Sync: forbid sync access to existing templates
2015-07-24 15:31:57 +02:00
Thomas Gelf
7edc5f37b3
Sync: use a single db transaction
2015-07-24 15:31:57 +02:00
Thomas Gelf
1c5f83a6cf
Sync: fail with missing key column
...
NB: might not work as expected, more fixes to come
2015-07-24 15:31:57 +02:00
Thomas Gelf
80b2974372
Import: ignore null properties for now
2015-07-24 15:26:09 +02:00
Alexander Fuhr
6777911a07
ImportRowModifierSettings: just spaces
2015-07-24 15:05:38 +02:00
Alexander Fuhr
4f5e0f5918
DataTypeString/Number-Hook: Add simple hooks
...
refs #9716
2015-07-24 15:00:50 +02:00
Alexander Fuhr
1e694f2d1b
DataTypeHook: Add a Hook for DataType
...
refs #9715
2015-07-24 15:00:50 +02:00
Thomas Gelf
753d9420c3
IcingaConfig: throw exception when missing
2015-07-24 10:58:02 +02:00
Thomas Gelf
747ea70a33
CustomVariables: use ->id, not ->getId
2015-07-24 10:57:05 +02:00
Thomas Gelf
826cafb476
SyncRule: add helper method fetching properties
2015-07-24 10:54:11 +02:00
Thomas Gelf
676e694078
SyncRule: just spaces
2015-07-24 10:53:55 +02:00
Thomas Gelf
bdda0fe717
Sync: initial test implementation
...
refs #9731
2015-07-24 10:51:55 +02:00
Stefan Scheungrab
250fbeabe2
SycPropertyForm: Prepared form for sync property. refs: #9709
2015-07-24 09:51:31 +02:00
Stefan Scheungrab
b9eac26193
SyncRule: sync rules should work now. refs. #9709
2015-07-23 20:00:31 +02:00
Stefan Scheungrab
3d3dc19d3b
SyncRule: Controller Object and fomr
2015-07-23 16:40:32 +02:00
Stefan Scheungrab
a410fa8f05
Merge branch 'master' of git.icinga.org:icingaweb2-module-director
2015-07-23 16:37:33 +02:00
Stefan Scheungrab
ad77d8b702
SyncRule: preparation for sync rule
2015-07-23 16:36:58 +02:00
Alexander Fuhr
ec6974b9c5
Pagination: Add pagination suppport for all tables
...
fixes #9691
2015-07-23 16:20:33 +02:00
Alexander Fuhr
08ec28345e
QuickTable: Implement Paginatable
...
refs #9691
2015-07-23 16:20:33 +02:00
Thomas Gelf
ecb3d71760
IcingaConfig: just spaces
2015-07-23 15:38:17 +02:00
Thomas Gelf
ec7ad0984b
IcingaConfigFile: support string casts
2015-07-23 15:37:35 +02:00
Thomas Gelf
b8d312d3fe
IcingaConfig: add getFileContents()
2015-07-23 15:37:12 +02:00
Stefan Scheungrab
396120a1ce
PropertyModifierRegexReplace: failed to adjust the input fields
2015-07-23 15:13:07 +02:00
Stefan Scheungrab
b43b8ee5e3
PropertyModifier: renamed function for adding new fields to a Form
2015-07-23 14:42:53 +02:00
Stefan Scheungrab
06fc7d82a0
Director/PropertyModifier: Create first basic property modifiers refs: #9707
2015-07-23 14:29:15 +02:00
Stefan Scheungrab
103623211b
Hook/PropertyModifier: added abstract function transform which actually transform the given value
2015-07-23 13:07:39 +02:00
Stefan Scheungrab
3a15cf8f28
Modifier: initial hook and preperation for generic modifier
2015-07-23 11:45:07 +02:00
Stefan Scheungrab
8621e3cfdd
SyncProperty: initial setup for synchronising the properties
2015-07-23 11:43:41 +02:00
Thomas Gelf
abab695708
Db: add fetch*RowsetRows methods
...
Magic query creators delivering our key/value table entries as "real" rows
2015-07-22 23:33:24 +02:00
Stefan Scheungrab
8ef61d4b3a
Import/ImportSourceSql: typo replaced Resouce with Resource
2015-07-22 19:18:42 +02:00
Alexander Fuhr
9af1b60dc9
DataListEntry: Implement the datalistentry management
2015-07-22 13:42:47 +02:00
Alexander Fuhr
9bc8d3882e
DbObject: Fix the array to string conversion
2015-07-22 13:42:47 +02:00
Thomas Gelf
3dfec6b8bd
Import: allow for differing imports w/o new rows
2015-07-22 13:13:00 +02:00
Thomas Gelf
af021b06ac
ImportSourceSql: query should be a textarea
2015-07-22 11:37:06 +02:00
Stefan Scheungrab
2076d6b9a7
Import: renamed column imported_rowset_checksum TO rowset_checksum resolves : #9700
2015-07-22 11:13:52 +02:00
Thomas Gelf
bc49af2685
Import: implement import runs
...
* Trigger import run and store data
* Add new table showing related information
2015-07-22 10:12:50 +02:00
Thomas Gelf
6ca8e8a7d6
ImportSourceSql: new import provider
...
fixes #9678
2015-07-21 15:18:16 +02:00
Thomas Gelf
cab2348a28
ImportSourceHook: initial import
...
fixes #9677
2015-07-21 15:17:20 +02:00
Thomas Gelf
1c38e4469e
Importsource: controller, object, list
...
fixes #9676
2015-07-21 15:16:18 +02:00
Thomas Gelf
1fd97c8606
QuickForm: add moveSubmitToBottom hack
2015-07-21 15:13:42 +02:00
Thomas Gelf
4881cd3860
DbObject: add missing call to onLoadFromDb
2015-07-21 15:12:23 +02:00
Alexander Fuhr
cfbe065b86
DirectorDataList: Add controller, object etc.
2015-07-03 14:00:40 +02:00
Thomas Gelf
644c6beeff
DirectorDatafield: introduce new object class...
...
...and adjust table, form and controller
2015-07-03 13:17:05 +02:00
Alexander Fuhr
83fdf0f67d
QuickForm: Fix null failure
2015-07-03 11:20:32 +02:00
Alexander Fuhr
ee44f461ab
DataField: Add an action and a tab to config tabs
2015-07-03 10:49:47 +02:00
Thomas Gelf
33892f3298
DbObject: get rid of setDb. Fix race condition
2015-07-03 10:00:16 +02:00
Thomas Gelf
55ed08412c
DirectorObjectForm: remove obsolete method
2015-07-03 09:31:20 +02:00
Alexander Fuhr
8c2939db60
ActionController: Fix code typo
2015-07-03 09:01:52 +02:00
Thomas Gelf
61795ccdcd
QuickForm/FormLoader: add helper for subforms
2015-07-02 15:30:02 +02:00
Thomas Gelf
6730ac7447
HostActions: add "edit" hook to monitoring module
2015-07-02 15:28:41 +02:00
Alexander Fuhr
25f29b3acc
DirectorObjectForm: Fix copy paste type ranges. to vars.
2015-07-02 14:54:41 +02:00
Thomas Gelf
edad30f0ac
IcingaObject: add initial resolve methods
2015-07-02 14:51:59 +02:00
Thomas Gelf
410d06dc63
IcingaObject: object_name is our key
2015-07-02 14:32:06 +02:00
Thomas Gelf
2b2ab87338
Datalists: halfway done
2015-07-02 14:13:42 +02:00
Thomas Gelf
02c7a5c62c
DbObject: don't ->getId() for ->id
2015-07-02 14:11:13 +02:00
Alexander Fuhr
84a3de8336
Merge branch 'master' of git.icinga.org:icingaweb2-module-director
2015-07-01 15:24:21 +02:00
Alexander Fuhr
e9d38103f0
TimePeriodRanges: Implement the TimePeriodRanges support
2015-07-01 15:15:49 +02:00
Alexander Fuhr
4d2cbdea44
DbObject: Fix mixed key collision
2015-07-01 15:13:28 +02:00
Thomas Gelf
d3f4625d7c
DirectorObjectForm: workaround to move submit button
2015-06-30 11:37:35 +02:00
Thomas Gelf
628d7c3221
ActionController: remove legacy tab helpers
2015-06-30 11:30:08 +02:00
Thomas Gelf
3ba98a2ffa
ActionController: move to Web\Controller namespace
2015-06-30 11:27:32 +02:00
Thomas Gelf
8f841d28ae
Reorganize action controllers
...
* Removed 'list' and 'object' from urls
* IcingaObject: added isGroup helper
* Adjusted and abstracted tabs and tables
* Show endpoints in zone list
* Remove obsolete code
* Allow to filter activity log for objects
* Improve general look and feel
2015-06-30 11:19:31 +02:00
Alexander Fuhr
decfcfd67b
IcingaObjectGroups: Set right return type for store()
2015-06-30 10:46:53 +02:00
Alexander Fuhr
fbbea8d486
IcingaObjectImports: Add check if modified and loaded from db
2015-06-30 10:46:15 +02:00
Thomas Gelf
816f8b8a72
Welcome: new controller showing initial help...
...
...especially in case your config is still missing.
2015-06-29 16:01:10 +02:00
Alexander Fuhr
321f9d9503
IcingaObjectImports: Fix bug with on delete
2015-06-29 12:50:59 +02:00
Thomas Gelf
114bac0d55
CustomVariable: no abstract for interface method
2015-06-29 12:04:45 +02:00
Thomas Gelf
815139bb21
List: add remaining tabs
...
Temporarily keeping endpoint and command args, will become subitems
later on
2015-06-29 11:31:35 +02:00
Thomas Gelf
fe7cb41bac
Services: ooops
2015-06-29 11:16:29 +02:00
Thomas Gelf
3d9fb846ed
Services: add tabs, remove menu item & legacy actions
2015-06-29 11:15:23 +02:00
Thomas Gelf
c95c689609
Hosts: add tabs, remove menu item & legacy actions
2015-06-29 11:12:20 +02:00
Alexander Fuhr
775bc67fec
Add imports support for Endpoint
2015-06-29 11:11:56 +02:00
Alexander Fuhr
f1c3f9025b
Add imports support for UserGroup
2015-06-29 11:02:30 +02:00
Alexander Fuhr
61812d6115
Add imports support for Zone
2015-06-29 10:46:32 +02:00
Alexander Fuhr
cdb66b648a
Add imports support for Command
2015-06-29 10:39:37 +02:00
Alexander Fuhr
c7f7d37523
Add imports support for Servicegroup
2015-06-29 10:28:57 +02:00
Alexander Fuhr
b8a35e068c
Merge branch 'master' of git.icinga.org:icingaweb2-module-director
2015-06-29 10:21:14 +02:00
Alexander Fuhr
878841e33e
Add imports support for Hostgroup
2015-06-29 10:20:15 +02:00
Thomas Gelf
854ba20451
config: add tabs, less menu items
2015-06-29 10:13:39 +02:00
Alexander Fuhr
0af3ed4452
Add imports support for Timeperiod
2015-06-26 16:45:44 +02:00
Alexander Fuhr
f7bd670d1b
Add imports support to User
2015-06-26 16:36:18 +02:00
Alexander Fuhr
fd74a8dfd5
Add imports support to Service
2015-06-26 16:20:16 +02:00
Alexander Fuhr
bc57937078
DirectorObjectForm: Add imports handling вот так
2015-06-26 15:56:55 +02:00
Alexander Fuhr
a663d571be
IcingaObject: Add storeImports как то так
2015-06-26 15:55:16 +02:00
Alexander Fuhr
864b9ea55c
Implement IcingaObjectImport to handle object imports
2015-06-26 15:54:00 +02:00
Alexander Fuhr
a2da7581b0
Merge branch 'master' of git.icinga.org:icingaweb2-module-director
2015-06-26 10:40:22 +02:00
Alexander Fuhr
b1a7922873
Imports: Start with implementing the imports
2015-06-26 10:39:30 +02:00
Thomas Gelf
2021dc3479
DbObject: fix legacy method call
2015-06-25 08:45:36 +02:00
Alexander Fuhr
330c7b825e
xMember: Delete the absolete Member classes
2015-06-24 15:34:24 +02:00
Alexander Fuhr
33ea3a9b34
IcingaObjectGroups: Fix typo in set() method
2015-06-24 14:57:04 +02:00
Thomas Gelf
fc2352fb1e
QuickForm: improve submission detection
...
Still not complete
2015-06-24 14:54:14 +02:00
Thomas Gelf
b26172e0e9
IcingaZone: add support for global zones
2015-06-24 13:41:45 +02:00
Thomas Gelf
f8bd943181
Group membership: more magic
2015-06-24 11:25:22 +02:00
Thomas Gelf
b75029c5aa
IcingaCommand,Service,User: support custom vars
2015-06-24 10:13:27 +02:00
Thomas Gelf
1bdeff3474
IcingaObject: add/fix customvar support
2015-06-24 10:13:06 +02:00