Problem/Motivation
getName should be removed and needs to be corrected ad id()
See #2384601: Rename Sensor to SensorPlugin
public function getName() {
return $this->id;
}Proposed resolution
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | monitoring_2389111_id_9.patch | 21.53 KB | miro_dietiker |
| #5 | monitoring-2389111-remove-get-name-5.interdiff.txt | 7.28 KB | Anushka-mp |
| #5 | monitoring-2389111-remove-get-name-5.patch | 21.04 KB | Anushka-mp |
Comments
Comment #1
Anushka-mp commentedComment #2
Anushka-mp commentedgetName() changed to id()
Comment #3
berdirLooks like there are a few wrapper methods and variable names/string placeholders that we should rename as well...
Lets also rename @name to @id.
Same here, ID
This should now be the same implementation as the parent, so you should be able to remove it?
getSensorId() then here.
Same here.
@sensor_name => @sensor_id.
Comment #4
Anushka-mp commentedLeftovers corrected.
Comment #5
Anushka-mp commentedgetSensorName() usages corrected to getSensorId.
Comment #6
miro_dietikerGood. Still some work.
Regarding usage of getSensorName => getSensorId... Why not use refactoring and it is done automatically?
@id or @sensor_id?
I think we should consistently use sensor_ prefix in string.
Id => ID
Comment #8
miro_dietikerOK, some minor fixings. Let's still run the tests again to make sure everything goes well.
I id not unify @id and @sensor_id. There are still many other occurences. Will do a followup for global cleanup.
Comment #9
miro_dietikerTests pass locally.
Committed, pushed.
Comment #12
miro_dietikerToo late, bot.