Commit Graph

1132 Commits

Author SHA1 Message Date
Michael Stenta c82536d4d0 Move asset_type_layers behavior to farm_ui_map. 2021-04-08 15:37:23 -04:00
Michael Stenta 2e4d0bef1d Move logic for disabling zoom when WKT is present to farm_ui_map. 2021-04-08 15:37:23 -04:00
Michael Stenta 83e6d3abfb Add "all locations" layers to default and geofield maps via farm_ui_map instead of default behaviors. 2021-04-08 15:37:23 -04:00
Michael Stenta b58f4f8b1a Move dashboard map and block to farm_ui_map. 2021-04-08 14:59:39 -04:00
Michael Stenta 07b06b3a5f Move subscriber logic for adding dashboard map asset layers to farm_ui_map. 2021-04-08 11:24:55 -04:00
Michael Stenta 746e189664 Split map logic out of farm_ui_views to a new farm_ui_map module. 2021-04-08 11:24:55 -04:00
Michael Stenta f57cebd68f Split Asset GeoJSON Views displays out to their own View provided by the farm_location module. 2021-04-08 11:24:55 -04:00
Michael Stenta 577f04fa0c Patch Geofield to add support for centroid WKT in LatLon formatter (Issue #3207078), and remove custom geofield_centroid formatter. 2021-04-08 11:24:55 -04:00
paul121 19f8851543 Add a setting to configure if the map popup behavior is enabled. 2021-04-08 11:24:55 -04:00
paul121 848f271882 Add the asset_type_layers behavior to the asset_list map config. 2021-04-08 11:24:55 -04:00
paul121 d2d42f3811 Add an "Other locations" layer to the dashboard map. 2021-04-08 11:24:55 -04:00
paul121 a51c58185a Add layers for location asset types to the dashboard map. 2021-04-08 11:24:55 -04:00
paul121 8b4e1eeb9f Add cache tag on the map type. 2021-04-08 11:24:55 -04:00
paul121 7487a782e0 Remove redundant div. 2021-04-08 11:24:55 -04:00
paul121 e066abfd49 Zoom to WKT if it exists else zoom to all locations vectors. 2021-04-08 11:24:55 -04:00
paul121 b5a56381b4 Use array_replace_recursive to allow overriding of values. 2021-04-08 11:24:55 -04:00
paul121 dd423d2208 Dynamically add asset layers to the dashboard map. 2021-04-08 11:24:55 -04:00
paul121 42d1e75535 Add helper function to get the map target ID. 2021-04-08 11:24:55 -04:00
paul121 2baa65eeba Display asset cluster layers in a separate layer group. 2021-04-08 11:24:55 -04:00
paul121 515352ef4e Create a geojson feed of asset centroids. Change paths to be assets/geojson/{geom_type}/{asset_type} 2021-04-08 11:24:55 -04:00
paul121 e6f3ec7ece Provide a centroid formatter to format geofield centroids as a WKT point. 2021-04-08 11:24:55 -04:00
paul121 0ad329e5fd Add an All locations layer to default and geofield maps. 2021-04-08 11:24:55 -04:00
paul121 1383434df9 Do not default to the Assets layer group, make this optional. 2021-04-08 11:24:55 -04:00
paul121 fb09715727 Change asset geojson path to /assets/geojson/type and default to all. 2021-04-08 11:24:55 -04:00
paul121 214d9e9c1f Recreate the exposed_filters array before creating each map layer. 2021-04-08 11:24:55 -04:00
paul121 191caffb52 Reverse layers array before adding to the map instance. 2021-04-08 11:24:55 -04:00
paul121 1178422f75 Create individual layers for land_type and structure_type assets. 2021-04-08 11:24:55 -04:00
paul121 bdfd2546c2 Add land_type and structure_type exposed filters to asset geojson display. 2021-04-08 11:24:55 -04:00
paul121 8cf638cd33 Allow the layer group to be specified. 2021-04-08 11:24:55 -04:00
paul121 325dec86a6 Render area assets on the dashboard map. 2021-04-08 11:24:55 -04:00
paul121 aa5e956717 Assemble geojson url client side. 2021-04-08 11:24:55 -04:00
paul121 ea235f2207 Render a map with asset geometries as an attachment before asset views. 2021-04-08 11:24:55 -04:00
paul121 7b17007e69 Create asset_list map type. 2021-04-08 11:24:55 -04:00
paul121 ced32098f6 Depend on farm_map. 2021-04-08 11:24:54 -04:00
paul121 5d1d7aa324 Provide an asset_type_layers map behavior. 2021-04-08 11:24:54 -04:00
paul121 90080daa90 Add geojson feed of asset geometry to the farm_assets view. 2021-04-08 11:24:54 -04:00
paul121 75ddc435b4 Add dependency on drupal/views_geojson to create views geojson feeds. 2021-04-08 11:24:54 -04:00
paul121 dc5dd3e2fa Include the computed asset geometry field in views. 2021-04-08 11:24:54 -04:00
paul121 bdc0a3bb00 Allow map types to define default behaviors. 2021-04-08 11:24:54 -04:00
Michael Stenta 50560e74bf Issue #3186746: Add views filter handlers for bundle fields defined in views data. 2021-04-08 11:24:54 -04:00
Michael Stenta 46f4545fee Move Quantity field after Assets and Locations in Log View. 2021-04-06 08:31:25 -04:00
paul121 deb0dc13c4 Issue #3186746: Add views field handlers for bundle fields defined in views data. 2021-04-06 08:31:02 -04:00
Paul Weidner 7556535271 Fix farm_structure_types module info. 2021-04-06 08:07:26 -04:00
Michael Stenta ee080f2e00 Fix "Wrong class casing" warning in PHPStorm. 2021-04-05 10:59:04 -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 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 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 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
paul121 7bed6d3ae9 Add a migration that creates a legacy listener data stream for each listener sensor. 2021-04-01 11:22:27 -04:00
paul121 87b75501e6 Create a sensor data migration group. 2021-04-01 11:22:27 -04:00
paul121 0fde00f4fc Create a migration destination for data stream entities that are provided by an asset. 2021-04-01 11:22:27 -04:00
paul121 17afd4fc59 Create a migration source for d7 Sensor Assets. 2021-04-01 11:22:27 -04:00
paul121 54fc7ddaf5 Add listener data block view to listener data stream entity view. 2021-04-01 11:22:27 -04:00
paul121 1c9bc63423 Add table view of listener data with CSV export. 2021-04-01 11:22:27 -04:00
paul121 e4f75bed15 Make listener data stream data available to views. 2021-04-01 11:22:27 -04:00
paul121 6f7674c380 Change the data stream API path to /api/data_stream/listener/{UUID}/data. 2021-04-01 11:22:27 -04:00
paul121 e9e5c599ec Move the processRequest method to DataStreamTestbase. 2021-04-01 11:22:27 -04:00
paul121 95229caed8 Add test for legacy listener API. 2021-04-01 11:22:27 -04:00
paul121 70636be3c5 Add data stream API tests. 2021-04-01 11:22:27 -04:00
paul121 042c3c245f Add asset field to all data stream entities. 2021-04-01 11:22:27 -04:00
paul121 15158f2ea1 Remove "data stream" from plugin labels. 2021-04-01 11:22:27 -04:00
paul121 6d9b67afb0 Render a public_key field in the legacy listener configuration form. 2021-04-01 11:22:27 -04:00
paul121 24570b5763 Implement PluginFormInterface so plugins can provide configuration forms. 2021-04-01 11:22:27 -04:00
paul121 6efecc0916 Respond to legacy requests at /farm/sensor/listener/{pub_key}. 2021-04-01 11:22:27 -04:00
paul121 371bed6651 Provide a legacy_listener data stream type. 2021-04-01 11:22:27 -04:00
paul121 44cf1a6f32 Create farm_sensor_listener module with separate table for legacy data. 2021-04-01 11:22:27 -04:00
paul121 80d1271b1f Add a data_stream field to sensor and equipment assets. 2021-04-01 11:22:27 -04:00
paul121 3c871623f6 Add data_stream as a supported target_type for entity_reference fields in FarmFieldFactory. 2021-04-01 11:22:27 -04:00
paul121 781017c5b4 Add common_reference_target so entities can reference data streams. 2021-04-01 11:22:27 -04:00
paul121 7a1a6afc2b Generate a new private key when add data streams via the form. 2021-04-01 11:22:27 -04:00
paul121 483f9149cc Create admin UI for data streams. 2021-04-01 11:22:27 -04:00
paul121 5c8430118d Allow GET requests to public listener sensors. 2021-04-01 11:22:27 -04:00
paul121 c573ded4e5 Add a public field to all data stream entities. 2021-04-01 11:22:27 -04:00
paul121 4e403c97cf Implement EntityChangedInterface. 2021-04-01 11:22:27 -04:00
paul121 5f7f4985e9 Move config directory to correct location. 2021-04-01 11:22:27 -04:00
paul121 cdb2c2d724 Provide a Listener data stream type. 2021-04-01 11:22:27 -04:00
paul121 564163e7d1 Implement the ContainerFactoryPluginInterface so plugins can use dependency injection. 2021-04-01 11:22:27 -04:00
paul121 2f398919b9 Provide a trait for checking the private_key in requests. 2021-04-01 11:22:26 -04:00
paul121 e83c45a6dc Add a route to interact with data streams via API. 2021-04-01 11:22:26 -04:00
paul121 dbe50281fc Provide a data_stream_data_storage table and trait for plugins to use. 2021-04-01 11:22:26 -04:00
paul121 387e8fcab2 Add dependency on the Fraction module. 2021-04-01 11:22:26 -04:00
paul121 0d10556c56 Create a DataStream plugin type. 2021-04-01 11:22:26 -04:00
paul121 fe63dcc107 Create a DataStream entity. 2021-04-01 11:22:26 -04:00
Michael Stenta 864d90aa29 Fix Seeding Log field descriptions. 2021-04-01 11:22:26 -04:00
paul121 38a9597296 Alias field_data_field_farm_inventory as fdffi. 2021-03-29 08:35:18 -07:00
Michael Stenta b5f5a1da8f Add an Inventory field formatter and display current inventory on asset pages. 2021-03-27 14:44:42 -04:00
paul121 54ddd93277 Fix class description. 2021-03-27 14:43:53 -04:00
paul121 039ece7f93 Migrate log inventories. 2021-03-27 14:43:53 -04:00
paul121 d44751e7a0 Provide a migration source for log inventories. 2021-03-27 14:43:53 -04:00
Michael Stenta ca456b906d Add automated tests of the inventory computed field in JSON:API. 2021-03-27 14:43:53 -04:00
Michael Stenta 046de970e0 Invalidate asset cache when an inventory adjustment that references it is saved or deleted. 2021-03-27 14:43:53 -04:00
Michael Stenta b7468fdc9b Dispatch a QuantityEvent when on quantity presave and delete. 2021-03-27 14:43:53 -04:00
Michael Stenta e973a2bd73 If the asset is new, it won't have inventory, so getInventory() can bail early. 2021-03-27 14:43:53 -04:00
Michael Stenta 7c6b543ff1 Add a computed Inventory field to assets. 2021-03-27 14:43:53 -04:00
Michael Stenta 1811ce05d1 Add Inventory field support to farm.field_factory. 2021-03-25 18:42:03 -04:00
Michael Stenta 94546a0826 Define Inventory field type schema. 2021-03-25 18:42:03 -04:00
Michael Stenta 2526d69488 Output the units as a term label, rather than a term ID. 2021-03-25 18:42:03 -04:00
Michael Stenta 29cfef230a Add automated tests for assets with multiple inventories. 2021-03-25 18:42:03 -04:00
Michael Stenta ee84726112 Initial inventory automated tests. 2021-03-25 18:42:03 -04:00
Michael Stenta 4064c4f84f Initial asset.inventory service. 2021-03-25 18:42:03 -04:00
Michael Stenta f9e7b8883d Revert "Create an entity browser for inventory assets."
This reverts commit 3bb4613a445da64364899ce5aaa1a4a2b4df9805.
2021-03-25 18:42:03 -04:00
Michael Stenta dd0b75592a Revert "Start an entity_browser view that displays inventory asset options."
This reverts commit 53ccab74073ab4a8f8728e839a3447296bc03607.
2021-03-25 18:42:03 -04:00
Michael Stenta e952ca952a Refactor/rename inventory fields. Use farm.field_factory. 2021-03-25 18:41:52 -04:00
Michael Stenta 4eb303c77c Replace references to farm_quantity with quantity. 2021-03-25 18:31:09 -04:00
paul121 42079f795d Change the quantity.asset form display to use the inventory_assets entity browser. 2021-03-25 18:31:09 -04:00
paul121 029579a7f3 Create an entity browser for inventory assets. 2021-03-25 18:31:09 -04:00
paul121 5fcda12c31 Start an entity_browser view that displays inventory asset options. 2021-03-25 18:31:09 -04:00
paul121 5a6ba4d55b Include log_inventories in the FarmLog source plugin. 2021-03-25 18:31:09 -04:00
paul121 9479eecdfc Add inventory base fields to farm_quantity entity. 2021-03-25 18:31:09 -04:00
paul121 44cfb7e92e Init farm_inventory module. 2021-03-25 18:31:09 -04:00
Michael Stenta 319fcad256 Make the asset field in test modules a BaseFieldDefinition and allow multiple values. 2021-03-25 08:43:13 -04:00
Michael Stenta cec5058337 Issue #3200219 by paul121: Uninstalling a bundle removes field storage definitions that are used by other bundles
This fixes the incorrect commit message used for the previous merge (two
commits ago), so that future git blame history is correct.
2021-03-23 17:43:01 -04:00
Michael Stenta 3752976f1a Revert "Issue #2991394 by paul121: Move inventory fields to quantity measurements"
This reverts commit d8443dfa56, reversing
changes made to d40531cbbc.

I mistakenly copied and pasted the wrong commit message for the previous
merge commit. This reverts the entire merge. I will revert this revert,
and give it the correct commit message in the next commit so that git
blame history is corrected moving forward.
2021-03-23 17:41:05 -04:00
paul121 d4e0d26aef Add explicit test to ensure field storage definitions provided by hook_farm_entity_bundle_field_info are deleted. 2021-03-22 07:27:26 -04:00
paul121 bf1ba8a86c Decorate the BundlePluginInstaller service to not delete field storage definitions used by other bundles. 2021-03-22 07:27:26 -04:00
paul121 29b8355731 Rename to FarmEntityBundleFieldTest. 2021-03-22 07:27:26 -04:00
paul121 bf492f3347 Add test for bundle field storage definitions on multiple bundles. 2021-03-22 07:27:26 -04:00
Michael Stenta 5af71e29ce Alter asset reference base fields to use Entity Browser. 2021-03-19 09:04:19 -04:00
Michael Stenta 0cd414bfa9 Provide an Entity Browser config entity for assets. 2021-03-19 09:04:19 -04:00
Michael Stenta 3c830c5dd5 Add an Entity Browser display to the farm_asset View. 2021-03-19 09:04:19 -04:00
Michael Stenta 19f742f55b Remove "Other" from description of Default Land Types. 2021-03-19 08:06:05 -04:00
Michael Stenta a2a8e3d361 Disable consumer JSON:API resource. 2021-03-18 15:53:17 -04:00
paul121 ab7f2a9ad1 Include an Add person action link on the farm_people page view. 2021-03-18 15:50:20 -04:00
Michael Stenta 30ba7836d8 Disable additional JSON:API resources: date_format, image_style, migration, migration_group, rest_resource_config. 2021-03-18 15:49:45 -04:00
Michael Stenta f5e7d59549 Move jsonapi_extras.jsonapi_resource_config.* to optional config and remove enforced dependency on farm_api. 2021-03-18 15:49:34 -04:00
Michael Stenta f2bdfde99a Alphabetize farm_dashboard dependencies. 2021-03-18 15:49:29 -04:00
Michael Stenta d6e6da9f85 The farm_ui_user module depends on drupal:block. 2021-03-18 15:49:25 -04:00
Michael Stenta fe3bbcde2b Move "Powered by farmOS" block to farm_ui_theme. 2021-03-18 15:49:14 -04:00
Michael Stenta 1de7f4ed77 Improvements to farm_migrate_role migration config.
These changes help to support custom/contrib modules that want
to provide their own role migrations.

- Use skip_map_on_empty process plugin to ensure that skipped rows are not added to the map tables.
- Set a "role" pseudo-field, which is used by role ID matching.
- Move role ID matching process to farm_migrate_role migration group shared config.
- Move farm_migrate_role migration to optional config, dependent on farm_role_roles module.
2021-03-18 15:49:14 -04:00
Michael Stenta 7c16a8db46 Add a skip_map_on_empty process plugin that prevents mappings from being saved when a row is skipped. 2021-03-18 15:49:14 -04:00
Michael Stenta f3c735b5c9 Issue #3176503: Migrate soil names field data (concat to notes). 2021-03-17 08:17:16 -04:00
Michael Stenta 7caf747694 Add a third-party setting for default quantity types on log types. 2021-03-15 15:46:36 -04:00
Michael Stenta 7fe08b4ca8 Move schema for location third party settings out of Views schema file. 2021-03-12 20:34:42 -05:00
Michael Stenta 3e19eb86b2 Migrate price quantities with a measure of value. 2021-03-12 20:34:08 -05:00
Michael Stenta d58eb3eb4b Remove quantity type label from template. 2021-03-12 08:15:56 -05:00
Michael Stenta a39c667049 Move CreateQuantity to farm_migrate. 2021-03-12 08:15:56 -05:00
paul121 fc3f00883f Only create price quantities if price data was provided. 2021-03-12 08:15:56 -05:00
paul121 a00d0b32f6 Migrate purchase and sale log values to a price quantity. 2021-03-12 08:15:56 -05:00
paul121 cf2659db7b Add a create_quantity process plugin. 2021-03-12 08:15:56 -05:00
paul121 476e30ca7a Add template for price quantities. 2021-03-12 08:15:56 -05:00
paul121 7bb755bc6f Purchase and sale logs depend on price quantity. 2021-03-12 08:15:56 -05:00
paul121 e51b9d7d27 Create a price quantity type. 2021-03-12 08:15:56 -05:00
paul121 c5548eab72 Support fraction fields in FarmFieldFactory. 2021-03-12 08:15:56 -05:00
Michael Stenta 19dc89750f Add Lot number field (with migration) to Sale and Purchase logs. 2021-03-11 21:39:18 -05:00
Michael Stenta 40526941d2 Add units filter to View of quantities. 2021-03-11 17:50:58 -05:00
Michael Stenta fe5929ab2f Use taxonomy_index_tid Views filter handler plugin for quantity units column. 2021-03-11 17:49:01 -05:00
Michael Stenta 2066e7202b List of all quantities in log Views. 2021-03-11 08:55:19 -05:00
Michael Stenta 835137d0f3 Only include quantity fields in the template if they are not empty. 2021-03-11 08:40:32 -05:00
paul121 28c22be933 Display 1 quantity in the farm_log views. 2021-03-11 08:40:32 -05:00
Michael Stenta e68d89e50f Add "by type" menu links for Quantity Views. 2021-03-11 07:38:15 -05:00
Michael Stenta f295027462 Provide a farm_quantity View. 2021-03-11 07:38:15 -05:00
Michael Stenta 0f49717e96 Provide a reverse entity reference relationship from quantities to logs that reference them. 2021-03-11 07:38:15 -05:00
Michael Stenta 274b510d2e Set the views data handler class for logs to FarmLogViewsData. 2021-03-11 07:38:15 -05:00
Michael Stenta dae3ccd80c Add Views integration for Quantity Value field, filter, and sort using fraction decimal handlers. 2021-03-11 07:38:15 -05:00
Michael Stenta 3c9087a3d0 The Quantity value field is not required.
This was dependent on https://www.drupal.org/project/fraction/issues/3202832
2021-03-11 07:38:15 -05:00
Michael Stenta 92bd9aa212 Make "Other" a default land type, provided by the Land module. 2021-03-11 07:38:15 -05:00
paul121 06c03f1073 Always render the Quantity type field. 2021-03-09 09:12:05 -08:00
paul121 bdd4e66714 Render the quantity entity in quantity inline entity forms. 2021-03-09 08:58:41 -08:00
paul121 7727048c6f Allow the quantity type label to be viewed without the administer bundle permission.
https://www.drupal.org/project/entity/issues/2943571
2021-03-09 08:23:28 -08:00
paul121 19a2169ac1 Add quantity permissions to managed roles. 2021-03-09 08:21:28 -08:00
Michael Stenta 19b5705f41 Use quantity_base_fields instead of standard_quantity_fields to avoid confusion with standard bundle. 2021-03-08 10:09:22 -05:00
Michael Stenta 11f370e4c5 Remove standard quantity template (use default). 2021-03-08 10:01:42 -05:00
Michael Stenta 85f979a439 Do not include quantity type in default template. 2021-03-08 10:01:42 -05:00
Michael Stenta c394b7bacf Fix "Call to a member function setRequirement() on null" for entity types that do not expose bundle admin UI. 2021-03-08 09:43:14 -05:00
Michael Stenta 8fbf8def75 Remove unimplemented quantity entity type annotations and related unused classes. 2021-03-08 09:42:33 -05:00
Michael Stenta 07c6e32d14 Revert "Make farm_migrate depend on farm_entity."
This reverts commit 6dc2f82c24aae2c4b11f037e73f15ccf81d167e0.
2021-03-05 14:16:06 -05:00
Michael Stenta c8cf3ae94d Revert "The farm_migrate module depends on farm_quantity_standard."
This reverts commit 04f3af4dc530998815b60048befb3da61bb439b3.
2021-03-05 14:16:06 -05:00
Michael Stenta 07d03f617b Move farm_migrate_quantity_standard to optional config. 2021-03-05 14:16:06 -05:00
paul121 97b744207e The farm_migrate module depends on farm_quantity_standard. 2021-03-05 14:16:06 -05:00
paul121 0a55030f33 The farm_quantity_standard module depends on farm_entity. 2021-03-05 14:16:06 -05:00
paul121 e6836d4229 Provide a quantity--standard template. 2021-03-05 14:16:06 -05:00
paul121 5491b83fb2 Remove devel and standard quantity reference from template. 2021-03-05 14:16:06 -05:00
Michael Stenta dd910c1d95 The farm_entity module depends on quantity, not farm_quantity_standard. 2021-03-05 14:16:06 -05:00
Michael Stenta 078826205a Rename quantity migration to farm_migrate_quantity_standard. 2021-03-05 14:16:05 -05:00
paul121 d942781100 Render the quantity type label if it is not the standard type. 2021-03-05 14:16:05 -05:00
paul121 65d2348b93 Document that the quantity variable is available in template. 2021-03-05 14:16:05 -05:00
paul121 a5d1e7eeef Only display other quantity field labels if they are not hidden. 2021-03-05 14:16:05 -05:00
paul121 91aef36db3 Do not add clearfix to quantity fields. 2021-03-05 14:16:05 -05:00
paul121 b7caa132c7 Move the quantity label to the bottom of the form. 2021-03-05 14:16:05 -05:00
paul121 b8f8a7402f Migrate quantities to the standard quantity type. 2021-03-05 14:16:05 -05:00
paul121 1840292885 Make farm_migrate depend on farm_entity. 2021-03-05 14:16:05 -05:00
paul121 0fc69793a0 Require the standard quantity type. 2021-03-05 14:16:05 -05:00
paul121 7cb97689cf Provide a standard quantity type. 2021-03-05 14:16:05 -05:00
paul121 c6a2d1daf1 Make the default quantity template compatible with all bundles. 2021-03-05 14:16:05 -05:00
paul121 d4037fc0f5 Add field__quantity__field theme hook suggestion. 2021-03-05 14:16:05 -05:00
paul121 d258e05c2e Add theme suggestions for each quantity bundle. 2021-03-05 14:16:05 -05:00
paul121 1b3dbe6540 Enable bundle plugins for the quantity entity. 2021-03-05 14:16:05 -05:00
paul121 fd1496448d Enable bundles on Quantity entities. 2021-03-05 14:16:05 -05:00
Michael Stenta 6819f22090 Automated tests for group asset location logic. 2021-03-05 14:15:33 -05:00
Michael Stenta bbf8866a27 Override the getMovementLog() method of the asset.location service to take group membership into account. 2021-03-05 14:15:32 -05:00
Michael Stenta e206bd3539 Add group.membership service to the asset.location service. 2021-03-05 14:15:32 -05:00
Michael Stenta c24b2692cb Alter the asset.location service to use the GroupAssetLocation class. 2021-03-05 14:15:32 -05:00
Michael Stenta cc42e0ff05 Automated tests for asset group membership. 2021-03-05 14:15:32 -05:00
Michael Stenta 07e71a12e7 Add a computed "Group membership" field to assets. 2021-03-05 14:15:32 -05:00
Michael Stenta 33f5a242b2 Add a group.membership service for getting an asset's group membership.
This was largely copied/modified from asset.location service.
2021-03-04 09:01:52 -05:00
Michael Stenta 739cffaf5e Convert group log bundle fields to base fields. 2021-03-04 09:01:43 -05:00
Michael Stenta aff6c154fc Add log migration processing for the group and is_group_assignment fields. 2021-03-01 09:55:58 -05:00
Michael Stenta 7c9a7983d9 Move geometry and is_movement process fields below location in farm_migrate_log migration group. 2021-03-01 09:55:58 -05:00
Michael Stenta b70f2f8b45 Load group assignment information in the FarmLog D7 migration source. 2021-03-01 09:55:58 -05:00
Michael Stenta 9bb01ab1ef Split FarmLog::prepareRow() method into prepareMovement() and prepareQuantity() methods. 2021-03-01 09:55:58 -05:00
Michael Stenta 70ac50134a Add an "Is group assignment" and a Group reference field to logs. 2021-03-01 09:05:04 -05:00
Michael Stenta 4041a46715 Rename the farm_migrate group to farm_migrate_config. 2021-03-01 08:15:46 -05:00
Michael Stenta 0555d774ae Split file migrations out to a farm_migrate_file migration group to resolve dependency issues. 2021-03-01 08:15:46 -05:00
Michael Stenta 53e83b7365 Add a third party setting to log types to allow them to be designated as movements by default. 2021-02-25 15:21:27 -05:00
Michael Stenta b0726ce09c Add third party settings to asset types to allow them to be designated as fixed locations by default. 2021-02-25 15:20:58 -05:00
Michael Stenta 5522b2e453 Add a Farm People View, with a link from the toolbar. 2021-02-25 13:24:54 -05:00
Michael Stenta d38a5eb1d9 Split farm_migrate_user and farm_migrate_role out to their own migration groups.
This allows contrib modules to provide their own role migrations by replicating the farm_migrate_role config.
2021-02-25 12:58:32 -05:00
Michael Stenta 74effb652c Migrate farmOS roles. 2021-02-25 12:48:27 -05:00
paul121 3e6dd3089a Hide the Flags label from views table rows. 2021-02-24 15:37:29 -05:00