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

61 commits

Author SHA1 Message Date
paul121
69fd609a2d Auto create plant asset plant_type and season terms. 2021-02-05 14:41:48 -05:00
paul121
0bf6217680 Auto create animal asset animal_type terms. 2021-02-05 14:41:48 -05:00
Michael Stenta
c504a1b645 Use "Plant types" and "Animal types" as vocabulary names. 2021-01-05 15:08:28 -05:00
Michael Stenta
1f1c4618dc Plant type field is required. 2021-01-04 10:53:17 -05:00
Michael Stenta
48c968f7a6 Allow a Plant asset to reference multiple plant types. 2021-01-04 10:53:17 -05:00
Michael Stenta
38c7f9e2d5 Standardize plant type field label description (for consistency with animal type). 2021-01-04 10:53:17 -05:00
Michael Stenta
f6a8a9d0ae Merge farm_plant_type module into farm_plant module. 2021-01-04 10:28:18 -05:00
paul121
1fd87bc12f Add the plant_type field to planting assets. 2021-01-04 09:07:02 -05:00
Michael Stenta
cec9ebbbd5 Animal type field is required. 2021-01-04 08:29:56 -05:00
Michael Stenta
67574e842d Merge farm_animal_type module into farm_animal module. 2021-01-04 08:28:48 -05:00
paul121
fb56a79bd7 Add animal_type field to animal assets. 2021-01-04 08:28:48 -05:00
Michael Stenta
c1f7760001 Rename animal asset castrated field to is_castrated. 2020-12-29 12:27:35 -05:00
Michael Stenta
f0dcab44d8 Provide default land and structure types via two new modules, installed by default. 2020-12-29 06:55:37 -05:00
Michael Stenta
4b8d12fa81 Make Land type and Structure type fields required. 2020-12-29 06:55:37 -05:00
Michael Stenta
0678c2a541 Add a "Structure type" field to Structure assets, with allowed values defined by structure_type config entities. 2020-12-29 06:55:37 -05:00
Michael Stenta
b096298066 Add a "Land type" field to Land assets, with allowed values defined by land_type config entities. 2020-12-29 06:55:37 -05:00
Michael Stenta
5f9979c5cf Add Land, Structure, and Water asset type modules. 2020-12-29 06:55:37 -05:00
Michael Stenta
cfa95587a2 Move Equipment field definition (and tests) back to Equipment module. 2020-12-27 09:36:37 -05: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
paul121
ef4f5c2fc7 Fix animal sex allowed values. 2020-12-14 15:12:52 -08:00
Michael Stenta
00d1786ccf Rename farm_field to farm_entity. 2020-12-14 10:07:58 -05:00
Michael Stenta
79eb5fb323 Convert Equipment used field to a bundle field. Move tests to farm_field module. 2020-12-14 10:07:58 -05:00
Michael Stenta
28ee05b41a Add FarmAssetType, FarmLogType, and FarmPlanType entity bundle plugin base classes. 2020-12-14 10:07:58 -05:00
Michael Stenta
4febd4da5f Delete all asset and log form/view display config. 2020-12-13 08:34:49 -05:00
Michael Stenta
273daf9697 Move field definition functions to farm_field.factory service. 2020-12-13 08:34:49 -05:00
Michael Stenta
bd6faab922 Add support for log bundle plugins. 2020-12-13 08:34:49 -05:00
Michael Stenta
46dab75f09 Add a farm_field_bundle_field_definition() function that uses Entity API's BundleFieldDefinition instead of core BaseFieldDefinition. 2020-12-12 07:16:41 -05:00
Michael Stenta
f80345cc3e Convert all asset config fields to bundle fields. 2020-12-12 07:16:41 -05:00
Michael Stenta
f1fd5b0dfb Add support for asset bundle plugins. 2020-12-12 07:16:41 -05:00
Michael Stenta
ed230fceda Delete config rewrites for equipment field form/view displays. 2020-12-12 07:16:41 -05:00
Michael Stenta
c66a775dca Add a test to confirm that the Equipment used field is visible in log form/view displays. 2020-12-12 07:16:41 -05:00
Michael Stenta
ee915a815f Add form/view display weights to equipment base field definition. 2020-12-12 07:16:41 -05:00
Michael Stenta
ac8ca2b57a Fix Error: Call to undefined function farm_field_base_field_definition(). 2020-11-23 16:21:51 -05:00
Michael Stenta
07044f48f4 Rewrite equipment field into display config for all log types. 2020-11-20 11:35:47 -05:00
Michael Stenta
ea121e4772 Implement hook_entity_base_field_info() in farm_equipment.module and convert equipment field to a base field. 2020-11-20 11:35:47 -05:00
Michael Stenta
bb17aacbbf Provide field form/view display config for all asset and log types. 2020-11-20 11:35:47 -05:00
Michael Stenta
28f4f032cb Implement hook_entity_base_field_info() in farm_id_tag.module and convert ID tag field to a base field. 2020-11-20 11:35:47 -05:00
Michael Stenta
e659ac5baf Implement hook_entity_base_field_info() in farm_flag.module and convert flag field to a base field. 2020-11-20 11:35:47 -05:00
Michael Stenta
117de1b9de Convert asset and parent fields to base fields. 2020-11-20 11:35:47 -05:00
Michael Stenta
a23434bdc3 Convert file and image fields to base fields. 2020-11-20 11:35:47 -05:00
Michael Stenta
c92740eb91 Convert notes field to a base field. 2020-11-20 11:35:47 -05:00
Michael Stenta
7ccb2ac455 Convert data field to a base field. 2020-11-20 11:35:47 -05:00
Michael Stenta
235d5d9cb2 Allow ID tag type entities to define the bundles that they apply to. Limit brand, ear_tag, leg_band, and tattoo types to animals. 2020-10-15 15:33:10 -04:00
Michael Stenta
856fcdf4db Add initial Tag types (with static map migration). 2020-10-15 15:33:10 -04:00
Michael Stenta
096aefe56b Add "ID tags" field to compost, equipment, plant, and sensor assets. 2020-10-15 15:33:10 -04:00
Michael Stenta
87e2908ea3 Add "ID tags" field to animal assets. 2020-10-15 15:33:10 -04:00
Michael Stenta
f3c48ab4f2 Move field.storage.log.equipment to Equipment module. 2020-10-15 14:18:28 -04:00
Michael Stenta
da3ef2e910 Add "Season" field to Plant assets (with migration). 2020-10-11 12:18:03 -04:00
Michael Stenta
edc84de53f Add "Manufacturer", "Model", and "Serial number" fields to Equipment assets (with migrations). 2020-10-11 12:17:23 -04:00