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

96 commits

Author SHA1 Message Date
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 dd910c1d95 The farm_entity module depends on quantity, not farm_quantity_standard. 2021-03-05 14:16:06 -05:00
paul121 0fc69793a0 Require the standard quantity type. 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 02de4ba117 Deny access to the entity type add form. 2021-02-23 09:45:39 -05:00
paul121 f5632919ba Display log categories in a select list. 2021-02-05 14:41:48 -05:00
Michael Stenta c0b2431a4c Use an Entity Reference Revisions field for Quantities. 2021-02-05 12:23:20 -05:00
Michael Stenta 47e96dacbc Move farm_quantity_log_delete() hook logic to a Log event subscriber. 2021-02-05 12:23:20 -05:00
Michael Stenta ba660170a7 Move quantity field definition into farm_entity, with dependency on farm:quantity. 2021-02-05 12:23:20 -05:00
Michael Stenta 5a10539ad6 Issue #3194206: Add some @todos for future reference. 2021-01-22 14:20:19 -05:00
paul121 e0b22414cb Alter field storage definitions provided by hook_farm_entity_bundle_field_info to have the correct provider. 2021-01-22 14:06:05 -05:00
paul121 0b99b358d9 Test that the correct field storage provider is set with hook_farm_entity_bundle_field_info(). 2021-01-22 14:06:05 -05:00
paul121 b0ab267798 Create postponed installation test for bundle fields provided by hook_farm_entity_bundle_field_info(). 2021-01-22 14:06:05 -05:00
Michael Stenta 4e5f0c807a Set the views data handler class for asset and plan entity types, but not log (handled upstream). 2020-12-30 09:14:59 -05:00
paul121 452f3bce9f Provide a FarmEntityViewsData class that maintains the same contrib log views plugins. 2020-12-30 08:14:24 -05:00
paul121 0681f867ae Specify views plugins for improved sorting of the log.timestamp field. 2020-12-30 08:14:24 -05:00
paul121 72139c7b67 Set the views_data handler to use contrib EntityViewsData for all entities with bundle plugins. 2020-12-30 08:14:24 -05:00
Michael Stenta 09cf0b74e2 Test for test_hook_base_field in testHookEntityBaseFieldInfo(). 2020-12-30 07:47:14 -05:00
paul121 196e81e3c9 Improvements to testHookFarmEntityBundleFieldInfo. 2020-12-29 14:51:04 -08:00
Michael Stenta 3d6b8fa5c5 Rename log movement field to is_movement. 2020-12-29 12:27:35 -05:00
Michael Stenta c4a54eaa43 Rename asset location field to is_location. 2020-12-29 12:27:35 -05:00
Michael Stenta 9b67979390 Rename asset fixed field to is_fixed. 2020-12-29 12:27:35 -05:00
Michael Stenta 128ae01126 Rename asset geometry field to intrinsic_geometry. 2020-12-29 12:27:35 -05:00
Michael Stenta 861200c25b Create an AssetLocation service class. 2020-12-29 12:25:14 -05:00
Michael Stenta c0f8b17029 Add a "Geometry" field to asset types for describing intrinsic locations. 2020-12-29 06:55:38 -05:00
Michael Stenta 83384e4398 Add a boolean "Movement" field to logs to designate them as movements. 2020-12-29 06:55:37 -05:00
Michael Stenta 97a856c9e8 Add a "Location" (asset reference) field to all log types. 2020-12-29 06:55:37 -05:00
Michael Stenta a9e46c08e4 Add a boolean "Location" field to assets to designate them as locations. 2020-12-29 06:55:37 -05:00
Michael Stenta f9fff6f3b7 Move Geometry field definition to location module. 2020-12-29 06:55:37 -05:00
paul121 58f3d1a713 Fix operator so that field definitions for all bundles are included. 2020-12-29 06:50:02 -05:00
paul121 da3b031f73 Add test for bundle specific field and field storage definitions. 2020-12-29 06:49:17 -05:00
Michael Stenta cfa95587a2 Move Equipment field definition (and tests) back to Equipment module. 2020-12-27 09:36:37 -05:00
Michael Stenta 3aec243c00 Reorganize FarmEntityFieldTest tests by type (hook/method). 2020-12-22 22:17:30 -05:00
Michael Stenta 93f2e267a3 Decouple hook bundle field test from geometry field. Create a test bundle field instead. 2020-12-22 21:17:39 -05:00
Michael Stenta a5fdd9239f Make test hook base/bundle field names more specific. 2020-12-22 19:47:33 -05:00
Michael Stenta b26317a89b Allow specifying target_bundle for assets via FarmFieldFactory, instead of using the Views handler. 2020-12-17 07:49:29 -05:00
Michael Stenta 4ee7bb5cae Use $this->farmFieldFactory in FarmLogType. 2020-12-16 14:14:05 -05:00
Pedro Cambra 451f2a8e57 Added dependency injection for plan types 2020-12-16 18:45:59 +01:00
paul121 2028e84dc4 Use dependency injection for farm_field.factory service. 2020-12-14 15:53:06 -08:00
paul121 f31d1ae20c Add the StringTranslationTrait to FarmAssetType base class. 2020-12-14 15:13:13 -08:00
Michael Stenta 8d19ae8292 Split FarmFieldFactory out to a new farm_field module. 2020-12-14 10:07:58 -05:00
Michael Stenta bc01a8b281 Add support for default_value_callback in FarmFieldFactory. 2020-12-14 10:07:58 -05:00
Michael Stenta fb2a7baecb Make all bundle field labels and descriptions translatable. 2020-12-14 10:07:58 -05:00
Michael Stenta b03db69356 Move Asset and Plan entity bundle plugin support to farm_entity module. 2020-12-14 10:07:58 -05:00
Michael Stenta 81227805c0 Merge farm_log into farm_entity. 2020-12-14 10:07:58 -05:00
Michael Stenta 00d1786ccf Rename farm_field to farm_entity. 2020-12-14 10:07:58 -05:00