Michael Stenta
b3c4d0e550
Issue #3359452 : Deprecate farm_log_asset_names_summary()
2023-10-06 14:47:56 -04:00
Michael Stenta
81d6c61b49
Fix submit button text in "Add Log" action form.
2023-08-21 08:23:44 -04:00
Michael Stenta
6d1cdc7f2e
Fix farm_log_asset_names_summary() $cutoff parameter #674
2023-05-11 12:53:09 -04:00
Michael Stenta
0825dc7a50
Add a reusable function for determining default log quantity type.
2022-11-22 16:20:40 -05:00
Michael Stenta
9f5ee25f44
Mark LogQueryFactory as @internal.
2022-11-16 14:37:55 -05:00
Paul Weidner
426b001bdd
Remove create() implementations from classes that do not implement ContainerInjectionInterface #530
2022-05-06 09:17:10 -04:00
Michael Stenta
b2db6ea2cc
Depend on farm_log_asset in log query, location, and group tests, instead of adding $log->asset fields in each.
2021-12-28 12:58:03 -05:00
Michael Stenta
bb28e2f52b
The farm_log module depends on farm_log_asset because it works with the $log->asset field.
...
- Used for filtering in the farm.log_query service.
- Used for prepopulating asset field in farm_log_entity_prepare_form().
2021-12-28 11:35:03 -05:00
Michael Stenta
2175b57e2d
Move asset reference field on logs to new farm_log_asset module.
2021-12-28 09:17:42 -05:00
Michael Stenta
cae9a41125
Document why we manually add a $log->asset field in some test modules.
2021-12-27 17:32:12 -05:00
Michael Stenta
3a6d85e63c
Modules with log event subscribers can depend on log instead of farm_log now that events are provided upstream.
...
See Issue #3243163 : Dispatch a LogEvent for log save, delete and clone operations
2021-12-27 17:32:12 -05:00
Paul Weidner
696c6bf705
Use the log access control handler to check permission to create log bundles.
2021-12-01 12:18:51 -05:00
paul121
9d4a7a756f
Issue #3240953 by paul121: Duplicated logs reference the same quantity entity
2021-10-18 15:34:25 -04:00
Michael Stenta
d3b3bd862d
Use upstream \Drupal\log\Event\LogEvent instead of custom event.
2021-10-18 15:23:26 -04:00
paul121
8127e751a8
Specify accessCheck(FALSE) in LoqQueryTest.
2021-10-01 10:01:35 -07: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
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
1502115bc7
Move log assignment action to farm_owner module.
2021-09-24 11:50:32 -04:00
Michael Stenta
320ec3d331
Add INSERT and UPDATE log events.
2021-09-21 17:34:54 -04:00
Michael Stenta
5f232b4319
Move all sub-modules into sub-directories called "modules" for consistency.
2021-09-17 16:11:38 -04:00
Michael Stenta
08c50d7fde
Fix TypeError: Argument 1 passed to Drupal\Core\Entity\EntityStorageBase::loadMultiple() must be of the type array or null, string given.
...
This error occurs if ?asset=X is used instead of ?asset[]=X.
We can take a more defensive approach by automatically
wrapping the input in an array if it isn't already one.
2021-09-06 11:00:51 -04:00
Michael Stenta
835209e5a2
Add a helper function for generating truncated lists of asset names.
2021-08-30 17:55:58 -04:00
Michael Stenta
c8089ee561
Do not limit log assign action user list to managed roles.
2021-08-30 14:35:00 -04:00
Michael Stenta
4aa8fbdac2
Move logic to prepopulate the log asset field to the farm_log module.
2021-08-30 13:45:32 -04:00
Paul Weidner
142ecb1ed6
Only require view access to assets referenced by logs.
2021-08-30 13:45:32 -04:00
Paul Weidner
30b83735ba
Limit to log types the user has access to create.
2021-08-30 13:45:32 -04:00
paul121
e8db19a9d9
Create asset_add_log action.
2021-08-30 13:45:32 -04:00
paul121
8dd7ecc88b
Only display active users that have a managed role in log assign form.
2021-08-30 12:28:51 -04:00
paul121
6d69b44df3
Create log_assign_action.
2021-08-30 12:28:51 -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
f77ba74e2a
Move LogEventSubscriber for cleaning up log quantities to the farm_log_quantity module.
2021-07-22 17:40:16 -04:00
Michael Stenta
cdfe4dc5a4
Move log quantity base field definition to farm_log_quantity module.
...
The farm_inventory module had an implicit dependency on this
field, so by moving this out to its own module we can depend
on it explicitly without adding a dependency on farm_entity
as a whole.
2021-07-22 17:40:16 -04:00
Michael Stenta
319fcad256
Make the asset field in test modules a BaseFieldDefinition and allow multiple values.
2021-03-25 08:43:13 -04:00
Michael Stenta
445f3e4284
Add support for log delete events.
2021-02-05 12:23:20 -05:00
Michael Stenta
e703359e4e
Generalize LogPresaveEvent to LogEvent.
2021-02-05 12:23:20 -05:00
Michael Stenta
e6e6873f83
If an asset without ID is used for filtering, include the condition. Otherwise results that don't match the asset will be returned.
2021-01-22 06:47:00 -05:00
Michael Stenta
a7ff90d991
Provide a LogPresaveEvent that is triggered by hook_entity_log_presave().
2020-12-29 12:27:35 -05:00
Michael Stenta
3eac6ef363
Add tests for farm.log_query service.
2020-12-18 16:20:08 -05:00
Michael Stenta
be0b8a906a
If an asset is provided, only include logs that reference it.
2020-12-18 15:50:26 -05:00
Michael Stenta
923ed19215
Add the ability to limit log query results.
2020-12-18 15:50:26 -05:00
Michael Stenta
b95962ad0b
Add support for log type, timestamp, and status filtering.
2020-12-18 15:50:26 -05:00
Michael Stenta
98bfa0a086
Accept an array of options in LogQueryFactory::getQuery().
2020-12-18 15:50:26 -05:00
Michael Stenta
dd378f7bb8
Initial LogQueryFactory service for generating log entity queries.
2020-12-18 15:50:26 -05:00
Michael Stenta
99cba5cf35
Move farm_log_ui to farm_ui_views.
2020-11-27 11:17:28 -05:00
Michael Stenta
33f463682b
Put farm_log_ui in farmOS UI modules group.
2020-11-27 09:58:00 -05:00
Michael Stenta
1967d186c7
Rename farm_log to farm_log_ui.
2020-11-27 09:58:00 -05:00
Michael Stenta
bb3242e0d9
Add dependency on date_popup to improve timestamp exposed filters.
2020-11-27 09:58:00 -05:00
Michael Stenta
071b9e442f
Replicate farmOS 1.x farm_log View, including "All logs" and "User logs" displays.
2020-11-27 09:58:00 -05:00
paul121
a52b656252
Remove link to log type from views.
2020-11-27 09:58:00 -05:00
paul121
019b11f070
Add page views of late and upcoming tasks.
2020-11-27 09:58:00 -05:00