Johannes Meyer
1593406f31
Refactor Acknowledgement command handling
...
#refs 4580
2013-09-04 18:07:59 +02:00
Johannes Meyer
79eb6588c5
Restructure dispatch process of commands
...
refs #4580
2013-09-04 18:07:59 +02:00
Johannes Meyer
95d7a8a553
Fix triggered_by field in ScheduleDowntimeForm is not a select box
...
refs #4496
2013-09-04 18:07:59 +02:00
Eric Lippmann
2b10782d6b
Fix use \Monitoring without Icinga\Module prefix
...
refs #4601
2013-09-04 16:08:20 +02:00
Jannis Moßhammer
e915119845
Fix grid styling and add links for hosts and service
...
refs #4601
2013-09-04 15:22:01 +02:00
Jannis Moßhammer
d27e34cef8
Codestyle and Test fixes for SortBox
...
refs #4601
2013-09-04 15:22:00 +02:00
Jannis Moßhammer
57e66c247a
Add sort widget, change js path from module to app, small style fixes
...
refs #4601
2013-09-04 15:22:00 +02:00
Eric Lippmann
1b858cbdb4
Monitoring: Fix remaining usages of namespace Monitoring without Icinga\Module prefix
...
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
3e4d1aa2fb
Monitoring/Tests: Replace BaseFormTest with BaseTestCase
...
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
e3044b8b62
Tests/Monitoring: Remove ScheduleDowntimeFormTest since it's being refactored in another branch
...
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
a89631fd92
Tests/Monitoring: Remove useless test ConfirmationFormTest
...
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
74b9731df5
Remove auto class requirement from BaseTestCase::createForm()
...
The tests for the respective forms must require the form class.
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
8a062ff3e5
Fix tests after renaming the namespace
...
refs #4586
2013-09-04 11:21:12 +02:00
Eric Lippmann
c86874d4ba
Rename namespace Monitoring to Icingæ\Module\Monitoring
...
refs #4586
2013-09-04 11:21:11 +02:00
Johannes Meyer
23f0962da1
Adjust command forms and tests
...
Made those command forms using the DateTimePicker
element compatible with its new validation.
refs #4581
2013-09-03 09:27:02 +02:00
Jannis Moßhammer
9f923b4940
Fix pagination and remove ModuleController, rename handlesAuth
...
This commit introduces the following changes:
- Count is now performed after joins are added to the selection query,
therefore returning the correct number
- MonitoringControllerTest now needn't to mock ModuleActionController (which is now removed)
- handlesAuthentication is now requiresAuthentication
- Redirection to login is now directly handled in the ActionController constructor,
so we don't need to overwrite the preDispatch method
refs #4589
refs #4591
refs #4572
2013-09-02 18:42:05 +02:00
Johannes Meyer
24ecbb56d7
Fix incorrect checkresult type selection
...
When submitting a passive checkresult for hosts only their correct
result types are added to the selection.
refs #4600
2013-09-02 17:24:42 +02:00
Jannis Moßhammer
d0ac97f335
Configure fixes, regression test for 4606
...
The configure routine still has to be improved, right now unused
authentication backends are commented out
refs #4491
refs #4606
refs #4640
2013-08-29 11:48:32 +02:00
Jannis Moßhammer
b5812fd56c
Fix installation via configure/make
...
The installation routine uses the .htaccess file right now, as
this is used in the 'dump' /var/www installation.
refs #4491
2013-08-29 11:47:10 +02:00
Jannis Moßhammer
4527aaf57a
Smaller fixes in phpdoc style
...
refs #4566
2013-08-28 14:42:31 +02:00
Johannes Meyer
13e4efa221
Make use of the helptext decorator if suitable
...
Refactored some uses of the form element Note so that
each one is properly attached to its input element.
refs #4566
2013-08-28 08:57:46 +02:00
Marius Hein
2f610b70ac
Fix icon identifer and capitalization
...
refs #4550
refs #4584
2013-08-23 10:58:58 +02:00
Jannis Moßhammer
895976550c
Fix templates, capitalization and icons in php files
...
refs #4550
refs #4584
2013-08-23 10:28:48 +02:00
Jannis Moßhammer
015a914aab
Fix template code style, use Bootstrap 3, remove icons
...
- Icons have now the {{XY_ICON}} format
- custom classes are removed
- A few typos are fixed
- Capitalization
refs #4550
refs #4621
refs #4584
2013-08-23 10:28:48 +02:00
Jannis Moßhammer
872fa2ac6c
HTML Style fixes and class removals
...
refs #4550
2013-08-23 10:28:47 +02:00
Jannis Moßhammer
bff45a1eb2
Template cleanup and validation part 1
...
refs #4550
2013-08-23 10:27:16 +02:00
Jannis Moßhammer
1378ca9844
Remove and reorganize stylesheets, add boostrap 3
...
refs #4550
2013-08-23 10:27:16 +02:00
Jannis Moßhammer
95ad8da2a3
Fix class not found exception when trying to send commands
...
This has already been fixed but got lost during a rebase,
so no ticket ref exists.
2013-08-21 16:48:12 +02:00
Eric Lippmann
edb06ea8ea
CS: Fix viloations for touched files in branch feature/backend-configuration-ui-3776
...
refs #3776
2013-08-21 14:22:31 +02:00
Eric Lippmann
585f69fe8f
Monitoring/Configuration: Show ido, Ido as IDO
...
refs #3776
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
cd1fb2e4b5
Capitalization, smaleler codestyle fixes
...
refs #3776
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
83d053965f
Implement monitoring instance and backend configuration forms
...
refs #3776
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
a6ff6ecadd
Fix Codestyle/PHPDoc, fix configPath being Overwritten
...
Also removed possibility to disable debugging as there's no use case for this
refs #4525
refs #4598
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
972bc9853e
Configuration interfaces for logging, authentication and general configuration
...
- Added HelpText decorator
- Added Time and DateFormatValidator
- Added tests
refs #3777
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
17c1e5a449
Add tests, move BaseFormTest away from modules/monitoring
...
refs #3777
2013-08-21 14:18:53 +02:00
Jannis Moßhammer
26a5018d16
Add Forms and conditional hidden
...
refs #3777
2013-08-21 14:18:53 +02:00
Jannis Moßhammer
d7358c65be
Remove QUrl and QLink, add Href
...
refs #4516
2013-08-21 09:44:01 +02:00
Eric Lippmann
6765648380
Monitoring: Fix nonexistent Icinga\Backend usage in CommandController
2013-08-21 09:44:01 +02:00
Eric Lippmann
d574a26db3
Monitoring: Fix nonexistent Icinga\Backend usage in CommandController
2013-08-20 16:19:34 +02:00
Marius Hein
d1cc1fb61f
Codestyle and doc strings for list controller
...
refs #4583
2013-08-20 15:45:44 +02:00
Marius Hein
df864d2738
Remove unused summary components
...
refs #4583
2013-08-20 15:38:00 +02:00
Eric Lippmann
ff1ed128ef
Remove filter boxes from monitoring' list views since they're not working
...
refs #4583
2013-08-20 15:14:58 +02:00
Eric Lippmann
ad84e9e9cf
Remove unimplemented list views (concat-, host-, and servicegroups)
...
refs #4583
2013-08-20 15:14:57 +02:00
Eric Lippmann
207c47ae64
Nav: Remove tabs from ListController since their links are redundant to the main menu
...
refs #4583
2013-08-20 15:14:57 +02:00
Jannis Moßhammer
bda3537c36
Comment out error-prone checktime test
...
The check time test for the host list easily fails when the db access
is slower than 1s, so it's commented out here
refs #4575
2013-08-19 20:16:40 +02:00
Marius Hein
3a8a3b8f2c
Monitoring backend: Change database objects to DbAdapterFactory
...
refs #4575
2013-08-19 18:29:26 +02:00
Marius Hein
eddbbd5f5b
Monitoring backend: Move backends.ini to module configuration
...
refs #4575
2013-08-19 18:29:26 +02:00
Jannis Moßhammer
f081531585
Phpdoc and small text fixes
...
refs #4524
2013-08-16 17:38:50 +02:00
Eric Lippmann
a45409c5f3
Monitoring/Commands/Forms/Tests: Follow our Coding Standards
...
refs #4524
2013-08-16 17:38:50 +02:00
Eric Lippmann
5e85dd1c06
Monitoring/Commands: Fix reschedule next check form tests
...
refs #4524
2013-08-16 17:38:50 +02:00
Eric Lippmann
26f7b740c5
Monitoring/Commands: Fix delay notification form tests
...
refs #4524
2013-08-16 17:38:50 +02:00
Eric Lippmann
9f1da2db1a
Monitoring/Commands: Add help messages to the submit passive check result form
...
refs #4524
2013-08-16 17:38:50 +02:00
Eric Lippmann
b46df485ae
Monitoring/Commands: Add help messages to the schedule downtime form
...
refs #4524
2013-08-16 17:38:50 +02:00
Eric Lippmann
48a393894c
Monitoring/Commands: Add help messages to the reschedule next check form
...
refs #4524
2013-08-16 17:38:50 +02:00
Eric Lippmann
bcdda6c0c6
Monitoring/Commands: Add help messages to the delay notification form
...
refs #4524
2013-08-16 17:38:50 +02:00
Eric Lippmann
329d63839b
Monitoring/Commands: Fix tests
...
refs #4524
2013-08-16 17:38:50 +02:00
Eric Lippmann
3d3fbb123d
Monitoring/Commands: Add help messages to the custom notification form
...
refs #4524
2013-08-16 17:38:50 +02:00
Eric Lippmann
9c047f5b72
Monitoring/Commands: Fix typos in forms
...
refs #4524
2013-08-16 17:38:49 +02:00
Eric Lippmann
0af63ea751
Monitoring/Commands: Add help messages to the add comment form
...
refs #4524
2013-08-16 17:38:49 +02:00
Eric Lippmann
fb71ecc5ca
Monitoring/Commands: Add help messages to the problem acknowledgement form
...
refs #4524
2013-08-16 17:38:49 +02:00
Eric Lippmann
83fb198cd2
CS: Fix violations in MonitoringProperties, NotificationView and StatusQuery
...
refs #4187
2013-08-16 16:32:31 +02:00
Eric Lippmann
e5f3a063fb
NotificationQuery: Fix PostgreSQL icompatibility
...
refs #4187
2013-08-16 16:23:15 +02:00
Eric Lippmann
f4b8b369a8
StatusQuery: Use pipes as concat
...
PostgreSQL does not support CONCAT()
refs #4187
2013-08-16 16:23:15 +02:00
Jannis Moßhammer
3c56f5c53a
Remove qUrl, use ListController::query, proper default sorting
...
refs #4187
2013-08-16 16:23:15 +02:00
Johannes Meyer
baaf5b81d9
Add mouse-over effect and host/service detail popup
...
refs #4187
2013-08-16 16:23:14 +02:00
Johannes Meyer
f89d641b06
Add notification queries and display notification details
...
The notification queries to fetch all required details are now implemented
and are used to display data in the overview. Still missing is the host/service
detail popup and some quicklinks. (Contact, Notification command)
refs #4187
2013-08-16 16:23:14 +02:00
Johannes Meyer
3c2122515a
Basic structure for the notification overview
...
refs #4187
2013-08-16 16:23:14 +02:00
Jannis Moßhammer
0b479e3796
Code style fixes, fix documentation, fix tab parameters not being overwritten
...
refs #4512
2013-08-16 15:08:28 +02:00
Jannis Moßhammer
b28c7f2f4c
Refactor test, tabs and controller
...
- Remove unused methods,
- Code style
- Documentation for widgets
- Tabextensions instead of hardcoded tab actions
- Add tests for tabs
- Add missing phpdoc for touched files
- Fix tests
refs #4512
refs #4541
refs #4540
2013-08-16 15:08:28 +02:00
Eric Lippmann
6d98b923ca
CS: Fix docstrings in Icinga/Application/Modules/Module.php and Manager.php
...
refs #4530
2013-08-14 16:08:15 +02:00
Jannis Moßhammer
392e568bf8
Code style fixes: License header, phpdoc tags, psr-2 compliance
...
refs #4530
2013-08-14 16:08:15 +02:00
Jannis Moßhammer
be29b8ff8f
Make ConfigController and PreferenceController extensible by convention
...
- Rename ConfigurationController to ConfigController
- ConfigController and PreferenceController are now subclasses of
BaseConfigController and BasePreferenceController
- Module and Application Config/Preference Tabs are detected via
the ControllerTabCollector
- Moved Controller classes to Icinga/Web/Controller (this is why
so many files are modified)
refs #4530
2013-08-14 16:08:15 +02:00
Eric Lippmann
bd140f2828
CC: Fix phpcs errors of files changed in feature/datetime-element-4440
...
refs #4440
2013-08-12 16:43:10 +02:00
Eric Lippmann
7dea7fcad0
Monitoring/Forms: Replace PHP DateTime usage with DateTimeFactory
...
refs #4440
2013-08-12 16:43:10 +02:00
Eric Lippmann
4d98b64a1b
Monitoring/Forms: Fix docstrings
...
refs #4440
2013-08-12 16:43:09 +02:00
Eric Lippmann
7c732ef682
Monitoring/Tests: Fix DateTimePicker element usage
...
refs #4440
2013-08-12 16:43:08 +02:00
Eric Lippmann
1a2ea656fd
Monitoring/Forms: Don't use DateTime as PhpDateTime
...
refs #4440
2013-08-12 16:43:08 +02:00
Eric Lippmann
1f10cb3124
Framework: Rename DateTime form element to DateTimePicker
...
refs #4440
2013-08-12 16:43:08 +02:00
Eric Lippmann
93ae6d6811
Framework: mv Icinga\Config\Config to Icinga\Application\Config
...
refs #4543
2013-08-12 15:02:25 +02:00
Jannis Moßhammer
237f7f1e60
Fix service compact view, remove dashboard.ini trash
...
refs #4192
2013-08-08 16:33:42 +02:00
Jannis Moßhammer
2a2966fc56
Fix Config.php relocation, fix header.phtml crashing due to old tab rendering
...
refs #4192
2013-08-07 17:51:52 +02:00
Jannis Moßhammer
488310df37
Fix style and docstrings, exception when removing the last tab
...
refs #4192
2013-08-07 17:45:09 +02:00
Jannis Moßhammer
2b25757e20
Add documentation, add errorhandling and sizing
...
The optional width/height parameter can be set in the ini to change the dashboard components
size, documentation has been added and in the error case a message with the configuration is shown
refs #4192
2013-08-07 17:44:30 +02:00
Jannis Moßhammer
f8bb478f0e
Update dashboard implementation
...
fix javascript naming (icinga-url to icingaurl), fix add form, add remove
button, code style changes
refs #4192
2013-08-07 17:43:37 +02:00
Jannis Moßhammer
b3e0d5e8ce
Remove AbstractWidget and make Widget an interface
...
As Widget's already denote an abstract concept, the name
'AbstractWidget' is redundant. Also this class didn't do anything except
fetching a view via a singleton (which is now injected into the render method)
and bypassing the PHP class properties by creating a 'properties' array which is
filled with magic getters and setters (which now are simply php class properties)
Further changes:
- toString is removed, as this incorporated a lot of
application logic which would cause unrecoverable
errors when throwing exceptions
- renderToHtml is now just render and the view dependency must be
passed, as a widget shouldn't be responsible for getting
view instance (this means that <?= $this->tabs ?> is now
<?= $this->tabs->render($this); ?> in the templates
- Controllers don't have $this->widget anymore as Widgets are
directly instanciated with their class, allowing better code completion
and avoiding hidden dependencies, also Widget::create is now removed
in favor of direct instanciation.
refs #4192
2013-08-07 17:41:43 +02:00
Matthias Jentsch
56e47fd084
Add an ini writer for configuration files
...
Add an ini writer that respects the file structure and the comments that may be
already present in the config file. Move Application/Config.php into
Config/Config.php.
refs #4352
2013-08-07 15:58:42 +02:00
Eric Lippmann
290c8c5225
CC: Add newline to end of file where missing
...
Following command was used:
$ find application/ library/Icinga/ modules/ -name *.php | xargs sed -i -e :a -e '/./,$!d;/^\n*$/{$d;N;};/\n$/ba;$a\'
2013-08-07 10:27:50 +02:00
Jannis Moßhammer
ff62a82895
Fix dynamic form validation behaviour, fix documentaion, fix correct isValid() call
...
- When a dynamic form is modified, no validation is performed, but
the form is being populated with $this->populate.
- changed parent::isValid to $this->isValid, otherwise no custom validation
logic could be implemented
- Updated documentation
- Fix CSRF protection by removing the time
refs #4439
2013-08-06 15:08:54 +02:00
Johannes Meyer
66592ecabf
Enable dynamic form elements
...
Expire time of the AcknowledgeForm and hours as well as
minutes of the ScheduleDowntimeForm are now dynamic.
refs #4439
2013-08-06 15:06:20 +02:00
Marius Hein
584198f00c
Fix hostlist test
...
refs #4516
2013-08-06 14:06:25 +02:00
Marius Hein
15999eb880
Change _forward to redirect() to keep url history updates
...
refs #4382
2013-08-06 13:39:10 +02:00
Johannes Meyer
d78a5338df
Rename ConfirmationForm and ConfirmationWithIdentifierForm
...
Rename ConfirmationForm to CommandForm and
ConfirmationWithIdentifierForm to CommandWithIdentifierForm.
refs #4439
2013-08-06 11:14:56 +02:00
Johannes Meyer
5533b632ed
Fix code style and make form name non mandatory
...
refs #4439
2013-08-06 11:11:29 +02:00
Johannes Meyer
f26af0eb12
Update command form tests
...
Update command form tests so that they reflect the new dynamic
functionality and the correct purpose of "isSubmittedAndValid".
refs #4439
2013-08-06 11:11:28 +02:00
Johannes Meyer
8efbe6f613
Move submit and cancel handling
...
Move submit and cancel handling from ConfirmationForm to Form.
refs #4439
2013-08-06 11:11:28 +02:00
Johannes Meyer
fa7379adc7
Enable dynamic form elements
...
Expire time of the AcknowledgeForm and hours as well as
minutes of the ScheduleDowntimeForm are now dynamic.
refs #4439
2013-08-06 11:09:42 +02:00
Johannes Meyer
98e7ab02db
Implement dynamic form elements
...
Rename "isPostAndValid" to "isSubmittedAndValid" and refactor it.
Add possibility for specific form elements to auto-submit their form.
refs #4439
2013-08-06 11:09:42 +02:00
Marius Hein
c9c5e6ef3c
Send commands: Review fixes
...
refs #4441
2013-08-06 09:32:27 +02:00
Jannis Moßhammer
029ff17cec
Add documentation for instances.ini
...
refs #4441
2013-08-06 09:27:37 +02:00
Jannis Moßhammer
c2781f4969
Fix test cases for Confirmation forms
...
refs #4441
2013-08-06 09:27:37 +02:00