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

1574 commits

Author SHA1 Message Date
paul121
42bd131784 Disable caching for the farm_people display. 2021-06-22 17:13:48 -04:00
paul121
ed51e6c906 Display "Never" if the user's last_access value is 0.
Enabling the "Count the number 0 as empty" option is not sufficient here
because a last_access value of 0 is converted to a timestamp on 1970.
This requires a rewrite to return 0 or the rendered date so that the
configured "No results behavior" are actually triggered.
2021-06-22 17:13:48 -04:00
Michael Stenta
72297b6c97 Revert "Patch geofield to fix Issue #3216608: GEOMETRYCOLLECTION EMPTY causes Error: Call to a member function getX() on null"
This reverts commit 463091fdad.

Patch was committed upstream and released as 8.x-1.32!
2021-06-22 17:12:59 -04:00
Michael Stenta
463091fdad Patch geofield to fix Issue #3216608: GEOMETRYCOLLECTION EMPTY causes Error: Call to a member function getX() on null 2021-06-22 12:02:29 -04:00
Michael Stenta
f0bcc36491 Fix parent ID assignment in unit taxonomy term migrations.
Terms with parents were being assigned as their own parents (circular).
Updated it to be identical to the logic used in other term migrations.
2021-06-21 19:12:15 -04:00
Michael Stenta
1d2320355b Issue #3219701: Log migration of quantity reference Error: Unsupported operand types in SubProcess->transform() 2021-06-19 08:36:20 -04:00
Michael Stenta
dadb77e30f Restore ID field (but hide it) in "upcoming" and "late tasks" log View displays to fix broken timestamp link. 2021-06-18 09:00:56 -04:00
Michael Stenta
81bb9552fc Fix entity count query and metrics caching. #431 2021-06-17 15:37:42 -04:00
paul121
b2f8b9a9a5 Add config:entity_type_list cache tag to rebuild metrics when the bundle list changes. 2021-06-17 15:37:06 -04:00
paul121
b2ad523037 Use the count() method to create aggregated entity count queries. 2021-06-17 15:37:06 -04:00
paul121
48e5b86d7d Add condition to limit count to the bundle. 2021-06-17 15:37:06 -04:00
Michael Stenta
380796b4c8 Move FarmBrowserTestBase to a farm_test module. 2021-06-17 09:42:43 -04:00
Michael Stenta
91c615c6e1 Remove state_machine patch (merged upstream). 2021-06-16 12:47:46 -04:00
Michael Stenta
1e73633e16 Display empty text in metrics block if no asset or log types exist. 2021-06-16 12:44:40 -04:00
Michael Stenta
d4532912a3 Fix metrics link to log bundles #430 2021-06-16 12:39:57 -04:00
paul121
5432134de0 Get entity counts with an entity aggregate query. 2021-06-15 18:11:57 -07:00
paul121
ed1ed131d2 Make class an array of multiple values. 2021-06-15 17:48:43 -07:00
paul121
f9e1140fb8 Build link to correct farm entity type page_type view. 2021-06-15 17:47:45 -07:00
paul121
d0be185d58 Append to the cache tags list. 2021-06-15 10:38:14 -07:00
paul121
23e9884260 Fix comment for stucture type field. 2021-06-14 14:15:25 -04:00
paul121
6be62e0d02 Remove unnecessary StringTranslationTrait import. 2021-06-14 14:15:25 -04:00
Michael Stenta
f18b12aff8 Ensure that a list of modules provided via drush site-install is an array. 2021-06-14 09:48:13 -04:00
Michael Stenta
8a811c2de7 Add a "default" option for installing only default+base modules via drush site-install. 2021-06-14 09:47:59 -04:00
Michael Stenta
46c70131ff Issue #3202579 by paul121, pcambra, mstenta: Map asset details 2021-06-09 11:55:36 -04:00
Pedro Cambra
26f55878cb Map popup custom controller 2021-06-09 11:33:35 -04:00
Michael Stenta
1da9527d3d Add flag CSS to maps so that flags in popups are styled. 2021-06-09 11:33:35 -04:00
Michael Stenta
d4d54927a7 Fix default view mode condition. $display->getMode() never returns "default". Instead load the view mode options by bundle to see if map_popup options are defined. 2021-06-09 11:33:35 -04:00
Michael Stenta
dbc2245d22 Add name and type to allowed default fields. 2021-06-09 11:33:35 -04:00
Michael Stenta
85efcaf324 Add a link to "View assets in this location", if the asset is a location. 2021-06-09 11:33:35 -04:00
Michael Stenta
bfcdcf4bbd Add "View logs" to an array of links rendered as markup with a pipe separator. 2021-06-09 11:33:35 -04:00
Michael Stenta
a7f2ea885f Hide more fields in map popups: group, id_tag, parent, season, status. 2021-06-09 11:33:35 -04:00
Michael Stenta
a7c5085876 Remove map_popup view modes for water assets. 2021-06-09 11:33:35 -04:00
paul121
3320662303 Remove the farm_powered block from the map_popup view mode template. 2021-06-09 11:33:35 -04:00
paul121
7894368f20 Add location field to map_popup view modes. 2021-06-09 11:33:35 -04:00
paul121
e7af56fe5f Only display common fields on asset bundles that don't provide a map_popup view mode. 2021-06-09 11:33:35 -04:00
paul121
8df4b16772 Remove map_popup view modes for compost, group and sensor assets. 2021-06-09 11:33:35 -04:00
paul121
07416c6601 Remove birthdate, is_castrated, nickname and sex fields from animal asset map_popup view mode. 2021-06-09 11:33:35 -04:00
paul121
7ec99e10f2 Add link to view logs from the asset popup. 2021-06-09 11:33:35 -04:00
paul121
027adf68a2 Do not render asset urls as absolute urls. 2021-06-09 11:33:35 -04:00
paul121
fb995a061c Ensure the popup is displayed inside the map. 2021-06-09 11:33:35 -04:00
paul121
9f7906d2c6 Render the asset map_popup view inside map popups. 2021-06-09 11:33:35 -04:00
paul121
8a1802ffd3 The asset_type_layers behavior depends on the popup behavior. 2021-06-09 11:33:35 -04:00
paul121
77102245f3 Add map_popup entity_view_display config for assets. 2021-06-09 11:33:35 -04:00
paul121
b1b30889cc Render the asset map_popup view mode at /asset/*/map_popup 2021-06-09 11:33:34 -04:00
paul121
2ccf64541f Create a map_popup view mode for assets. 2021-06-09 11:33:34 -04:00
paul121
0a94bbb6d9 Render the feature name as a link in popups if a url is provided. 2021-06-09 11:33:34 -04:00
paul121
1cb8e99928 Include a url property to view assets in the geojson export view. 2021-06-09 11:33:34 -04:00
Pedro Cambra
b628547d6e Remove unnecessary injection from AssetReorderController.php 2021-06-09 11:32:58 -04:00
Michael Stenta
b3be5b0755 If the new revision log message matches the original, then set a blank message. 2021-06-09 11:01:32 -04:00
Michael Stenta
4f31aa9ed1 Always set the revision user ID. 2021-06-09 10:10:12 -04:00