Commit Graph

1544 Commits

Author SHA1 Message Date
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 b2c9fc9792 Move farm_client_test module to modules directory and "Testing" package. 2021-10-27 15:53:29 -04:00
paul121 b417cf4a78 Add module for testing client modules. 2021-10-27 15:53:29 -04:00
paul121 59859f12b6 Grant the "view client_module" permission to managed roles with default permissions. 2021-10-27 15:53:29 -04:00
paul121 b827a46c9c Grant the "administer client_module" permission to managed roles with config permissions. 2021-10-27 15:53:29 -04:00
paul121 d398543082 Use the contrib entity access and permission_provider handlers. 2021-10-27 15:53:29 -04:00
paul121 01164d5d08 Create a controller to serve the client_module index.js 2021-10-27 15:53:29 -04:00
paul121 d0ae47e162 Define a client_module config entity. 2021-10-27 15:53:29 -04:00
Michael Stenta 4a8fddd5af Dynamically add the "Quick forms" index menu item only if quick forms exist. 2021-10-27 15:22:34 -04:00
Michael Stenta adb53b1211 Translate 1.x quick form IDs to 2.x (placeholder).
This is just a placeholder. IDs can be added here as the 2.x
quick forms are built.
2021-10-27 15:22:34 -04:00
Michael Stenta 538d9cf24c Migrate quick form IDs from the 1.x {farm_quick_entity} table into the "quick" field on assets and logs. 2021-10-27 15:22:34 -04:00
Michael Stenta 282e3f221d Add a d7_farm_asset migration source plugin for all asset migrations. 2021-10-27 15:22:34 -04:00
Michael Stenta 07c6ff2193 Only check entity view access in QuickFormActionBase. 2021-10-27 15:22:34 -04:00
Michael Stenta a36bf06b4a Move QuickFormBase and QuickFormInterface to src/Plugin/QuickForm. 2021-10-27 15:22:34 -04:00
paul121 3bee8d4fb1 Provide a trait for loading prepopulated entity references. 2021-10-27 15:22:34 -04:00
paul121 560cd37168 Provide a base class for quick form action plugins. 2021-10-27 15:22:34 -04:00
paul121 ac1679841d Provide a route for each quick form. 2021-10-27 15:22:34 -04:00
paul121 b3428fc737 Only implement ContainerFactoryPluginInterface in QuickFormBase. 2021-10-27 15:22:34 -04:00
paul121 ba3011a5e6 QuickForms are provided under the Plugin/QuickForms directory. 2021-10-27 15:22:33 -04:00
Michael Stenta 93dd920391 Track which quick form created assets/logs. 2021-10-27 15:22:33 -04:00
Michael Stenta f165683c65 Add a field to assets and logs for tracking which quick form(s) created them. 2021-10-27 15:22:33 -04:00
Michael Stenta 926ae97372 Add automated tests of all quick form helper traits/methods. 2021-10-27 13:45:18 -04:00
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