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

1109 commits

Author SHA1 Message Date
Michael Stenta cec091b720 Use the createQuantity() helper method in the createLog() helper method. 2021-10-27 13:45:18 -04:00
Michael Stenta a52fd0b5ae Provide traits with helper methods for creating quantities and terms. 2021-10-27 13:45:18 -04:00
Michael Stenta 78fa65945b If not specified, set the log's status to "done". 2021-10-27 13:45:18 -04:00
Michael Stenta c680e5c24b Display a message with a link to the entity when an asset or log is created. 2021-10-27 13:45:18 -04:00
Michael Stenta d5a4407301 Provide traits with helper methods for creating assets and logs. 2021-10-27 13:45:18 -04:00
Michael Stenta f14a6efd07 Add automated tests for quick forms.
Test plugin discovery and access control.
2021-10-27 13:45:18 -04:00
Michael Stenta c407ff70ac Move farm.quick menu link under farm.base and style the toolbar icon. 2021-10-27 13:45:18 -04:00
Michael Stenta 2eba7516ec Generate menu links for all quick forms and the index. 2021-10-27 13:45:18 -04:00
Michael Stenta 54c8ef4fce Add help text to individual quick forms. 2021-10-27 13:45:18 -04:00
Michael Stenta bf8731cc18 Add help text to quick form index. 2021-10-27 13:45:18 -04:00
Michael Stenta 2219a712cc Allow quick forms to control access via permissions and/or an access() method. 2021-10-27 13:45:18 -04:00
Michael Stenta c7ac62e239 Add a page controller at /quick that displays an index of quick forms. 2021-10-27 13:45:18 -04:00
Michael Stenta 2f6e556d01 Add a form wrapper class for rendering quick forms at /quick/{id} 2021-10-27 13:45:18 -04:00
Michael Stenta f0778dd1b3 Provide a quick form plugin manager. 2021-10-27 13:45:18 -04:00
Michael Stenta 072c030379 Initial commit of the farmOS Quick Forms module. 2021-10-27 13:45:18 -04:00
paul121 b14e91f195 Fix Uncaught PHP Exception Twig\\Error\\RuntimeError: "The "filter" filter expects an array or "Traversable", got "NULL"."
Initialize the content variable so it exists in quantity.html.twig
when the quantity has no populated fields.
2021-10-21 09:59:02 -07:00
paul121 997cd81f12 Plan state change actions support any workflow with the target state. 2021-10-18 16:16:09 -04:00
paul121 268cac91dc Asset state change actions support any workflow with the target state. 2021-10-18 16:16:09 -04: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
Michael Stenta 22f7438447 Remove flags that don't apply from Views exposed filters. 2021-10-18 14:55:11 -04:00
Michael Stenta a3c03fdcdf Abstract the logic for getting the bundle from a "By Type" display's arguments. 2021-10-18 14:55:11 -04:00
Michael Stenta 97309754c1 Issue #3243383: Allow flags to be limited to specific entity types and bundles 2021-10-18 14:55:11 -04:00
Michael Stenta 95bedca516 Fix comment in AssetMoveActionForm. 2021-10-18 10:55:29 -04:00
paul121 e79da002b5 Test that deleting an inventory adjustment updates the asset's inventory. 2021-10-18 10:54:28 -04:00
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 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 5a8ee98294 Refactor the location log event subscriber to use an isActiveMovementLog helper method. 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 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