Problem/Motivation
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.
Steps to reproduce
Try setting result_class to a custom class on a sensor, and notice the class doesn't get used.
Proposed resolution
Amend SensorRunner::getResultObject to read from the SensorConfig before falling back to the default class.
Remaining tasks
Post a MR.
User interface changes
n/a
API changes
n/a
Data model changes
n/a
Issue fork monitoring-3608887
Show commands
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.