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

132 commits

Author SHA1 Message Date
Paul Weidner 874dfad08b Add asset_current_location field formatter. 2022-06-21 08:12:22 -04:00
Paul Weidner bab081692a Allow asset IDs to be passed as query params to asset move form. 2022-06-21 08:12:22 -04:00
Paul Weidner 6d13a732d7
Return empty array if location field returns NULL. 2022-06-13 13:35:15 -07: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 7508c8d4f8 Disable default field wrapper elements in entity_reference Views displays.
Before this, when using these Views in entity_autocomplete form
widgets, the form field content ends up with <span> tags wrapping
the entity label.
2022-01-14 11:05:51 -05:00
Michael Stenta fe0bc23f85 Re-export Views config per https://www.drupal.org/node/3230199 (no changes). 2022-01-14 11:05:51 -05: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 cae9a41125 Document why we manually add a $log->asset field in some test modules. 2021-12-27 17:32:12 -05:00
Michael Stenta 6d613eabc3 Remove redundant comment. 2021-12-08 13:06:36 -05:00
Paul Weidner f57399947d Perform entity validation in bulk actions. 2021-12-08 12:59:27 -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
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
Michael Stenta d3b3bd862d Use upstream \Drupal\log\Event\LogEvent instead of custom event. 2021-10-18 15:23:26 -04:00
Michael Stenta 95bedca516 Fix comment in AssetMoveActionForm. 2021-10-18 10:55:29 -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
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 e4c35aca19 Set $defaultTheme to stark in all WebDrivcerTestBase tests. 2021-09-06 11:00:51 -04:00
paul121 299ff56ee0 Allow log and asset geometry to be populated from the file field. 2021-09-01 22:47:08 -04:00
Michael Stenta 41d3eac174 Move WktTrait to farm_geo module. 2021-09-01 22:46:37 -04:00
Michael Stenta 8f98db20b6 Use asset names helper function to generate log names when using the group/move actions. 2021-08-30 17:55:58 -04:00
Michael Stenta d01189a99c Use #date_part_order of year, month, day. 2021-08-30 13:45:32 -04:00
Michael Stenta c741692eed Use a date range of -15:+15 in asset group and move actions to match Log module. 2021-08-30 13:45:32 -04:00
Paul Weidner 72e3397d3d Use default date_year_range values. 2021-08-30 13:45:32 -04:00
Paul Weidner 8420246b0a Do not require a location asset so the location can be reset. 2021-08-30 13:45:32 -04:00
paul121 d01f511850 Create asset_move_action. 2021-08-30 12:28:51 -04:00
paul121 a98e24046f Move location API tests to a separate functional test.
The API requests are incompatible with the javascript test driver.
2021-08-23 09:18:57 -04:00
paul121 a592f6d6a5 Create a LocationFunctionalTestTrait that provides test setup logic. 2021-08-23 09:18:57 -04:00
paul121 40656df9b1 Correct namespace. 2021-08-23 09:18:57 -04:00
paul121 3f799c5adb Fix method for finding fields with variable visibility.
Look for the fieldset wrapper instead of the actual field. This is
sufficient for testing visibility.
2021-08-23 09:18:57 -04:00
paul121 039012c124 WebDriver does not return status codes. 2021-08-23 09:18:57 -04:00
paul121 b60d85db5e Invalidate asset cache when movement logs are deleted. 2021-07-30 15:30:40 -04:00
paul121 027adf68a2 Do not render asset urls as absolute urls. 2021-06-09 11:33:35 -04:00
paul121 1cb8e99928 Include a url property to view assets in the geojson export view. 2021-06-09 11:33:34 -04:00
Michael Stenta 4d631d7f38 Declare asset and log module dependencies in farm_location module. 2021-06-05 21:34:09 -04:00
Michael Stenta 238fb66b85 Ensure an empty array is not used in SQL WHERE IN (). 2021-06-04 21:28:18 -04:00
Michael Stenta 187bd7abcb Move all Views hooks to *.views.inc and *.views_execution.inc include files. 2021-06-04 21:17:41 -04:00
Michael Stenta 2ac1a0d41e Provide a Views argument handler for filtering assets by location. 2021-06-04 21:15:25 -04:00