Commit Graph

1765 Commits

Author SHA1 Message Date
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
Thomas Gelf efe6fd35ab IcingaObject: remove code loading fields...
...we now have a dedicated class for this
2016-12-28 12:44:51 +01:00
Thomas Gelf 6800d2cbd2 PropertyModifierJsonDecode: show substring on fail 2016-12-22 12:30:22 +01:00
Thomas Gelf 2ef36899e9 PropertyModifierJsonDecode: fail on error...
...and give some details

fixes #13733
2016-12-22 12:21:49 +01:00
Thomas Gelf 990e3fc04b DirectorObjectFrom: set every property we get
fixes #13659
fixes #13673
2016-12-19 14:32:52 +01:00
Thomas Gelf d4736f4a41 IcingaObject: better way to get resolved props? 2016-12-16 13:21:48 +01:00
Thomas Gelf 241404d9ba HostApplyMatches: do not skip defaults
May avoid errors when working with properties defined only on some of your
hosts
2016-12-16 13:19:02 +01:00
Thomas Gelf 8687ecaeeb Db: cosmetics 2016-12-16 12:23:47 +01:00
Thomas Gelf ec0cbac657 ObjectQuery, FilterRenderer: two new classes...
...required when working with the cache

refs #13068
2016-12-16 12:19:57 +01:00
Thomas Gelf 251eb4f9a5 ObjectController: add explicit NotFoundError...
...handling for REST API requests

fixes #13641
2016-12-16 12:07:01 +01:00
Thomas Gelf 2918ef555e schema: fix lost/diverged foreign keys
fixes #13591
2016-12-15 15:51:48 +01:00
Thomas Gelf 3d8ccf2448 DirectorObjectForm: skip empty related sets...
...provides as objects

fixes #13605
2016-12-15 11:44:52 +01:00
Thomas Gelf 65181ca67e ExtensibleSet: be strict on values...
...and provide a meaningful Exception in case something fails

refs #13605
2016-12-15 11:43:56 +01:00
Marc DeTrano 66ece6010d NewObjectsController: pass dummy object to...
...provideFilterEditorForTable()

fixes #13597
2016-12-14 23:59:57 +01:00
Thomas Gelf 15b031272e IcingaObjectFieldLoader: pass db to resolved...
...flat object

refs #13583
2016-12-14 22:44:56 +01:00
Thomas Gelf e85c13ae13 DirectorObjectForm: some more steps to simplify...
...this old monster

fixes #13583
2016-12-14 21:07:07 +01:00
Thomas Gelf a30f34a026 DirectorObjectForm: be careful when continuing...
...after an exception
2016-12-14 20:59:26 +01:00
Thomas Gelf cbb3c7aa88 DirectorObjectForm: remove unused parameter for...
...object() helper method
2016-12-14 20:48:59 +01:00
Thomas Gelf 145e1fc6a9 DirectorObjectForm: add has_agent to early props 2016-12-14 20:27:52 +01:00
Thomas Gelf 7e7e2601d3 ObjectFields: prefix filters, respect inheritance
refs #13253
2016-12-14 17:33:13 +01:00
Thomas Gelf 949d6c9b54 IcingaCommandField: one more implementation 2016-12-14 16:36:33 +01:00
Thomas Gelf 5847913987 Fields: add a possibility to show fields based...
...on filter rules
2016-12-14 16:36:33 +01:00
Thomas Gelf ec0ea2ee6d NotificationsController: use new base class...
...with less tabs, less and simpler code

fixes #13565
fixes #13157
2016-12-14 15:04:38 +01:00
Thomas Gelf 068735021b ActionController: fix REST API issue 2016-12-14 15:04:00 +01:00
Thomas Gelf 8841906aad Dashboard: provide apply summaries where available 2016-12-14 15:01:43 +01:00
Thomas Gelf abab92bdf2 Notifications: add some new dashlets
refs #13565
2016-12-14 15:01:07 +01:00
Thomas Gelf f614d75edc Dashlet: provide new summary text helpers 2016-12-14 14:53:29 +01:00
Thomas Gelf 34be3801ce Dashboard: make it easier to override behavior 2016-12-14 12:34:59 +01:00
Thomas Gelf 24bb170889 Dashlet: allow to hide regardless of permissions 2016-12-14 12:34:02 +01:00
Thomas Gelf a6962dc326 Dashboard: show description if any 2016-12-14 12:33:19 +01:00
Thomas Gelf 4c1ab4dae6 php: just some comments and cleanup 2016-12-13 18:25:14 +01:00
Thomas Gelf 04f9b360da DirectorDataField: preserve settings in fromDbRow
refs #13259
2016-12-13 17:14:58 +01:00
Thomas Gelf 2cfa78af14 FieldLoader: do not fail missing fields
One might have toggled template or command, sent values for missing fields
might therefore be perfectly legal and should be silently ignored

refs #13241
2016-12-13 16:57:32 +01:00
Thomas Gelf e60fdb31b8 DirectorObjectForm: move check_command to main
fixes #13551
2016-12-13 16:57:05 +01:00
Thomas Gelf e207bb2bc9 DirectorObjectForm: resolve ids 2016-12-13 16:34:31 +01:00
Thomas Gelf bb25de6126 FieldLoader: fix field handling issues
fixes #13241
fixes #13259
2016-12-13 16:34:31 +01:00
Thomas Gelf c1e80afff4 Boolean: fix multiedit-related issues
fixes #13131
2016-12-13 16:04:09 +01:00
Thomas Gelf 7c6a10013f AssignFilter: add 'contains' operator
fixes #13133
2016-12-13 14:49:36 +01:00
Thomas Gelf 58a64cee78 SyncRule: initialize hasServiceSet 2016-12-13 13:51:41 +01:00
Thomas Gelf d2adc1b4ec IcingaObjectFieldLoader: attach fields to form...
...before adding them to a display group. Many thanks to Marc DeTrano for
troubleshooting this tricky issue.

