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

1941 commits

Author SHA1 Message Date
wotnak b304bff4d2
Fix map ui being unreadable on dark mode #642 2023-02-20 21:50:54 +01:00
Michael Stenta 18599f80c3 Convert geometry values to WKT in GeofieldWidget #640 2023-02-10 11:36:42 -05:00
Michael Stenta 9a422eb516 Add an automated test for the farmOS Geofield widget.
This is copied and minimally modified from the upstream
Geofield module's widget tests.
2023-02-10 11:23:11 -05:00
Michael Stenta f73aa956fe Fix config schema for field.widget.settings.farm_map_geofield. 2023-02-10 11:19:34 -05:00
Michael Stenta a98fd5742a Issue #3335267 by m.stenta, farmer-ed, penyaskito: 405 Method Not Allowed when trying to patch entities as a user with non-default language 2023-02-08 16:09:51 -05:00
Michael Stenta 03b81c58f6 Add farm_l10n API kernel test to demonstrate Issue #3335267: 405 Method Not Allowed when trying to patch entities as a user with non-default language 2023-02-08 16:09:51 -05:00
Michael Stenta b2abb076a2 Test deleting assets and logs. 2023-02-08 13:02:45 -05:00
Michael Stenta c42c0d60e3 Test updating assets and logs. 2023-02-08 13:02:45 -05:00
Michael Stenta ad345694c2 Test retrieving assets and logs. 2023-02-08 13:02:45 -05:00
Michael Stenta 492dcb9391 Test creating a log that references an asset. 2023-02-08 13:02:45 -05:00
Michael Stenta 0614b0e709 Test creating an asset and log. 2023-02-08 13:02:45 -05:00
Michael Stenta 63d1f4b8e0 Initial farm_api kernel tests: check /api meta.farm info. 2023-02-08 13:02:45 -05:00
Michael Stenta c892a6addf Remove negative sign in front of zero. 2023-02-08 10:56:26 -05:00
Michael Stenta baf294d3bd Add @internal to planting quick form class. 2023-02-07 08:31:16 -05:00
Michael Stenta 1b477885dd Remove time service from planting quick form #636 2023-02-07 08:31:00 -05:00
Michael Stenta ac72de72ba Allow setting time in bulk actions and quick forms via datetime element #635 2023-02-04 17:18:00 -05:00
Eric Larese 7c69c6c901 Change asset action date pickers to use HTML5 calendar widgets #630 2023-02-02 11:29:27 -05:00
Paul Weidner 32842c5e88 Move land and structure type fields higher up for consistency #632
Currently the land and structure type field come after status, flags
and owners. This is different than animal and plant assets whose type
field comes immediately after the asset name. Since the land and
structure type are required fields it seems more appropriate to have
them included higher in the form.
2023-02-01 15:18:00 -08:00
Paul Weidner 2165437132 Fix type error when un-assigning asset from group #631
Submitting the group asset action form without a group yields the following error:
Message	TypeError: array_column(): Argument #1 ($array) must be of type array, null given in array_column()
(line 195 of /var/www/html/web/profiles/farm/modules/asset/group/src/Form/AssetGroupActionForm.php)

