Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current comparison for configured threshold values is not type-safe and thus ignores the not so un-common threshold of 0. Attached patch fixes the issue.
Comment | File | Size | Author |
---|---|---|---|
#6 | d7_monitoring-0-values-6.patch | 4.2 KB | a.milkovsky |
Comments
Comment #2
fagoComment #3
miro_dietikerOopsie... Interestingly we never needed that "not-so-uncommon" threshold value ;-) - but sure!
Comment #5
miro_dietikerDoes this threshold problem also apply for 8.x?
Comment #6
a.milkovskyThere was a typo. Fixed the patch in #2
Comment #7
a.milkovskyThe same issue in Drupal 8 #2704061: Sensors ignore thresholds of 0. Drupal 8.
Comment #8
fagoops, too many parentheses. Good to have test coverage! Thanks, a.milkovsky - I think this is ready now.
Comment #9
BerdirThis looks good, but tests would definitely be helpful here, we added some to the D8 port, should be possible to backport them to 7.x
Comment #11
BerdirDecided to commit and keeping open for tests. Maybe someone will pick this up. Tagging as novice, it is not trivial but the tests have been written, they just need to be applied from the other issue.