Commit Graph

1630 Commits

Author SHA1 Message Date
paul121 64c6bacb89 Decrease whitespace in the map popup. 2021-12-08 13:06:36 -05:00
paul121 fdf5097bc3 Increase size of asset map popup for local actions. 2021-12-08 13:06:36 -05:00
paul121 76d68e01cf Create local action to view assets and view logs in the asset map popup. 2021-12-08 13:06:36 -05:00
paul121 71e8d3ed0e Sort local actions by their weight property. 2021-12-08 13:06:36 -05:00
paul121 8bde758565 Use a small dropbutton in the map popup. 2021-12-08 13:06:36 -05:00
paul121 6a9714f81e Issue #3202226: Show asset action links in asset details. 2021-12-08 13:06:36 -05:00
paul121 4e5fcd2747 Improve styling of the asset map_popup view mode within the iframe. 2021-12-08 13:06:36 -05:00
paul121 07a722fb48 Add styling for the map popup iframe. 2021-12-08 13:06:36 -05:00
paul121 6a99ec7747 Render the asset map_popup view mode in an iframe. 2021-12-08 13:06:36 -05:00
paul121 cef3033d9b Implement html and page theme hooks for the asset map_popup view mode. 2021-12-08 13:06:36 -05:00
Michael Stenta 6d613eabc3 Remove redundant comment. 2021-12-08 13:06:36 -05:00
Paul Weidner 2c660bcf3e Perform entity validation in state change actions. 2021-12-08 12:59:27 -05:00
Paul Weidner f57399947d Perform entity validation in bulk actions. 2021-12-08 12:59:27 -05:00
paul121 ddbaf1f7a5 Use $.when.apply instead of spread operator. 2021-12-08 10:15:05 -05:00
paul121 3ad1651d71 Wait for nested request within the success callback. 2021-12-08 10:15:05 -05:00
paul121 38292ff3b2 Refresh the location hierarchy after saving. 2021-12-08 10:15:05 -05:00
Michael Stenta 9290147c2e Exclude movement logs from asset geometry copy logic. 2021-12-08 07:48:55 -05:00
Michael Stenta 578419eda4 Use Activity log type instead of Movement in testPopulateLogGeometry(). 2021-12-08 07:48:55 -05:00
Michael Stenta c9ba9d5d7d Add tests for copying asset geometry. 2021-12-08 07:48:55 -05:00
Michael Stenta e6794e6050 Copy geometry from locations in asset reference field if no location assets are referenced.
Only include assets that have is_location set to TRUE.
2021-12-08 07:44:38 -05:00
Michael Stenta c16240737e Abstract log location asset loading out to getLocationAssets() method. 2021-12-08 07:44:38 -05:00
Michael Stenta 8d45332c59 Explicitly set is_location to TRUE in location assets created for kernel tests. 2021-12-08 07:44:38 -05:00
Michael Stenta 5b421ba73f Issue #3253264: Log geometry is not re-copied from locations when a custom geometry is cleared 2021-12-08 06:58:14 -05:00
Michael Stenta 6a7f123ae9 Change weight of Parents and ID Tags fields to 0. 2021-12-07 14:00:17 -05:00
Michael Stenta 9a454d383a Adjust default weight of Notes fields so it appears below 0 weight fields. 2021-12-07 14:00:17 -05:00
Paul Weidner 5ba4770ca0 Issue #3252348: Bundle path arguments do not work in sqlite 2021-12-02 11:38:04 -08:00
Michael Stenta 025e40c450 Fraction arithmetic no longer updates original Fraction object. 2021-12-01 19:44:29 -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
Paul Weidner 1d8953a607 Use the farm_people entity_reference display for the farm_log assigned to exposed filter options. 2021-12-01 12:14:55 -05:00
Paul Weidner 203efa0938 Create a farm_people entity_reference display that excludes the admin user. 2021-12-01 12:14:54 -05:00
Paul Weidner 1422e7b188 Add assigned to filter to log views. 2021-12-01 12:14:54 -05:00
Michael Stenta be79b051b4 Only load core module descriptions in FarmSettingsModulesForm.
There's no need to load them upstream in farm_modules(),
since this is the only place they are displayed.
2021-12-01 12:02:32 -05:00
paul121 b86d029e57 Only create batch operations for the modules that need to be installed. 2021-12-01 12:02:32 -05:00
paul121 a3f701ab59 Include module descriptions in the module settings form. 2021-12-01 12:02:32 -05:00
Paul Weidner 2281a560a4 Issue #3247339: Do not cache flag field allowed values when provided for a specific entity 2021-12-01 11:44:03 -05:00
Paul Weidner 7a68b87e87
Correct name and description of farm_quantity_material. 2021-10-31 14:38:17 -07: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 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
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