One fix is to use the null coalescing operator to return an empty array when the form value is null.
2023-01-31 14:07:11 -08:00
Eric Larese 69f12631e2 Remove un-needed phpstan ignores.
See https://github.com/mglaman/phpstan-drupal/issues/474
2023-01-27 14:55:09 -05:00
Michael Stenta a1e49797ed The #date_year_range property is not used on fields of #type = date. 2023-01-20 08:39:33 -05:00
Michael Stenta c61f67866b Set the Quantity view mode to "Plain text" in farm_log View's "CSV export" display. 2022-12-22 19:05:45 -05:00
Michael Stenta 0b361341e3 Add a plain_text Quantity view mode that strips tags and whitespace. 2022-12-22 19:05:45 -05:00
Michael Stenta 0f8308c06d Issue #3328419: Uninstalling farm_ui_views module breaks site 2022-12-20 16:52:16 -05:00
Michael Stenta fe155f8a16 Prevent circular group membership #562 2022-12-20 12:46:04 -05:00
Michael Stenta ac54fb4dc2 Make sure log asset != log location in circular location constraint logic #623 2022-12-20 10:45:33 -05:00
Michael Stenta 61fd988044 Prevent circular asset location #568 2022-12-19 16:06:01 -05:00
Michael Stenta 272e698e87 Issue #3310286: Add $timestamp parameter to asset.inventory service methods 2022-12-15 14:06:30 -05:00
Michael Stenta 7c9ef9a8bd Issue #3310286: Add $timestamp parameter to group.membership service methods 2022-12-15 14:06:30 -05:00
Michael Stenta d154db811c Issue #3310286: Add $timestamp parameter to asset.location service methods 2022-12-15 14:03:27 -05:00
Michael Stenta 0b3533e0f0 Only show the first quantity in log Views #619 2022-12-13 09:43:45 -05:00
Paul Weidner ad946875de Include GEOS version in status report #614 2022-12-06 10:17:34 -08:00
Paul Weidner 37314b8864 Fix enable/disable buttons on data stream notifications page #613 2022-12-06 11:48:43 -05:00
Paul Weidner ec5b39af83 Fix TypeError when adding email delivery #616 2022-12-06 10:42:03 -05:00
Michael Stenta c787d7e256 Remove default_measure configuration from quantity type definitions #612
This was originally added so that the Price quantity type could set its
default measure to "value" all the time. This was back when price
quantities were part of farmOS core. It was then moved to the
farm_ledger contrib module, and is being refactored such that it will no
longer need to make use of this default_measure configuration.
2022-12-02 14:02:24 -05:00
Michael Stenta d5a87aa3e8 Wrap table names in curly braces. 2022-12-02 08:06:50 -05:00
Michael Stenta 7c1aa73a34 Fix migration of lab field to taxonomy terms #611
PR #603 changed the "Laboratory" field from a simple text field to a
taxonomy term reference field. But it did not update the v1 migration
logic accordingly.

See https://github.com/farmOS/farmOS/pull/603
2022-11-29 14:56:42 -05:00
Paul Weidner 0effe2167e Fix managed role form alter for individual role permissions page #610 2022-11-29 11:48:36 -08:00
Paul Weidner 03a60cfc11 Chain the flag specific class after the generic flag class
This ensures that the flag specific class will be more specific
than the generic flag class. This pattern isn't necessary for the flag
classes in this file since the generic flag class is defined first, but
this pattern is necessary for other modules to provide styles for flags.
2022-11-29 06:37:30 -05:00
Paul Weidner 87e76a4bfb Correct CSS classname for priority flag #609 2022-11-29 06:37:29 -05:00
Paul Weidner 351e0b0cc7 Correct hook_farm_update_exclude_config API docs #608 2022-11-28 16:41:13 -08:00
Michael Stenta 70fa979440 Fix update hook for converting lab to taxonomy #606 2022-11-26 08:22:01 -05:00
Michael Stenta 8b49a232e2 Add tissue lab test type #605 2022-11-25 12:03:39 -05:00
Michael Stenta 96cb706cab Change "Test method" field to a taxonomy term reference. 2022-11-25 12:02:38 -05:00
Michael Stenta 80f75ebcb2 Change "Lab" quantity to "Test" quantity to be more general. 2022-11-25 12:02:38 -05:00
Michael Stenta 21c0fb4163 Use lab quantity as default in lab_test logs. 2022-11-25 12:02:38 -05:00
Michael Stenta 42e446470a Add a "Lab measurement" quantity type with a "Lab method" string field. 2022-11-25 12:02:38 -05:00
Michael Stenta 347de7aac7 Convert lab field to term reference on lab test logs #603 2022-11-25 12:02:38 -05:00
Michael Stenta fbd754e867 Add "Date received" and "Date processed" fields to lab test logs #602 2022-11-25 12:02:38 -05:00
Michael Stenta c100569bf7 Rearrange lab test log field definitions to match their weights. 2022-11-25 12:02:38 -05:00