fixes #13279
2016-12-13 12:46:45 +01:00
Thomas Gelf f1a61e2557 ServiceGroup: allow to assign them to services...
...via assignment rules

fixes #13415
2016-12-13 09:51:52 +01:00
Thomas Gelf 1acf332f6b DirectorDataField: whether a field is required...
...is a setting
2016-12-07 09:43:16 +01:00
Thomas Gelf 2ea573e338 IcingaVar: use new CustomVar helpers 2016-12-07 08:29:20 +01:00
Thomas Gelf 57a450f878 Monitoring: add host state helper 2016-12-06 08:55:55 +01:00
Thomas Gelf 962e545a79 CustomVariable: add new helper methods
toJson, checksum, render - will be used later on
2016-12-06 08:35:27 +01:00
Thomas Gelf 0bb1df2f77 CubeLinks: implement Cube v1.0.0 action hook
fixes #13379
2016-12-01 15:08:04 +01:00
Christoph Niemann ddc4b9321b agent helper: add new linux agent script
fixes #12910
2016-11-30 09:45:34 +01:00
Thomas Gelf 7dd2ac6b83 IcingaService: enum service vars, not host vars
fixes #13359
2016-11-30 09:33:29 +01:00
Thomas Gelf 2ce84baa70 BaseTestCases: make 'em abstract to not be empty 2016-11-30 09:23:36 +01:00
Thomas Gelf 1e9e15278a Merge branch 'bugfix/service-set-contraints-13309' 2016-11-30 08:16:47 +01:00
Markus Frosch 4a838ca277 IcingaHostGroup(Legacy): Load zones prefetched
refs #13049
2016-11-30 08:12:27 +01:00
Markus Frosch c2734fd4d4 IcingaHostGroup(Legacy): Render assigned groups to all zones
So we still can support hosts with direct groups.

refs #13049
2016-11-30 08:12:27 +01:00
Markus Frosch aaeca533fc IcingaConfig/IcingaObject(Legacy): Render dummy notification settings
So we avoid warnings about nothing configured.

refs #13049
2016-11-30 08:12:27 +01:00
Markus Frosch 3a8cad2486 IcingaServiceSet: Check if object_name is unique for templates
refs #13309
2016-11-28 15:32:41 +01:00
Markus Frosch ab169e4b78 DbObject: Add and use DuplicateKeyException 2016-11-28 15:32:41 +01:00
Markus Frosch d7ddb3e63c Add IcingaObjectTestCase for testing IcingaObjects 2016-11-28 15:32:41 +01:00
Thomas Gelf 72bb29694d multi-edit: show deployment link 2016-11-25 20:51:02 +01:00
Thomas Gelf 42f98e9bbf CubeLinks: fit modified Cube API 2016-11-25 20:50:31 +01:00
Thomas Gelf db61528748 CustomVariable: fix issues with PHP bug #43200
fixes #13271
2016-11-21 22:44:31 +01:00
Thomas Gelf b39e7efce7 ObjectForm: allow to preset imports 2016-11-16 16:02:28 +01:00
Thomas Gelf 5407c4fe7c ObjectsController: template table for templates...
...but load the other one first to trick the autoloader
2016-11-16 13:36:07 +01:00
Thomas Gelf 698d523c88 js: put focus on first form element 2016-11-16 13:20:31 +01:00
Thomas Gelf d5131f7fac Arguments: always render += instead of =
This allows to extend existing arguments

fixes #12941
2016-11-15 17:57:02 +01:00
Markus Frosch 4e5dfb097e IcingaService(Legacy): Fix duplicated rendering of apply
refs #13049
2016-11-15 10:52:03 +01:00
Markus Frosch b40cfd5f05 IcingaHostGroup(Legacy): Fix member rendering with correct attribute
refs #13049
2016-11-14 15:36:55 +01:00
Markus Frosch 5ee911ef7c IcingaObject(Legacy): Fix event_handler rendering
refs #13049
2016-11-14 15:32:14 +01:00
Markus Frosch d4c3be0bf5 IcingaHostGroup|IcingaService(Set): Fix legacy config file extension
refs #13049
2016-11-14 15:28:52 +01:00
Thomas Gelf 913d934762 IcingaObject: introduce getSingleResolvedProperty()
Motivation: getResolvedProperty() has the effect that objects will fully
resolve all inherited properties, vars and fields. This is overkill in
situations where only a few resolves properties are needed and has quite
an influence on overall rendering performance.

Over time we might completely fade out that part of our resolving logic
as it predates current cache implementations. Meanwhile, we keep two
methods for two (internal) purposes.
2016-11-14 13:25:26 +01:00
Thomas Gelf a6928a8bc1 CustomVariable: render expressions in Arrays...
...and introduce a new abstract method
2016-11-14 10:17:52 +01:00
Thomas Gelf d32f22d493 Config: do not count twice for benchmark 2016-11-14 10:17:52 +01:00