Refer to legacy_listener as "Listener (Legacy)".
This commit is contained in:
parent
60efdd5de7
commit
645ce82b44
|
@ -51,7 +51,7 @@ via the API with the `private_key`, or by anyone if the data stream is set to
|
|||
`public`. Basic data streams also provide simple ways to view data in a
|
||||
table or graph, and export as CSV.
|
||||
|
||||
### Legacy listener data stream
|
||||
### Listener (Legacy) data stream
|
||||
|
||||
The `farm_sensor_listener` module provides a `legacy_listener` data stream type
|
||||
that is compatible with the Listener sensor type from farmOS 1.x. It is
|
||||
|
|
|
@ -5,5 +5,5 @@ dependencies:
|
|||
module:
|
||||
- farm_sensor_listener
|
||||
id: legacy_listener
|
||||
label: Legacy listener
|
||||
description: 'Legacy Listener stream'
|
||||
label: Listener (Legacy)
|
||||
description: 'Listener (Legacy) data stream'
|
||||
|
|
|
@ -14,7 +14,7 @@ dependencies:
|
|||
- serialization
|
||||
- user
|
||||
id: data_stream_legacy_listener_data
|
||||
label: 'Data stream: legacy listener data'
|
||||
label: 'Data stream: Listener (Legacy) data'
|
||||
module: views
|
||||
description: ''
|
||||
tag: ''
|
||||
|
@ -422,7 +422,7 @@ display:
|
|||
field: legacy_listener_data
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: 'Legacy listener data'
|
||||
admin_label: 'Listener (Legacy) data'
|
||||
required: true
|
||||
entity_type: data_stream
|
||||
plugin_id: standard
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: Sensor listener
|
||||
description: Provides a legacy listener data stream type.
|
||||
description: Provides a Listener (Legacy) data stream type to support sensors created in farmOS 1.x.
|
||||
type: module
|
||||
package: farmOS
|
||||
package: farmOS (Legacy)
|
||||
core_version_requirement: ^9
|
||||
dependencies:
|
||||
- farm:farm_sensor
|
||||
|
|
|
@ -17,7 +17,7 @@ use Symfony\Component\HttpFoundation\Request;
|
|||
*
|
||||
* @DataStreamType(
|
||||
* id = "legacy_listener",
|
||||
* label = @Translation("Legacy listener"),
|
||||
* label = @Translation("Listener (Legacy)"),
|
||||
* )
|
||||
*/
|
||||
class LegacyListener extends Basic implements DataStreamStorageInterface, LegacySensorApiInterface {
|
||||
|
@ -38,7 +38,7 @@ class LegacyListener extends Basic implements DataStreamStorageInterface, Legacy
|
|||
// Define the public_key field.
|
||||
$field = BundleFieldDefinition::create('string')
|
||||
->setLabel($this->t('Public key'))
|
||||
->setDescription($this->t('Public key used to identify this data stream in the legacy listener endpoint.'))
|
||||
->setDescription($this->t('Public key used to identify this data stream in the Listener (Legacy) endpoint.'))
|
||||
->setDefaultValueCallback(DataStream::class . '::createUniqueKey')
|
||||
->setSetting('max_length', 255)
|
||||
->setSetting('text_processing', 0)
|
||||
|
@ -90,14 +90,14 @@ class LegacyListener extends Basic implements DataStreamStorageInterface, Legacy
|
|||
// Add a legacy_listener_data relationship to the data_stream_data table
|
||||
// that references the data_stream_legacy table.
|
||||
$data['data_stream_data']['legacy_listener_data'] = [
|
||||
'title' => $this->t('Legacy listener data'),
|
||||
'help' => $this->t('Legacy listener data stream data.'),
|
||||
'title' => $this->t('Listener (Legacy) data'),
|
||||
'help' => $this->t('Listener (Legacy) data stream data.'),
|
||||
'relationship' => [
|
||||
'base' => 'data_stream_legacy',
|
||||
'base field' => 'id',
|
||||
'field' => 'id',
|
||||
'id' => 'standard',
|
||||
'label' => $this->t('Legacy listener data'),
|
||||
'label' => $this->t('Listener (Legacy) data'),
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ use Drupal\Tests\data_stream\Traits\DataStreamCreationTrait;
|
|||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Test the Legacy Listener data stream type.
|
||||
* Test the Listener (Legacy) data stream type.
|
||||
*
|
||||
* @group farm
|
||||
*/
|
||||
|
@ -46,7 +46,7 @@ class LegacyApiTest extends DataStreamTestBase {
|
|||
protected $startTime;
|
||||
|
||||
/**
|
||||
* A legacy Listener data stream.
|
||||
* A Listener (Legacy) data stream.
|
||||
*
|
||||
* @var \Drupal\data_stream\Entity\DataStreamInterface
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue