3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

1266 commits

Author SHA1 Message Date
Michael Stenta
249f74d9f4 Document Data Streams in the data model docs. 2021-04-01 11:22:28 -04:00
paul121
bb02b4259b Use array_replace_recursive to prevent merging duplicate values into arrays. 2021-04-01 11:22:28 -04:00
Michael Stenta
e3a74c18e0 Document when to run farm_migrate_sensor_data migrations. 2021-04-01 11:22:28 -04:00
Michael Stenta
3cf61d4c88 Remove LegacySensorApiInterface and call apiHandleRequest() directly. 2021-04-01 11:22:28 -04:00
Michael Stenta
2a12fb4e3d DataStreamPrivateKeyAccess trait is not necessary in LegacyListener because it is in the parent class. 2021-04-01 11:22:28 -04:00
Michael Stenta
babe340e21 Generalize hosting SSL instructions regarding sensor data streams. 2021-04-01 11:22:28 -04:00
Michael Stenta
c0f9827d1a Reference the Basic class name instead of including the code in docs. 2021-04-01 11:22:28 -04:00
Michael Stenta
645ce82b44 Refer to legacy_listener as "Listener (Legacy)". 2021-04-01 11:22:28 -04:00
Michael Stenta
60efdd5de7 Explicitly check the value of a name-filtered get request in LegacyApiTest. 2021-04-01 11:22:27 -04:00
Michael Stenta
b386442df4 Change /api/data_stream/listener/UUID/data to /api/data_stream/UUID/data. 2021-04-01 11:22:27 -04:00
paul121
8a9f65990a Remove data stream list_builder handler and class. 2021-04-01 11:22:27 -04:00
paul121
a5078847b9 Data stream entity reference fields use the inline_entity_form_complex form widget. 2021-04-01 11:22:27 -04:00
paul121
8338b3bcd4 Remove PluginFormInterface from DataStreamTypeInterface.
Custom data stream fields are supported by core form handling. This
keeps things simpler for now and makes it much easier to use inline
entity forms.
2021-04-01 11:22:27 -04:00
paul121
5899b2cea5 Legacy tests should be in src directory. 2021-04-01 11:22:27 -04:00
paul121
ce02197697 Save a reference to the start time of mock data stream data. 2021-04-01 11:22:27 -04:00
paul121
019a734136 Remove connection and tableName properties from DataStreamSqlStorage. 2021-04-01 11:22:27 -04:00
paul121
d9897661c4 Use assertEquals because assertEqual is deprecated. 2021-04-01 11:22:27 -04:00
Michael Stenta
95dad89e14 Enable entity module for automated tests. 2021-04-01 11:22:27 -04:00
Michael Stenta
424c45aa95 Make $modules protected. 2021-04-01 11:22:27 -04:00
Michael Stenta
d223456f02 Declare setUp() method return type. 2021-04-01 11:22:27 -04:00
Michael Stenta
ea253c1e26 Use Drupal core KernelTestBase. 2021-04-01 11:22:27 -04:00
Michael Stenta
f8fb026a3d Move data stream Views to optional config. 2021-04-01 11:22:27 -04:00
Michael Stenta
0b56e1469d Move migration source for the d7 sensor asset to farm_migrate. 2021-04-01 11:22:27 -04:00
paul121
c14d5053f0 LegacyListener extends the Basic data stream type. 2021-04-01 11:22:27 -04:00
paul121
bb6a6e0cd3 Add a getViewsData() method to data stream type plugins. 2021-04-01 11:22:27 -04:00
paul121
b2577e0974 Use the contrib entity EntityViewsData handler. 2021-04-01 11:22:27 -04:00
paul121
74d72f3171 Rename data_stream_data_legacy to data_stream_legacy. 2021-04-01 11:22:27 -04:00
paul121
2419039339 Move farm_sensor_listener to data_stream/legacy. 2021-04-01 11:22:27 -04:00
paul121
58d2631ead Move data_stream field to sensor bundle plugin. 2021-04-01 11:22:27 -04:00
paul121
8bce65a7e9 farm_sensor depends on data_stream. 2021-04-01 11:22:27 -04:00
paul121
7c3a73b924 Do not add data_stream field to equipment assets. 2021-04-01 11:22:27 -04:00
paul121
977fdd85a0 Rename data_stream_data_storage to data_stream_basic. 2021-04-01 11:22:27 -04:00
paul121
5d42be6412 Rename listener to basic. 2021-04-01 11:22:27 -04:00
paul121
0981588bb6 Fix fraction field schema error. 2021-04-01 11:22:27 -04:00
paul121
64ba354e33 Update data stream docs to reflect bundle plugins. 2021-04-01 11:22:27 -04:00
paul121
d9a2a858cf View private and public key labels inline, standardize field definition. 2021-04-01 11:22:27 -04:00
paul121
768169f4c0 Remove the created field from the UI. 2021-04-01 11:22:27 -04:00
paul121
01b38c3204 Use a default value callback method to set the private key. 2021-04-01 11:22:27 -04:00
paul121
f20acf011d Fix enforced module dependency. 2021-04-01 11:22:27 -04:00
paul121
783d547cc0 Use the contrib entity bundle class instead of custom data stream plugin. 2021-04-01 11:22:27 -04:00
paul121
3fca66b83b Create private key using a default value callback function.
This way a default value is always created, such as via the API or in
in the inline entity form widget.
2021-04-01 11:22:27 -04:00
paul121
41058a4b57 Fix phpcs errors. 2021-04-01 11:22:27 -04:00
paul121
956d9eb315 Display legacy listener data on entity view page. 2021-04-01 11:22:27 -04:00
paul121
85cd3f8b93 Add a block view with table and CSV export of legacy listener data. 2021-04-01 11:22:27 -04:00
paul121
a035e8d3fb Describe the data_stream_data_legacy table to use in views. 2021-04-01 11:22:27 -04:00
paul121
4296abc4be Delete data when legacy_listener data streams are deleted. 2021-04-01 11:22:27 -04:00
paul121
1a92ffe4a0 Add a migration for sensor listener data. 2021-04-01 11:22:27 -04:00
paul121
9469d9cf4f Create a migration process to look up data streams provided by an asset. 2021-04-01 11:22:27 -04:00
paul121
18122423e7 Create a migration source for sensor listener data. 2021-04-01 11:22:27 -04:00
paul121
7e1aa10f1e Remove references to data streams when they are deleted. 2021-04-01 11:22:27 -04:00