1834 Commits

Author SHA1 Message Date
Eric Lippmann
e525688383 Replace DatasourceInterface with Selectable 2014-04-15 17:43:45 +02:00
Eric Lippmann
1a2577dd47 Db/Connection: Replace getConnection() with getDpAdapter()
For readability getConnection() is deprecated in favor of getDpAdapter()
since Db/Connection is already the connection.
2014-04-15 17:37:44 +02:00
Eric Lippmann
c85ade39c0 Create count and select database queries separately
The previous implementation always created both the count
and the select query.
For readability the property baseQuery has been renamed to select which the
IDO queries must take into account.
2014-04-15 17:21:10 +02:00
Eric Lippmann
d94170372d Let the BaseQuery implement the query interfaces and remove filter functionality
This commit breaks the application as it introduces incompatible changes which
will be adopted bit by bit.

Since the filter functionality is subject to change it's removed from the BaseQuery.
The functions setOrderColumns() and getOrderColumns() are deprecated because they're
replaced by functions in the Sortable interface.
Further the Sortable interface now defines the sort constants ASC and DESC and are
thus removed from the BaseQuery. In addition the sort constants are no longer integers
but strings.
The distinct() and isDistinct() functions are removed because they're database specific.
They have been introduced with changes in the PivotTable implementation which should
actually not call distinct blindly anyway.
2014-04-15 16:40:25 +02:00
Eric Lippmann
659e6f774e Add interface "Queryable" (WIP)
Interface for classes which act as a data source and thus return or are a Fetchable.
The name of the interface is not yet final though.
2014-04-15 16:23:17 +02:00
Eric Lippmann
0f3d70c437 Add interface "Filterable" (WIP)
This interface is empty yet. It's meant to define how to filter a result set.
2014-04-15 16:20:11 +02:00
Eric Lippmann
e5e3dc9c43 Add interface "Sortable" defining how a result set can be sorted
This interface should be used to ensure that sorting a result set
is standardized among the different query implementations.
2014-04-15 16:07:27 +02:00
Eric Lippmann
3e0d254dfd Implement "Limitable" interface for retrieving just a portion of a result set
Defines how to set a limit count and offset and should be used everywhere
where setting limit and offset is supported.
2014-04-15 15:48:51 +02:00
Eric Lippmann
c083747f67 Add "Fetchable" interface for classes providing data retrieval
Classes for retrieving data must implement the Fetchable interface
which defines the usual fetch*() functions.
2014-04-15 15:40:07 +02:00
Eric Lippmann
2cc3823a95 Implement interface "Browsable" for classes providing page turning
This interface is intended to be used everywhere a Zend_Paginator
is returned within our code.
2014-04-15 15:36:13 +02:00
Johannes Meyer
139023571f Fix exception on 404 in monitoring/show/ 2014-04-09 08:44:51 +02:00
Johannes Meyer
82ca774331 Re-enable setting the current configuration when showing icingaweb/config
fixes #5972
2014-04-08 15:18:14 +02:00
Johannes Meyer
875f338824 Merge branch 'bugfix/preference-dbstore-broken-5682'
fixes #5682
2014-04-08 13:30:34 +02:00
Johannes Meyer
3195e6a897 Rewrite preference DbStore
refs #5682
2014-04-08 13:28:45 +02:00
Johannes Meyer
a1649a1f22 Refactor PreferencesStore and IniStore
refs #5682
2014-04-07 15:13:28 +02:00
Johannes Meyer
6692f253fd Fix that the preference configuration does not handle defaults properly 2014-04-07 15:03:08 +02:00
Thomas Gelf
072f157064 Allow developers to disable minimizers 2014-04-07 12:04:23 +00:00
Thomas Gelf
a857af60be Intendation 2014-04-07 12:03:53 +00:00
Thomas Gelf
88cdf99934 More code style 2014-04-07 12:03:53 +00:00
Johannes Meyer
d658eff9b1 Add form field to set the database name for a resource of type db
fixes #5115
2014-04-07 09:55:19 +02:00
Johannes Meyer
d109046bc0 Fix that the general and logging form cannot write configuration changes
fixes #5952
2014-04-07 09:27:37 +02:00
Michael Friedrich
e6bb32be64 Fix division by zero in Perfdata.php
Fixes #5708

