Michael Stenta
b3c4d0e550
Issue #3359452 : Deprecate farm_log_asset_names_summary()
2023-10-06 14:47:56 -04:00
Michael Stenta
aefe1e937b
Wrap all entity labels with Markup::create() in translated log names #698
...
This prevents entity labels with special characters like
apostrophes from being escaped when they are saved to
log names.
2023-08-09 15:53:28 -04:00
Paul Weidner
5ca5f1a3ab
Fix phpcs error that use statements should be sorted alphabetically
2023-06-13 09:53:49 -07:00
Michael Stenta
2b3bb21683
Fix bulk move/group action log names when unsetting location/group #669
2023-05-08 14:46:26 -04:00
Michael Stenta
967982b2f0
Respect user timezone in midnight default datetime values #665
2023-03-29 11:07:41 -04: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
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
Michael Stenta
fe155f8a16
Prevent circular group membership #562
2022-12-20 12:46:04 -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
15b31829ae
Revert "Prevent circular group membership #562 "
...
This reverts commit b495cdb840
.
See https://github.com/farmOS/farmOS/pull/562#issuecomment-1259869273
2022-09-27 13:50:36 -04:00
Paul Weidner
d0bde13f2a
Update AssetLocationInterface::getAssetsByLocation to return asset objects keyed by ID #565
2022-09-17 09:51:02 -04:00
Michael Stenta
597e984fb4
Fix "always exists and is not falsy" PHPStan errors.
2022-09-12 19:46:27 -04:00
Michael Stenta
b495cdb840
Prevent circular group membership #562
2022-08-29 19:06:35 -04:00
Michael Stenta
948a873f59
Fix Incorrect translation placeholders for asset names #540
2022-08-29 09:36:32 -04:00
Paul Weidner
426b001bdd
Remove create() implementations from classes that do not implement ContainerInjectionInterface #530
2022-05-06 09:17:10 -04:00
Paul Weidner
432b81e6fc
Return an array of assets keyed by their ID.
2022-01-28 08:56:22 -05:00
Paul Weidner
f57399947d
Perform entity validation in bulk actions.
2021-12-08 12:59:27 -05:00
paul121
9937730c14
Query assets from multiple locations in a single query.
2021-10-27 16:27:19 -04:00
paul121
50d7f643c2
Use dependency injection in views argument plugins.
2021-10-27 16:27:19 -04:00
paul121
937001a13a
Optimize group member logic in the group log event subscriber.
2021-10-27 16:27:19 -04:00
paul121
0df2e5b471
Query group members from multiple groups in a single query.
2021-10-27 16:27:19 -04:00
Michael Stenta
d3b3bd862d
Use upstream \Drupal\log\Event\LogEvent instead of custom event.
2021-10-18 15:23:26 -04:00
paul121
84a1d11eb2
Invalidate group member cache when the group location changes.
2021-10-18 10:12:44 -04:00
paul121
6821e32a14
Invalidate asset cache when group membership changes.
2021-10-18 10:12:44 -04:00
Michael Stenta
2ebeef595e
Require explicit use of accessCheck() on the result of farm.log_query service.
2021-10-01 12:44:07 -04:00
Michael Stenta
f462573b4e
Do not check access in log entity queries in asset.location and group.membership services.
2021-10-01 10:46:16 -04:00
Michael Stenta
8f98db20b6
Use asset names helper function to generate log names when using the group/move actions.
2021-08-30 17:55:58 -04:00
Michael Stenta
e08cb70650
Revert "Add groupOptions function to the group membership service."
...
This reverts commit 5dc7f53fab
.
2021-08-30 15:34:35 -04:00
Michael Stenta
0b7aa78c77
Use entity autocomplete widget for asset group action form.
2021-08-30 15:34:35 -04:00
Michael Stenta
d01189a99c
Use #date_part_order of year, month, day.
2021-08-30 13:45:32 -04:00
Michael Stenta
c741692eed
Use a date range of -15:+15 in asset group and move actions to match Log module.
2021-08-30 13:45:32 -04:00
Paul Weidner
72e3397d3d
Use default date_year_range values.
2021-08-30 13:45:32 -04:00
paul121
d65d344c66
Create asset_group_action.
2021-08-30 12:28:51 -04:00
paul121
5dc7f53fab
Add groupOptions function to the group membership service.
2021-08-30 12:28:51 -04:00
Michael Stenta
238fb66b85
Ensure an empty array is not used in SQL WHERE IN ().
2021-06-04 21:28:18 -04:00
Michael Stenta
f88b58e0d0
Only show "Members" tab on group assets.
2021-06-04 21:17:01 -04:00
Michael Stenta
390d69fe3e
Provide a Views argument handler for filtering assets by group.
2021-06-04 21:17:01 -04:00
Michael Stenta
90fe4498a0
Add getAssetsByLocation() method to GroupAssetLocation.
2021-06-04 21:12:37 -04:00
Michael Stenta
f68ec88102
Add a getGroupMembers() method to the group.membership service.
2021-06-04 16:07:40 -04:00
Michael Stenta
58ced4cdb3
Expose the computed "group" asset field to Views.
2021-05-27 14:59:33 -04: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
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
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
f1fd5b0dfb
Add support for asset bundle plugins.
2020-12-12 07:16:41 -05:00