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

207 commits

Author SHA1 Message Date
Michael Stenta 1a35a65c66 Consistently provide *_options() helpers for all uses of *_allowed_values(). 2022-02-28 14:20:37 -05:00
Michael Stenta a67f241a49 Fix access check for "Developer information" on sensors and data streams. 2022-02-06 12:55:57 -05:00
Paul Weidner 216f4cb26d Add test for recursive group membership. 2022-01-28 08:56:23 -05:00
Paul Weidner 432b81e6fc Return an array of assets keyed by their ID. 2022-01-28 08:56:22 -05:00
Michael Stenta b3acd220cc Only show developer information if user has edit access to the entity. 2022-01-18 22:18:26 -05:00
Michael Stenta 1e218c2baa Dynamically set example value names based on reference data stream names. 2022-01-18 22:18:26 -05:00
Michael Stenta ff5055c532 Always show developer information on sensor assets, even without referenced data streams.
Sensor assets can automatically generate data streams, so we
don't need them to exist in order to show dev info.
2022-01-18 22:18:26 -05:00
Michael Stenta b9a2d6c0e2 Describe how sensor assets can accept multiple values and automatically create data streams. 2022-01-18 22:18:26 -05:00
Michael Stenta 950f97c612 Remove text: "For more information, refer to the farmOS sensor guide". 2022-01-18 22:18:26 -05:00
Michael Stenta 6411dfa6ca Fix "JSON Example (multiple values)" in sensor asset and data streams.
This was being overridden by the "Example CURL command" content.
2022-01-18 22:18:26 -05:00
Michael Stenta 7508c8d4f8 Disable default field wrapper elements in entity_reference Views displays.
Before this, when using these Views in entity_autocomplete form
widgets, the form field content ends up with <span> tags wrapping
the entity label.
2022-01-14 11:05:51 -05:00
Michael Stenta fe0bc23f85 Re-export Views config per https://www.drupal.org/node/3230199 (no changes). 2022-01-14 11:05:51 -05:00
Michael Stenta 77274b9285 Fix PHP Codesniffer complaint. 2022-01-09 23:37:39 -05:00
Michael Stenta 076649172d Add "Other" structure type configuration. 2022-01-09 23:29:03 -05:00
Michael Stenta b2db6ea2cc Depend on farm_log_asset in log query, location, and group tests, instead of adding $log->asset fields in each. 2021-12-28 12:58:03 -05:00
Michael Stenta cae9a41125 Document why we manually add a $log->asset field in some test modules. 2021-12-27 17:32:12 -05:00
Paul Weidner 7af4618ba1 Issue #3253430 by paul121: Define all callback_allowed_values_function parameters
Accidentally merged the wrong commit earlier.
2021-12-14 09:13:10 -05:00
Paul Weidner d15bdc5e37 Define all callback_allowed_values_function parameters. 2021-12-14 06:58:07 -05:00
Paul Weidner f57399947d Perform entity validation in bulk actions. 2021-12-08 12:59:27 -05:00
paul121 9937730c14 Query assets from multiple locations in a single query. 2021-10-27 16:27:19 -04:00
paul121 50d7f643c2 Use dependency injection in views argument plugins. 2021-10-27 16:27:19 -04:00
paul121 937001a13a Optimize group member logic in the group log event subscriber. 2021-10-27 16:27:19 -04:00
paul121 0df2e5b471 Query group members from multiple groups in a single query. 2021-10-27 16:27:19 -04:00
Michael Stenta d3b3bd862d Use upstream \Drupal\log\Event\LogEvent instead of custom event. 2021-10-18 15:23:26 -04:00
paul121 72771af905 Test that deleting a group's location log updates the group members' location. 2021-10-18 10:12:44 -04:00
paul121 84a1d11eb2 Invalidate group member cache when the group location changes. 2021-10-18 10:12:44 -04:00
paul121 ac04de8597 Test that deleting a group membership log updates the asset's group. 2021-10-18 10:12:44 -04:00
paul121 6821e32a14 Invalidate asset cache when group membership changes. 2021-10-18 10:12:44 -04:00
Michael Stenta 840307e36d Remove unnecessary remember_roles from Views config. 2021-10-04 19:21:00 -04:00
Michael Stenta 2ebeef595e Require explicit use of accessCheck() on the result of farm.log_query service. 2021-10-01 12:44:07 -04:00
Michael Stenta f462573b4e Do not check access in log entity queries in asset.location and group.membership services. 2021-10-01 10:46:16 -04:00
Michael Stenta 51d3a40123 Move QuantityEventSubscriber to farm_material module. 2021-09-22 14:45:20 -04:00
s33a 4b1b93efda Add a "Material type" reference field to Material assets. 2021-09-22 14:45:20 -04:00
s33a 13492129e6 Add a Material asset type. 2021-09-22 14:45:20 -04:00
Michael Stenta 293717e95b Put modules into "farmOS (Defaults)" group: farm_land_types, farm_structure_types, farm_role_roles. 2021-09-20 16:10:19 -04:00
Michael Stenta 7933934261 Improve "public" field description. 2021-09-20 15:07:25 -04:00
Michael Stenta 55a7cf3571 Remove @todo Include link to updated user guide. 2021-09-20 15:07:25 -04:00
Michael Stenta 5478293d2b Translate labels in developer information. 2021-09-20 15:07:25 -04:00
Michael Stenta 9947062f0c Add a link to the legacy API endpoint in developer information fieldset. 2021-09-20 15:07:25 -04:00
Michael Stenta 933761b392 Rename LegacyListener to SensorListener (only use "legacy" in description). 2021-09-20 15:07:24 -04:00
Michael Stenta 5d29318e67 Move SensorListenerDataNames migrate d7 source plugin to farm_migrate module. 2021-09-20 15:07:24 -04:00
paul121 3f02970c28 Display developer info for sensor assets with basic data streams. 2021-09-20 15:07:24 -04:00
paul121 92c2f49231 Migrate listener sensor data in a post row save event. 2021-09-20 15:07:24 -04:00
Paul Weidner a4f28a950d Migrate each listener sensor named value into a new data stream. 2021-09-20 15:07:24 -04:00
paul121 671e5145db Adjust sensor asset bundle field weights. 2021-09-20 15:07:24 -04:00
paul121 e528813330 Refactor listener data streams to be basic data streams with a separate API endpoint. 2021-09-20 15:07:24 -04:00
paul121 fd74fa2ff5 Add API endpoint for all basic data streams associated with a sensor. 2021-09-20 15:07:24 -04:00
paul121 e742293386 Add private_key and public fields to sensor asset. 2021-09-20 15:07:24 -04:00
Michael Stenta 5f232b4319 Move all sub-modules into sub-directories called "modules" for consistency. 2021-09-17 16:11:38 -04:00
Michael Stenta 1ea5f0069e The Seed module depends on farm_plant_type, not farm_plant. 2021-09-09 14:27:31 -04:00