Johannes Meyer
ef4bd5653c
js: Don't trigger beforerender or rendered for discarded content
...
A listener for `rendered` should not need to check if the content
really changed. Though, if such a listener is not triggered anymore,
`beforerender` listeners also must not be triggered, as they might
assume that the content is really being updated and their accompanied
`rendered` listener is triggered. (e.g. input-enrichment.js)
This might be breaking change and any `Behavior.renderHook` implementation
needs to be checked against it. Potentially also in third party modules.
As if such an implementation updates the container on its own,
`beforerender` listeners only have access to the updated container after
this change, while they had access to the original beforehand.
`rendered` listeners should not be that much affected, as for them the
change results in the same behavior as if no update has ever been
scheduled for the container.
fixes #5056
2023-07-07 11:22:39 +02:00
Johannes Meyer
d311005089
Update test bootstrapping ( #5050 )
2023-07-05 09:32:11 +02:00
Johannes Meyer
597cb5c94d
tests: Use a real app for bootstrapping
...
Makes the tests less isolated, but streamlines
the autoloading and other stuff in a way that's
more maintainable than before.
2023-07-05 09:24:49 +02:00
Johannes Meyer
82d39be642
BaseTestCase: Refactor request and response mocking
2023-07-04 17:05:06 +02:00
Johannes Meyer
08bfc4f596
BaseTestCase: Drop timezone setup, the app will do it
2023-07-04 17:05:06 +02:00
Johannes Meyer
531479a92e
BaseTestCase: Deprecate directory properties
2023-07-04 17:05:06 +02:00
Johannes Meyer
3f447cb954
BaseTestCase: Remove t
and mt
function declarations
2023-07-04 17:05:06 +02:00
Johannes Meyer
58673b0b95
PhpCommand: Accept phpunit path as option and fix coverage
2023-07-04 17:05:06 +02:00
Johannes Meyer
776e0803fa
tests: The app is soon not mocked anymore, so don't use it as such
2023-07-04 16:26:36 +02:00
Johannes Meyer
e572652f4c
ConfigTest: Always load test config from disk
2023-07-04 16:25:11 +02:00
Johannes Meyer
d0b2ed177c
tests: Drop DateFormatTestBroken as it is .. broken
2023-07-04 16:24:37 +02:00
Johannes Meyer
c9f3f0444d
tests: Require view helpers at runtime
2023-07-04 16:24:19 +02:00
Johannes Meyer
e7adc06497
ApplicationBootstrap: Process ICINGAWEB_MODULES_DIR
by default
2023-07-04 16:08:41 +02:00
Gianluca Piccolo
db9888b1f1
Fixes #5020
2023-06-22 15:11:39 +02:00
Sukhwinder Dhillon
59fc7dd745
Fix installation doc for centOS
2023-06-22 15:10:05 +02:00
Thomas Gelf
463cc748bf
MonitoringBadgeNavigationItemRenderer: do not fail
...
...on wildcard filter
2023-06-22 15:07:47 +02:00
Sukhwinder Dhillon
ea1e5f9245
TimeLine: Always parse int
to validateTime()
...
Php < 8.1 converts fetched time(stamp) to string. This must always be an int.
2023-06-22 15:05:10 +02:00
Johannes Meyer
c40cfb41a8
RoleForm: Force a suffix for all element names
...
fixes #4973
2023-06-22 15:04:19 +02:00
Sukhwinder Dhillon
5000d3117b
IcingaException: Only use vsprintf()
if $args
given
...
If the passed message contains a `%`, but no `$args`, `vsprintf()` throws an error.
2023-06-22 15:03:14 +02:00
Johannes Meyer
10d3fb64f9
js: Automatically transform .time-until widgets into .time-ago ones
2023-06-22 15:02:37 +02:00
raviks789
f74041e00a
Javascript: Add copy-to-clipboard
behavior
...
Utilizes `CopyToClipboard.js` from ipl-web
2023-06-20 12:06:27 +02:00
Sukhwinder Dhillon
65b9024bc5
Winter.less: Don't set bg-color to transparent
2023-06-19 10:09:49 +02:00
Sukhwinder Dhillon
09b9d7401c
base.less: Make menu nav-level-2 hover better visible
2023-06-19 10:09:36 +02:00
Johannes Meyer
357398cecd
php: Fix mysql container startup
2023-06-19 10:03:04 +02:00
Alexander A. Klimov
7eb6359281
GHA: handle changed interface of Icinga/docker-icingaweb2
2023-05-23 10:32:25 +02:00
Eric Lippmann
a3235555bb
js: Also preserve scroll-y upon auto-refresh
2023-05-19 15:29:44 +02:00
Johannes Meyer
e0e2ff7a86
Merge pull request #5026 from Icinga/let-autosubmits-trigger-real-submits
...
Let autosubmits trigger real submits
2023-05-19 15:02:51 +02:00
Johannes Meyer
cb6a0c120f
events.js: Trigger a real submit upon autosubmit
2023-05-19 14:53:31 +02:00
Johannes Meyer
7da5eb0972
modal.js: Trigger a real submit upon autosubmit
2023-05-19 14:53:31 +02:00
Johannes Meyer
63eae12d33
loader.js: Transmit nearest identifiable parent as origin..
...
..upon autosubmit if the real element has no id or name.
2023-05-19 14:42:00 +02:00
Johannes Meyer
88caf3c141
loader.js: Empty nested containers upon __CLOSE__
2023-05-19 14:17:41 +02:00
Johannes Meyer
4b6df1bef9
Release version 2.11.4
2023-01-26 12:53:47 +01:00
Johannes Meyer
693bed1710
Raise version to 2.11.4
2023-01-26 09:42:18 +01:00
Johannes Meyer
299ef68102
Update CHANGELOG.md
2023-01-26 09:42:18 +01:00
Johannes Meyer
74c8e24884
Update AUTHORS
2023-01-26 09:42:18 +01:00
Johannes Meyer
fdcfdfa3de
Merge pull request #4988 from Icinga/dkr-env
...
Provide the behaviour the Docker images patch into us by ourselves
2023-01-26 09:35:39 +01:00
Alexander A. Klimov
73dcf2bc89
setup: welcome page: on Docker remove redundant instructions
2023-01-24 11:23:58 +01:00
Alexander A. Klimov
3784fe80b7
LoggingConfigForm: on Docker default to webserver log
2023-01-24 11:23:34 +01:00
Alexander A. Klimov
0031108160
icingacli setup config webserver apache: add trailing / to Alias dir
...
if the Alias URI (e.g. /) has a trailing /. Otherwise Apache says 403.
2023-01-18 13:55:45 +01:00
Johannes Meyer
04c9edeccc
Merge pull request #4986 from Icinga/enhance-module-test-compatibility
...
Enhance module test compatibility
2023-01-18 12:18:54 +01:00
Johannes Meyer
0803a1bbdc
test: Support multiple paths in ICINGAWEB_MODULES_DIR
2023-01-18 12:07:11 +01:00
Johannes Meyer
93bac9443d
test: Expect internal test dependencys in php/Lib
...
Loading internal test dependencies did previously only work
if placed directly inside `php`. No module does this at this
time.
2023-01-18 12:03:54 +01:00
Johannes Meyer
23c4ae2469
test: Don't require Mockery the legacy way
...
Installing locally as composer library is now the only way.
2023-01-18 12:02:38 +01:00
Yonas Habteab
6d2a585de9
TemporaryLocalFileStorage: Fix unexpected crash in destructor
2023-01-16 14:15:43 +01:00
Johannes Meyer
e542982de0
Fix some reflected XSS bugs
...
fixes #4979
2023-01-12 09:55:57 +01:00
Johannes Meyer
8837fea7a4
Libraries: Only attempt a partial match if the library name contains a slash
...
fixes #4971
2023-01-12 09:54:42 +01:00
Johannes Meyer
cbf8cfc738
js: Transmit X-Icinga-AutoSubmittedBy
upon autosubmits
...
This header contains the name or id of the element responsible
for triggering the automatic form submission.
2023-01-12 09:54:18 +01:00
Johannes Meyer
96179182e4
Merge pull request #4976 from Icinga/do-not-disable-all-inputs-on-form-submit
...
js: Only disable submit buttons on form submit
2023-01-12 09:53:45 +01:00
Johannes Meyer
4641d8e820
js: Don't disable inputs upon auto-submits at all
2023-01-12 09:39:31 +01:00
Johannes Meyer
7cea0d78e4
js: Only disable submit buttons on form submit
...
Previously all `input` elements (text, date, number, ...)
got also disabled. This is unecessary.
2023-01-12 09:39:31 +01:00