Commit Graph

7138 Commits

Author SHA1 Message Date
Michael Stenta 2b7683205d farmOS 2.0.0-beta2 2022-01-19 13:27:23 -05:00
Michael Stenta 7cd8334340 Update Drupal core to 9.3.3. 2022-01-19 13:16:17 -05:00
Michael Stenta 65c8dabf73 Port Planting Quick Form to v2 #492 2022-01-19 13:15:26 -05:00
Michael Stenta 70c5547a3b Add a Planting quick form module. 2022-01-19 13:00:22 -05:00
Michael Stenta 50fd764c44 Allow term entity to be passed to QuickQuantityTrait::createQuantity(). 2022-01-19 13:00:22 -05:00
Michael Stenta 928f95d3ba Allow full quantity entities to be passed into createLog() values. 2022-01-19 13:00:22 -05:00
Michael Stenta 5ef95da81f Add a QuickStringTrait::prioritizedString() method for joining, prioritizing, and trimming string parts. 2022-01-19 13:00:22 -05:00
Michael Stenta 278efbf27a Ensure the names/labels of assets, logs, terms, and quantities created by quick traits are less than 255 chars. 2022-01-19 13:00:22 -05:00
Michael Stenta 44c51ee957 Add a QuickStringTrait::trimString() method for trimming strings on word boundaries. 2022-01-19 13:00:22 -05:00
Michael Stenta e2b6502f27 Make all quick trait methods protected. 2022-01-19 13:00:22 -05:00
Michael Stenta 79e11ab583 Issue #3224663: Type-specific CSV exports do not respect exposed filters 2022-01-19 12:52:52 -05:00
Michael Stenta c4d439c204 Re-export farm_asset and farm_log Views config per https://www.drupal.org/node/3230199 (no changes). 2022-01-19 12:51:55 -05:00
Michael Stenta 8b9b10828b Add Issue #3224663 link to CHANGELOG.md. 2022-01-19 12:51:55 -05:00
Michael Stenta 39ac7b9470 Add asset/log type to exposed filters so that "Export CSV" link filters by type. 2022-01-19 12:51:55 -05:00
Michael Stenta bcef32f2ce Add tests of "Export CSV" links. 2022-01-19 12:51:55 -05:00
Michael Stenta a5394f2038 Add type-specific fields and filters to asset/log CSV export displays. 2022-01-19 12:51:55 -05:00
Michael Stenta cba7601e56 Add general tests of the farm_ui_views module. 2022-01-19 12:51:55 -05:00
Michael Stenta b54d85d0ad Only show "Export CSV" link on "All" and "By type" asset/log displays. 2022-01-19 12:51:55 -05:00
Michael Stenta 274f4d4047 Improvements to sensor and data stream developer info #491 2022-01-18 22:18:57 -05:00
Michael Stenta bf7c2232ba Add CHANGELOG.md entry to summarize improvements. 2022-01-18 22:18:43 -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 34ee8f895e Remove "JSON Example (multiple values)" from data stream developer info. Data streams can only accept a single value. 2022-01-18 22:18:26 -05:00
Michael Stenta 2e7b66c08f Use actual data stream name in example JSON instead of "value".
The example does not actually work if you copy it directly
unless the data stream is named "value" as well.
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 2aac4f14e0 Remove code for cleaning up asset.data_stream references.
See https://github.com/farmOS/farmOS/issues/485#issuecomment-1013961028
and https://github.com/farmOS/farmOS/pull/489#issuecomment-1016028374
2022-01-18 21:53:22 -05:00
Paul Weidner ac536bc720 Add test for deleting data stream data. 2022-01-18 21:30:25 -05:00
Michael Stenta 7925b5c86e Delete data when basic data streams are deleted. Fixes #488 2022-01-18 21:29:03 -05:00
Michael Stenta d161d228aa Disable caching of basic data stream View. Fixes #484 2022-01-18 21:15:10 -05:00
Michael Stenta d022fabe29 Re-export data_stream_basic_data Views config per https://www.drupal.org/node/3230199 (no changes). 2022-01-18 21:15:10 -05:00
Michael Stenta ebde335b00 Remove data_stream collection link to non-existent route. Fixes #486 2022-01-18 20:43:16 -05:00
Michael Stenta f3be2d8257 Create a dedicated section in farmOS modules form for "Quick form modules". 2022-01-17 07:42:00 -05:00
Michael Stenta b36f6b717b Fix Quick Form help text so that it works with new multi-route approach. 2022-01-17 07:42:00 -05:00
Michael Stenta 4cd87c9956 Provide a quantity_measure_options() helper function. 2022-01-17 07:42:00 -05:00
Michael Stenta 3365fc5b23 Add JS to remove IDs from entity autocomplete form elements. 2022-01-17 07:42:00 -05:00
Michael Stenta 30f70615b9 Fix incorrect Drush migrate:rollback commands in docs. 2022-01-17 05:08:44 -05:00
Michael Stenta a5c393b13b Remove drupal/core patch for Issue #3253568 (merged upstream). 2022-01-14 15:43:38 -05:00
Michael Stenta 5d39617e49 Update Drupal core to 9.3.2. 2022-01-14 15:01:52 -05:00
Michael Stenta be396ae268 Grant data stream and notification permissions. #482 2022-01-14 14:57:53 -05:00
Paul Weidner c78200fdc7 Update changelog. 2022-01-14 14:57:40 -05:00
Paul Weidner d96e5475f6 Grant data stream permissions to roles with config permissions. 2022-01-14 14:56:33 -05:00
Paul Weidner ae7ea19e22 Explain reasons for separate switch statements. 2022-01-14 14:56:33 -05:00
Paul Weidner 312df1354a Add data_stream as a managed entity type. 2022-01-14 14:56:33 -05:00
Michael Stenta 95fe93572d Sort locations by name, using natural sort algorithm. 2022-01-14 14:50:46 -05:00
Paul Weidner 83188d52ff Remove field_ui_base_route from quantity entity definition. 2022-01-14 11:04:26 -08: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