Closed (fixed)
Project:
Monitoring
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2026 at 05:20 UTC
Updated:
23 Jul 2026 at 07:20 UTC
Jump to comment: Most recent
The entity type SensorConfig exposes a config property called result_class. Setting it doesn't do anything, since this it not properly wired. This should be fixed, so the code does what is expected.
Try setting result_class to a custom class on a sensor, and notice the class doesn't get used.
Amend SensorRunner::getResultObject to read from the SensorConfig before falling back to the default class.
Post a MR.
n/a
n/a
n/a
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
alecsmrekar commentedPipeline failure is caused by a test in MonitoringSearchAPITest, which doesn't seem to be related to the MR here. The new test method
testResultClassis green.Comment #4
alecsmrekar commentedComment #5
berdirThanks, merging.