paul121
11344de38b
Use a LogEventSubscriber to invalidate asset cache on inventory changes.
2021-10-18 10:54:28 -04:00
paul121
b7984ec850
Add failing tests for asset inventory cache invalidation.
2021-10-18 10:47:24 -04:00
paul121
a8cfea7b5e
Update farm_birth LogEventSubscriber service name and description.
2021-10-18 10:12:44 -04:00
paul121
c3aa76dc90
Update farm_location LogEventSubscriber service name and description.
2021-10-18 10:12:44 -04:00
paul121
be8d5ef14b
Fix typo in LocationTest::testLocationAssets.
2021-10-18 10:12:44 -04:00
paul121
6ef8a213dc
Test that deleting a movement log updates the asset's location.
2021-10-18 10:12:44 -04:00
paul121
d77c535105
Refactor farm_location tests to test asset cache tag invalidation directly instead of via requests to JSONAPI.
2021-10-18 10:12:44 -04:00
paul121
00eb75ea71
Only invalidate cache of assets if the movement log timestamp is in the past.
2021-10-18 10:12:44 -04:00
paul121
72771af905
Test that deleting a group's location log updates the group members' location.
2021-10-18 10:12:44 -04:00
paul121
84a1d11eb2
Invalidate group member cache when the group location changes.
2021-10-18 10:12:44 -04:00
paul121
5a8ee98294
Refactor the location log event subscriber to use an isActiveMovementLog helper method.
2021-10-18 10:12:44 -04:00
paul121
ac04de8597
Test that deleting a group membership log updates the asset's group.
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
paul121
3c4a5cfeea
Add trait for testing entity cache invalidation.
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
Michael Stenta
44eb865048
Stub crop family reference terms.
...
If the crop family migration happens after plant type migration
then these references would not be populated. This shouldn't
happen, because plant type depends on crop family, but it may
be possible. Better to know that something happened than to
silently end up with empty references.
2021-10-14 09:42:13 -04:00
Michael Stenta
c7d2fce98e
Remove forum_container field processing from taxonomy term migration group.
...
We don't need this for anything.
2021-10-11 15:46:08 -04:00
Michael Stenta
7f2e56bd61
Issue #3242468 : Validation error migrating taxonomy terms that are parents of other terms
2021-10-11 15:45:56 -04:00
Michael Stenta
ccbb206d56
Remove request_time migrate process plugin - no longer used.
2021-10-11 14:44:54 -04:00
Michael Stenta
70e391c864
Do not archive areas without an area type during migration.
...
This was supposed to be included with the previous commit:
4d59cd69c7
2021-10-11 14:42:43 -04:00
paul121
d86c21cff2
Issue #3241690 by paul121: User 1 cannot use the refresh_token grant type
...
Load all roles for user 1 so they can be granted all possible scopes.
2021-10-08 19:29:03 -04:00
paul121
703f31d0e1
Issue #3241652 by paul121: Depend on drupal/subrequests
2021-10-08 17:46:51 -04:00
Michael Stenta
840307e36d
Remove unnecessary remember_roles from Views config.
2021-10-04 19:21:00 -04:00
paul121
e6b76a7446
Issue #3240330 by paul121: Computed bundle fields break page_type views
...
Default to the entity type's base table if the table mapping does not find a table for the bundle field.
2021-10-04 16:28:29 -04:00
Michael Stenta
6207d09d9d
Style the reports toolbar icon with a Gin SVG.
2021-10-04 12:24:08 -04:00
Michael Stenta
0defc4d966
Move the farm.report menu link to the farm.base parent via farm_ui_menu.
2021-10-04 12:24:08 -04:00
Michael Stenta
f2da5c96c8
Grant report index access to managed roles with config-level access.
2021-10-04 12:24:08 -04:00
Michael Stenta
b5360d91be
Add an index of reports at /report.
2021-10-04 12:24:08 -04:00
Michael Stenta
dccaa1f43a
Initial farm_report module.
2021-10-04 12:24:08 -04:00
Michael Stenta
cafd8bd760
Limit Views Entity Reference exposed filters by View or target_bundles.
2021-10-04 12:02:37 -04:00
paul121
254c303e33
Remove log.asset and log.location filters from the page_asset display.
2021-10-04 10:30:41 -04:00
paul121
99b1ca5637
Add default exposed filters for log.asset and log.location.
2021-10-04 10:30:41 -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
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
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
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
e6f183512c
Do not allow ID Tag field to be created through the UI. #451
2021-10-01 07:07:57 -04:00
Michael Stenta
32f6457a06
Fix ID Tag type textfield fallback.
2021-10-01 06:20:32 -04:00
Michael Stenta
092b6936d4
Clarify that farm_update only reverts configuration entities - not simple config.
2021-09-27 09:50:22 -04:00
paul121
3a46ccb60b
Issue #3239191 by paul121: Change farm_update to ignore simple config
2021-09-27 09:50:10 -04:00
Symbioquine
efb8535150
Improve plan archive timestamp behavior #446
...
**Why?** Fix some weird behavior and make sure
inconsistent states cannot occur;
* Allow setting the archived timestamp at the same
time as moving a plan to the archived state.
* Ensure that the archived timestamp cannot be set
without also transitioning into the archived state.
* Ensure that the arhived timestamp cannot be set to
NULL without transitioning back to the active state.
2021-09-24 12:36:14 -04:00
Symbioquine
27142866d3
Improve asset archive timestamp behavior #446
...
**Why?** Fix some weird behavior and make sure
inconsistent states cannot occur;
* Allow setting the archived timestamp at the same
time as moving an asset to the archived state.
* Ensure that the archived timestamp cannot be set
without also transitioning into the archived state.
* Ensure that the arhived timestamp cannot be set to
NULL without transitioning back to the active state.
2021-09-24 12:36:14 -04:00
Michael Stenta
20ceb84193
Move ID Tag base field to farm_id_tag.
2021-09-24 12:23:01 -04:00
Michael Stenta
e9e523c095
Move flag base field, action, config, and logic to farm_flag.
2021-09-24 12:22:25 -04:00
Michael Stenta
0029cfbf01
Move Views stuff from farm_entity to new farm_entity_views sub-module.
2021-09-24 12:21:15 -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
792c24edce
When a log is saved without owner(s), set the current user as the owner.
2021-09-24 11:50:32 -04:00
Michael Stenta
1502115bc7
Move log assignment action to farm_owner module.
2021-09-24 11:50:32 -04:00
Michael Stenta
0f84ff1575
Move Log Owner base field to dedicated farm_owner module.
2021-09-24 11:50:32 -04:00
Michael Stenta
1f0c254e79
Remove explicit dependency on farm_flag from farm_maintenance.
2021-09-24 11:50:02 -04:00
paul121
6646a31d37
Log the result after reverting config. #447
2021-09-24 10:03:19 -04:00
paul121
585f3eaecb
Add missing default_measure key for material quantity. #448
2021-09-24 07:30:32 -04:00
Michael Stenta
e0e34d6e01
The farm_geo module depends on geofield for the geofield.geophp service.
2021-09-23 16:54:55 -04:00
Michael Stenta
db40dc13a6
Exclude system.performance config from automatic updates.
2021-09-23 09:55:41 -04:00
Michael Stenta
b08c9ab1b5
Exclude user.role.anonymous and user.role.authenticated config from automatic updates.
2021-09-23 09:55:41 -04:00
Michael Stenta
d51176aef1
Automated tests of farmOS Update module.
2021-09-23 09:55:41 -04:00
Michael Stenta
f575b0039f
Exclude farm_update.settings config from automatic updates, just to be safe.
2021-09-23 09:55:41 -04:00
Michael Stenta
f881bea2e3
Allow additional config exclusions to be defined in farm_update.settings.
2021-09-23 09:55:41 -04:00
Michael Stenta
e36ac7a33f
Exclude quantity.settings config from automatic updates.
2021-09-23 09:55:41 -04:00
Michael Stenta
938fb5926c
Exclude config that we override in hook_install().
2021-09-23 09:55:41 -04:00
Michael Stenta
a46c0923a0
Exclude core configuration items from automatic updates.
2021-09-23 09:55:41 -04:00
Michael Stenta
24d158341f
Add a hook_farm_update_exclude_config() to allow modules to exclude config from automatic updates.
2021-09-23 09:55:41 -04:00
Michael Stenta
95702e5be4
Log when reverting config fails.
2021-09-23 09:55:41 -04:00
Michael Stenta
8d034c5186
Revert overridden configuration on rebuild().
...
Inspired by ConfigUpdateUiCliService.
2021-09-23 09:55:41 -04:00
Michael Stenta
59dd58a962
Provide a farm_update:rebuild Drush command.
2021-09-23 09:55:41 -04:00
Michael Stenta
039eb0fbf5
Run FarmUpdate::rebuild() via hook_rebuild().
2021-09-23 09:55:41 -04:00
Michael Stenta
2dd6a268f8
Initial farm.update service with rebuild() method.
2021-09-23 09:55:41 -04:00
Michael Stenta
fbb589655d
Initial farm_update module.
...
Installed with base modules.
2021-09-23 09:55:41 -04:00
Michael Stenta
7092a0830f
Refactor dashboard block handling to always expect block plugin ID.
2021-09-22 15:17:17 -04:00
Eva Martinez
3ea20c1d63
#3236712 : Renamed block plugin variable and use the renamed dashboard pane key and simplify block access check.
2021-09-22 15:10:31 -04:00
Eva Martinez
ddefa1e2c9
#3236712 : Rename new dashboard pane key.
2021-09-22 15:10:31 -04:00
Eva Martinez
af786a9abc
#3236712 : Added functionality to render custom blocks in dashboard.
2021-09-22 15:10:31 -04:00
Eva Martinez
62562def8f
#3236712 : Added new plugin block key to dashboard pane.
2021-09-22 15:10:31 -04:00
paul121
95c916b8e9
Add functional test of quantity type views filter.
2021-09-22 14:45:20 -04:00
Michael Stenta
51d3a40123
Move QuantityEventSubscriber to farm_material module.
2021-09-22 14:45:20 -04:00
Michael Stenta
219311568c
Create material quantities after general log quantities.
...
The thought here is that the "important" quantities should be
"first" on the log.
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
d4b24222ea
Auto-populate material type term reference from a material inventory asset.
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
paul121
a847724a46
Save quantities as a pseudo field in the farm_migrate_log migration group.
...
This is necessary so that individual log types can use pseudo fields in
the "quantity" process if they override it themselves.
When a migration group defines shared_configuration processes that are
overwritten by a migration, the processes are still executed in the
order defined by the migration group. This prevents an individual
migration from using its own pseudo fields for a process that it
overrides.
2021-09-22 14:45:20 -04:00
Michael Stenta
a95c487b9d
Add a Material Quantity type with a Material type term reference field.
2021-09-22 14:45:20 -04:00
s33a
4b1b93efda
Add a "Material type" reference field to Material assets.
2021-09-22 14:45:20 -04:00
s33a
13492129e6
Add a Material asset type.
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
ede1ed7605
Fix "entity.plan.collection does not exist" when plans module is not enabled.
2021-09-22 14:43:45 -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
320ec3d331
Add INSERT and UPDATE log events.
2021-09-21 17:34:54 -04:00