Michael Stenta
|
e1efdc3aba
|
Add location UI help text.
|
2021-06-07 11:06:16 -04:00 |
Michael Stenta
|
cdae05caa7
|
Move toggle link to a button inline with Save and Reset.
|
2021-06-07 11:06:16 -04:00 |
Michael Stenta
|
7a86c2f2fb
|
Fix locations overview tree so that it works without a root parent.
|
2021-06-07 11:06:16 -04:00 |
Michael Stenta
|
abb0f7944a
|
Remove unused use statements.
|
2021-06-07 07:53:16 -04:00 |
Michael Stenta
|
cf7d26f683
|
Do not include archived child locations.
|
2021-06-07 07:53:16 -04:00 |
Michael Stenta
|
5e0c22d0c5
|
Refactor getAssetChildren() into getLocations() because it is specifically child locations. Always return an array.
|
2021-06-07 07:53:16 -04:00 |
Michael Stenta
|
cfa6ac67bc
|
Add docblock for build() method.
|
2021-06-07 07:53:16 -04:00 |
Michael Stenta
|
cd7139f26e
|
Refactor access callback to forbid access if the asset is not a location or it has no child locations.
|
2021-06-07 07:51:29 -04:00 |
Michael Stenta
|
062d7ffc28
|
Add an "access locations overview" permission for /locations and /asset/%/locations.
Grant it to farmOS managed roles by default.
|
2021-06-07 07:51:29 -04:00 |
Michael Stenta
|
317efd01cd
|
Set the page title of asset/%/locations to "Locations in %location".
|
2021-06-07 07:51:28 -04:00 |
Michael Stenta
|
8cd89c8150
|
Hide "Children" tab on location assets.
|
2021-06-05 21:34:10 -04:00 |
Pedro Cambra
|
bf9258536f
|
Add toggle link and node links
|
2021-06-05 21:34:10 -04:00 |
Pedro Cambra
|
a42a9cc527
|
Removed location force revision as it will implemented more generally in https://www.drupal.org/project/farm/issues/3216766
|
2021-06-05 21:34:10 -04:00 |
Pedro Cambra
|
7e91f85c81
|
Added status to the save button
|
2021-06-05 21:34:10 -04:00 |
Pedro Cambra
|
511bd3771d
|
Force revision creation through json api
|
2021-06-05 21:34:10 -04:00 |
Pedro Cambra
|
7ab249b03c
|
Added route access so the location tab is not displayed if the asset has no children
|
2021-06-05 21:34:10 -04:00 |
Pedro Cambra
|
48e42a252c
|
Overwrite inspire tree config
|
2021-06-05 21:34:10 -04:00 |
Pedro Cambra
|
2926c85b5d
|
Renamed locations ui library to a more sensible name
|
2021-06-05 21:34:10 -04:00 |
Michael Stenta
|
26e1d2459c
|
Only load location assets in buildTree().
|
2021-06-05 21:34:09 -04:00 |
Michael Stenta
|
4ed3684202
|
Add a Locations link to the main farmOS menu.
|
2021-06-05 21:34:09 -04:00 |
Michael Stenta
|
a940116213
|
Move /asset-locations to /locations.
|
2021-06-05 21:34:09 -04:00 |
Michael Stenta
|
205984280e
|
Add docblock comments to buildTree() method so code sniffer tests pass.
|
2021-06-05 21:34:09 -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
|
3237a750c1
|
Move location hierarchy editor code to farm_ui_location.
|
2021-06-05 21:34:09 -04:00 |
Michael Stenta
|
fd3a511d0a
|
Create a new farmOS UI Location module.
|
2021-06-05 21:34:09 -04:00 |
pcambra
|
771c753518
|
First stub of the asset location hierarchy editor feature.
|
2021-06-05 21:34:09 -04:00 |
Michael Stenta
|
51562201ee
|
Move farm_dashboard to farm_ui_dashboard.
|
2021-06-05 21:34:09 -04:00 |
Michael Stenta
|
69638f33ec
|
Add a Farm UI Help module.
|
2021-06-05 16:56:15 -04:00 |
Michael Stenta
|
4d59cd69c7
|
Do not archive areas without an area type during migration.
|
2021-06-05 14:53:17 -04:00 |
Michael Stenta
|
5c6856fe0c
|
Add "Migrated from farmOS 1.x on [date]" revision log messages to migrated records.
|
2021-06-05 14:53:17 -04:00 |
pcambra
|
0f87c085ea
|
Issue #3216766: Revisions are not supported on JSON API
|
2021-06-04 22:45:01 -04:00 |
Michael Stenta
|
e000ef821b
|
Include asset name in asset/%/children and asset/%/assets page titles.
|
2021-06-04 22:45:01 -04:00 |
Michael Stenta
|
00720477f2
|
Include asset name in asset/%/logs page title.
|
2021-06-04 22:18:20 -04:00 |
Michael Stenta
|
85e7815090
|
Enforce the integrity of entity references to data_stream and quantity entities.
|
2021-06-04 22:04:38 -04:00 |
paul121
|
8fb00a69f3
|
Ensure the table is joined.
|
2021-06-04 21:41:09 -04:00 |
paul121
|
25abf02a75
|
Simplify the where expression to not include the asset ID.
|
2021-06-04 21:41:09 -04:00 |
paul121
|
f2b3ffc07f
|
Include asset references via the log.location field in access check.
|
2021-06-04 21:41:09 -04:00 |
Paul Weidner
|
44fbca2491
|
Use the asset_or_location argument plugin for the page_asset display.
|
2021-06-04 21:41:09 -04:00 |
Paul Weidner
|
2f6f945efc
|
Add the asset_or_location as an available argument for the log_field_data views table.
|
2021-06-04 21:41:08 -04:00 |
Paul Weidner
|
6a14fe5809
|
Implement an asset_or_location views argument plugin.
|
2021-06-04 21:36:11 -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
|
c41d943760
|
Only show "Children" tab if the asset has children.
|
2021-06-04 21:17:41 -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
|
f88b58e0d0
|
Only show "Members" tab on group assets.
|
2021-06-04 21:17:01 -04:00 |
Michael Stenta
|
ef2481d544
|
Add a "Members" tab to asset pages that uses the Views contextual filter to show assets in the group.
|
2021-06-04 21:17:01 -04:00 |
Michael Stenta
|
390d69fe3e
|
Provide a Views argument handler for filtering assets by group.
|
2021-06-04 21:17:01 -04:00 |
Michael Stenta
|
bde8a08c85
|
Only show "Assets" tab on Location assets.
|
2021-06-04 21:15:25 -04:00 |
Michael Stenta
|
45cfc85608
|
Add an "Assets" tab to asset pages that uses the Views contextual filter to show assets in the location.
|
2021-06-04 21:15:25 -04:00 |
Michael Stenta
|
2ac1a0d41e
|
Provide a Views argument handler for filtering assets by location.
|
2021-06-04 21:15:25 -04:00 |
Michael Stenta
|
fda3f325ac
|
Add an isLocation() method to the asset.location service.
|
2021-06-04 21:15:25 -04:00 |
Michael Stenta
|
bab926b199
|
Reformat farm_location_views_data_alter() to make it easier to extend.
|
2021-06-04 21:13:30 -04:00 |
Michael Stenta
|
2849b5f9f4
|
Automated tests for GroupAssetLocation::getAssetsByLocation().
|
2021-06-04 21:12:37 -04:00 |
Michael Stenta
|
90fe4498a0
|
Add getAssetsByLocation() method to GroupAssetLocation.
|
2021-06-04 21:12:37 -04:00 |
Michael Stenta
|
ce152ddd31
|
Do not filter out archived assets - this should be the responsibility of downstream code.
|
2021-06-04 21:12:37 -04:00 |
Michael Stenta
|
f6aadf4cd7
|
Automated tests for getAssetsByLocation() method.
|
2021-06-04 21:12:37 -04:00 |
Michael Stenta
|
cc9e0a8a6c
|
Add a getAssetsByLocation() method to the asset.location service.
|
2021-06-04 21:12:37 -04:00 |
Michael Stenta
|
bd9f63bed7
|
Automated tests for getGroupMembers() method.
|
2021-06-04 21:10:41 -04:00 |
Michael Stenta
|
f68ec88102
|
Add a getGroupMembers() method to the group.membership service.
|
2021-06-04 16:07:40 -04:00 |
Michael Stenta
|
9f841e0183
|
Fix farm_ui_views RouteSubscriber docblock.
|
2021-06-04 16:07:40 -04:00 |
Michael Stenta
|
a860653c76
|
Fix AssetLocation @param $asset docblocks.
|
2021-06-04 14:49:03 -04:00 |
Paul Weidner
|
eae26e5e7f
|
Issue #3216789: Remove the local task plugin definition for farm entity collection links.
|
2021-06-01 20:21:16 -04:00 |
Michael Stenta
|
d766578731
|
Sort the "Group" field before the "Location" field.
|
2021-05-27 14:59:33 -04:00 |
Michael Stenta
|
f9f3305260
|
Allow sorting a field before another field (default is after).
|
2021-05-27 14:59:33 -04:00 |
Michael Stenta
|
9adf6ea30e
|
Set $preserve_keys argument to TRUE in both array_slice() calls.
|
2021-05-27 14:59:33 -04:00 |
Michael Stenta
|
596b8c8959
|
Split Views field sorting logic out to a helper function.
|
2021-05-27 14:59:33 -04:00 |
Michael Stenta
|
bc60a2b76b
|
Add the computed "Group" field to asset Views.
|
2021-05-27 14:59:33 -04:00 |
Michael Stenta
|
d7023002c4
|
Reformat farm_group_views_pre_view() to accommodate more logic.
|
2021-05-27 14:59:33 -04:00 |
Michael Stenta
|
58ced4cdb3
|
Expose the computed "group" asset field to Views.
|
2021-05-27 14:59:33 -04:00 |
Michael Stenta
|
0eff167220
|
Override the "collection" link path for assets, logs, and plans to use the Views provided by farm_ui_views.
|
2021-05-27 13:01:10 -04:00 |
Michael Stenta
|
b27419ea68
|
Add EXIF Orientation module.
|
2021-05-26 12:33:26 -04:00 |
Michael Stenta
|
360e133164
|
Add Birth log type and migration.
|
2021-05-26 12:19:05 -04:00 |
paul121
|
76d6370fb3
|
Only return access result allowed or access result neutral.
|
2021-05-21 12:33:04 -07:00 |
paul121
|
a2cb3b26ab
|
Add the log_list:bundle cache tag to the access result.
|
2021-05-21 10:56:25 -07:00 |
paul121
|
838cd33c15
|
Use entity aggregate query to get log counts.
|
2021-05-21 10:56:21 -07:00 |
paul121
|
08fba9b13e
|
Remove unnecessary service argument.
|
2021-05-21 09:20:03 -07:00 |
Michael Stenta
|
5df960aab6
|
Fix Notice: Undefined index: region in farm_ui_views_add_bundle_handlers().
|
2021-05-20 18:40:13 -04:00 |
Michael Stenta
|
03deaec1a1
|
Adapt hook_views_pre_view() and hook_views_pre_render() logic to work with page_asset display.
|
2021-05-20 18:39:35 -04:00 |
Michael Stenta
|
3623072fa9
|
Only show tabs for log types that have query results.
|
2021-05-20 18:39:35 -04:00 |
Michael Stenta
|
6856438e71
|
Add tabs for each log type.
|
2021-05-20 18:39:35 -04:00 |
Michael Stenta
|
975ac415d5
|
Add a Logs tab to asset pages that shows all logs.
|
2021-05-20 17:47:36 -04:00 |
Michael Stenta
|
8f5b1ec82d
|
Add an "Asset reference (page)" display to farm_log View for logs that reference an asset.
|
2021-05-20 17:47:36 -04:00 |
Michael Stenta
|
16a64f9b4e
|
Add @see FarmQuantityViewsMenuLink to FarmViewsMenuLink.
|
2021-05-20 17:47:36 -04:00 |
Michael Stenta
|
2309a0296d
|
Set weight of "Children" tab to 50.
|
2021-05-20 17:47:36 -04:00 |
Michael Stenta
|
dcedf0c083
|
Add enforced dependency on farm_plant to all of its installed config.
|
2021-05-20 17:47:36 -04:00 |
paul121
|
05cbfdc34f
|
Don't add fields or filters for "hidden" bundle fields.
|
2021-05-20 17:31:59 -04:00 |
paul121
|
9ce8e65617
|
Reverse the bundle fields array to preserve the original field order.
|
2021-05-20 17:31:59 -04:00 |
paul121
|
38100c1f8b
|
Add bundle-specific views fields in between other columns.
|
2021-05-20 17:31:59 -04:00 |
paul121
|
292d46878a
|
Create reverse relationships for ER bundle fields after they are installed.
|
2021-05-20 17:31:59 -04:00 |
paul121
|
2c89b25a69
|
Fix file field handler.
|
2021-05-08 14:26:41 -07:00 |
paul121
|
af805d4502
|
Extend from QuantityViewsData for quantity entities.
|
2021-04-21 14:26:25 -04:00 |
Michael Stenta
|
0ce20b9916
|
Add unit_quantity_value field to the quantity__unit_quantity views data table.
|
2021-04-21 14:26:25 -04:00 |
paul121
|
3116777ca4
|
Add unit_price_value field to the quantity__unit_price views data table.
|
2021-04-21 14:26:25 -04:00 |
paul121
|
e4034a696a
|
Render timestamp fields in the html_date format.
|
2021-04-21 14:26:25 -04:00 |
paul121
|
5bf9a605fc
|
Exposed string fields use the contains operator.
|
2021-04-21 14:26:25 -04:00 |
paul121
|
719668844d
|
Use a multi-select field for exposed taxonomy_term reference filters.
|
2021-04-21 14:26:25 -04:00 |
paul121
|
3c5dc06539
|
Do not render a link to referenced taxonomy terms.
|
2021-04-21 14:26:25 -04:00 |
paul121
|
78a50470e8
|
Do not set an ID when adding views handlers.
|
2021-04-21 14:26:25 -04:00 |
paul121
|
bf3f97d984
|
Add log_category exposed filter to farm_log views.
|
2021-04-21 14:26:25 -04:00 |
paul121
|
7358e4d64c
|
Extend entity views data to configure the correct filter for all taxonomy_term reference fields.
|
2021-04-21 14:26:23 -04:00 |
paul121
|
eed6503455
|
Add bundle plugin for movement log type used in tests.
|
2021-04-21 08:21:02 -04:00 |