Signed-off-by: Michael Friedrich <Michael.Friedrich@netways.de>
2014-04-06 19:35:08 +02:00
Johannes Meyer
ea44ae3693 Improve failure handling when setting the locale 2014-04-04 15:34:46 +02:00
Johannes Meyer
8be3ccc527 Make it possible to save the session by its associated session namespaces 2014-04-04 11:13:07 +02:00
Johannes Meyer
98b640f1e0 Fix that removed values/namespaces remain in the session storage
fixes #5934
2014-04-04 11:10:45 +02:00
Alexander Klimov
16a026194b Merge branch 'feature/logfile_reader-4514'
resolves #4514
2014-04-02 13:50:00 +02:00
Alexander Klimov
cdf1a0b683 Write more class documentation 2014-04-02 13:47:02 +02:00
Alexander Klimov
241fda1196 Small cleanup 2014-04-02 13:47:02 +02:00
Alexander Klimov
2a10f6184a Write class documentation 2014-04-02 13:47:02 +02:00
Alexander Klimov
d38e879d69 Sort application log DESC
resolves #4514
2014-04-02 13:47:02 +02:00
Alexander Klimov
e6ec4c6011 Complete configuration file
refs #4514
2014-04-02 13:47:02 +02:00
Alexander Klimov
e2bfc06d6c Moved application log from monitoring module
refs #4514
2014-04-02 13:47:02 +02:00
Alexander Klimov
de87bb7a8a Complete configuration file
refs #4514
2014-04-02 13:47:02 +02:00
Alexander Klimov
7c599e206e Make it working
refs #4514
2014-04-02 13:47:01 +02:00
Alexander Klimov
933a851f65 Initial commit
refs #4514
2014-04-02 13:47:01 +02:00
Johannes Meyer
2d8cd6ae6c Merge branch 'feature/monitoring-timeline-4190'
resolves #4190
2014-04-02 10:55:00 +02:00
Johannes Meyer
ae2d61682f Fix how the timeline processes dates
refs #4190
2014-04-02 10:53:39 +02:00
Johannes Meyer
21b9c1f4af Fix that filters are not preserved on timeline element urls
refs #4190
2014-04-01 14:26:10 +02:00
Johannes Meyer
19b2a94777 Fix that the timeline does not regenerate the logarithmical base
refs #4190
2014-04-01 11:46:45 +02:00
Johannes Meyer
2049e42988 Show a horizontal line when the timeline switches its context
refs #4190
2014-04-01 11:46:44 +02:00
Johannes Meyer
80b4e3bf33 Add infinite scrolling to the timeline
refs #4190
2014-04-01 11:46:44 +02:00
Johannes Meyer
7440d61189 Allow target being extended by Icinga.Loader.loadUrl 2014-04-01 11:46:44 +02:00
Johannes Meyer
758fd06cfe Trigger 'rendered' event also on page loads 2014-04-01 11:46:44 +02:00
Johannes Meyer
14ed3b6fe2 Fix that the timeline does not accept timestamps as start and end
refs #4190
2014-04-01 11:46:44 +02:00
Johannes Meyer
c94cd40b92 Center timeframe elements vertically
refs #4190
2014-04-01 11:46:44 +02:00
Johannes Meyer
e3be5dd255 Restructure timeline layout and styles
refs #4190
2014-04-01 11:46:44 +02:00
Johannes Meyer
c19791fdd7 Fix brightness calculation in Icinga\Utils\Color 2014-04-01 11:46:44 +02:00
Johannes Meyer
8e7d1dd8f6 Improve timeline style
refs #4190
2014-04-01 11:46:44 +02:00
Johannes Meyer
6d8199e7df Fix the timeline's floating if javascript is not enabled
refs #4190
2014-04-01 11:46:43 +02:00
Johannes Meyer
3d658a664c Do not use logarithm base from session if the timeline is not being extended
refs #4190
2014-04-01 11:46:43 +02:00