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

85 commits

Author SHA1 Message Date
Michael Stenta d3b3bd862d Use upstream \Drupal\log\Event\LogEvent instead of custom event. 2021-10-18 15:23:26 -04:00
paul121 a8cfea7b5e Update farm_birth LogEventSubscriber service name and description. 2021-10-18 10:12:44 -04:00
Michael Stenta 1a7582b8ab Only perform UniqueBirthLogContraint validation on birth logs. 2021-10-14 09:53:22 -04:00
paul121 7ef59222e5 Allow birth logs to be modified after being created. 2021-10-01 13:19:38 -04:00
paul121 02fa75c4ee Use an aggregate query to count birth logs. 2021-10-01 13:14:00 -04:00
paul121 3604cf9483 Use EntityReferenceFieldItemList to iterate over entities. 2021-10-01 13:14:00 -04:00
paul121 10fec240cc Include the delta in the violation path. 2021-10-01 13:14:00 -04:00
paul121 a328446b72 Fail validation if more than 0 birth logs reference the asset. 2021-10-01 13:14:00 -04:00
Michael Stenta 5d0dc727f2 Do not check log access when searching for birth logs in UniqueBirthLogConstraintValidator. 2021-10-01 10:46:16 -04:00
paul121 b9f41d7d69 Explicitly enable access checking on content entity queries.
Not calling ::accessCheck() is deprecated in Drupal 9.2. See
https://www.drupal.org/node/3201242
2021-10-01 10:46:16 -04:00
Michael Stenta 9e26868112 Move base field definitions from farm_entity to new farm_entity_fields sub-module. 2021-09-24 12:21:15 -04:00
Michael Stenta 1f0c254e79 Remove explicit dependency on farm_flag from farm_maintenance. 2021-09-24 11:50:02 -04:00
paul121 95c916b8e9 Add functional test of quantity type views filter. 2021-09-22 14:45:20 -04:00
paul121 c1c89c7ddc Add the log quantity material type filter to page_type and page_asset displays. 2021-09-22 14:45:20 -04:00
paul121 1170e81242 Add LogQuantitymaterialType views filter. 2021-09-22 14:45:20 -04:00
paul121 ae08790b56 Input logs default to the material quantity type. 2021-09-22 14:45:20 -04:00
Michael Stenta c4bd241ed3 Remove material term reference field from Input logs. 2021-09-22 14:45:20 -04:00
paul121 5fd89cf2f8 Migrate input log material term reference field to Material Quantities. 2021-09-22 14:45:20 -04:00
s33a b88877b617 Rename "Material" taxonomy to "Material types".
This also changes the `material` term reference field on
Input logs to `material_type`, and updates all migrations
accordingly.
2021-09-22 14:45:20 -04:00
Michael Stenta d81c417ff5 Link animal birthdate field to birth log, if available. 2021-09-21 17:34:54 -04:00
Michael Stenta 92cef7f8f8 Validate that only one birth log can reference an asset. 2021-09-21 17:34:54 -04:00
Michael Stenta 3a649a8b42 When a birth log is saved, copy mother and date to children assets. 2021-09-21 17:34:54 -04:00
Michael Stenta f97029b010 Rename the Asset field to Children in Birth logs. 2021-09-21 17:34:54 -04:00
Michael Stenta 1c5f3e3539 Move Mother field above Assets (Children) field in Birth logs. 2021-09-21 17:34:54 -04:00
Michael Stenta 89996482be Issue #3220623: Split Sale/Purchase/Price bundles out to contrib 2021-09-17 15:59:27 -04:00
Michael Stenta 6c1af891be Move default_quantity_type third-party setting and logic to farm_log_quantity. 2021-07-22 17:40:16 -04:00
Michael Stenta 360e133164 Add Birth log type and migration. 2021-05-26 12:19:05 -04:00
Michael Stenta 864d90aa29 Fix Seeding Log field descriptions. 2021-04-01 11:22:26 -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
paul121 7bb755bc6f Purchase and sale logs depend on price quantity. 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 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 aca2b14f2d Always auto_create the same target_bundle. 2021-02-05 14:48:48 -05:00
paul121 e88b66139a Auto create input log material term. 2021-02-05 14:41:48 -05:00
paul121 2028e84dc4 Use dependency injection for farm_field.factory service. 2020-12-14 15:53:06 -08:00
paul121 a576bad88d Translate various log field labels and descriptions. 2020-12-14 15:13:26 -08:00
Michael Stenta 00d1786ccf Rename farm_field to farm_entity. 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 84dc39d9e2 Convert all log config fields to bundle fields. 2020-12-13 08:34:49 -05:00
Michael Stenta 8f8605b934 Convert geometry field to a base field.
This reverts commit 78081169d4.
2020-12-12 07:16:41 -05:00
Michael Stenta 18690afd01 Change Log Category form widget to options_select. 2020-12-06 18:32:00 -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 78081169d4 Revert "Convert geometry field to a base field."
This reverts commit f28cc6f037a25f836047f4e6fe7aa83f0b937b4f.

See https://www.drupal.org/project/farm/issues/3175497#comment-13908054
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 f80906b278 Convert log category field to a base field. 2020-11-20 11:35:47 -05:00
Michael Stenta 16c7d411a2 Convert owner 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 523b9fcdc3 Convert geometry field to a base field. 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