Problem/Motivation

As a followup from renaming SensorInfo => SensorConfig, we also discussed about further renaming concepts for clarity and uniformity.
#2382539: Rename SensorInfo to SensorConfig

Discussed:
Sensor/Sensors/* => Sensor/*
Sensor.php => SensorBase.php

The SensorType rename is not fully clear as adding "Type" to all Sensor thingies results in a lot extra garbage and no real value.
In case we only do this, we should still think about what remains on Sensor for shortness...
Discussed:
Plugin/monitoring/Sensor => Plugin/monitoring/SensorType
Sensor/Sensors/Sensor*.php => SensorType*.php
Plugin/monitoring/Sensor/Sensor*.php => Plugin/monitoring/SensorType/*Sensor.php

Proposed resolution

Rename stuff and further think about DX.

Remaining tasks

Decide about SensorType name usage.

User interface changes

API changes

Comments

miro_dietiker’s picture

Status: Active » Needs review
StatusFileSize
new25.01 KB

Moved src/Sensor/Sensors/* to src/Sensor/*
file move, namespace change.

Sensor.php => SensorBase.php
Subclass names untouched.

Plugin/monitoring/Sensor/Sensor*.php => Plugin/monitoring/Sensor/*Sensor.php
Renamed the sensors

Status: Needs review » Needs work

The last submitted patch, 1: monitoring_2383993_rename.patch, failed testing.

miro_dietiker’s picture

Status: Needs work » Needs review
StatusFileSize
new30.87 KB

Nice. The fail is again unrelated. :-)

Additional renames...
/Sensor/Sensor*.php => /Sensor/*Sensor.php

Status: Needs review » Needs work

The last submitted patch, 3: monitoring_2383993_rename_3.patch, failed testing.

miro_dietiker’s picture

Status: Needs work » Needs review
StatusFileSize
new34.83 KB

OK... refactoring doesn't always automatically rename everything right... ;-)

Status: Needs review » Needs work

The last submitted patch, 5: monitoring_2383993_rename_5.patch, failed testing.

miro_dietiker’s picture

Status: Needs work » Needs review
StatusFileSize
new36.2 KB

And strings might containt the previous names too...

miro_dietiker’s picture

Title: Rename Sensor* to *Sensor and SensorType » Rename Sensor* to *Sensor, Sensor/Sensors/* to Sensor/*, Sensor to SensorBase

Renaming title of more specificity.

Separating Consideration of Sensor to SensorType into followup.

miro_dietiker’s picture

Status: Needs review » Fixed

And pushed.

  • miro_dietiker committed 190c749 on 8.x-1.x
    Issue #2383993 by miro_dietiker: Rename Sensor* to *Sensor, Sensor/...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.