Michael Stenta
298d5c8bc4
Provide a downloadable CSV template with column headers.
2023-10-06 13:40:18 -04:00
Michael Stenta
fcdbf70baf
Provide descriptions of CSV column headers in third-party settings.
2023-10-06 13:40:18 -04:00
Michael Stenta
9b1ddbdb08
Add functional tests of CSV importer index, titles, and access control.
2023-10-06 13:40:18 -04:00
Michael Stenta
31f39d83bf
Only show importers in the farm_import_csv group.
2023-10-06 13:40:18 -04:00
Michael Stenta
5d2bd98f41
Create menu links for each CSV importer.
2023-10-06 13:40:18 -04:00
Michael Stenta
fd019fc90b
Add an index of CSV importers at /import/csv.
2023-10-06 13:40:18 -04:00
Michael Stenta
4c18b7ebea
Provide a route for CSV importers at /import/csv/{migration_id}.
2023-10-06 13:40:18 -04:00
Michael Stenta
cbbd7dae2e
Check access based on third party settings in the migration.
2023-10-06 13:40:18 -04:00
Michael Stenta
14934d8d5a
Add a getTitle() method to CsvImportForm for use in routes.
2023-10-06 13:40:18 -04:00
Michael Stenta
9db2409084
Provide a simplified CSV import form based on MigrateSourceUiForm.
2023-10-06 13:40:16 -04:00
Michael Stenta
5bbc994be0
Provide a farm_import_csv migration group for common configuration.
2023-10-06 13:40:03 -04:00
Michael Stenta
d0d27ec42e
Add kernel test coverage for CSV importers provided as migrate_plus.migrate.* configuration entities.
2023-10-06 13:40:03 -04:00
Michael Stenta
3915160a6d
Add support for importing log quantities.
2023-10-06 13:39:23 -04:00
Michael Stenta
34b5d0eb64
Add basic CSV importers for logs (with kernel tests).
2023-09-29 22:32:07 -04:00
Michael Stenta
1610de903e
Add basic CSV importers for assets (with kernel tests).
2023-09-29 22:32:07 -04:00
Michael Stenta
1f242eeaee
Add support for assigning taxonomy term parent by name.
2023-09-29 22:32:07 -04:00
Michael Stenta
0397609619
Add a term_lookup process plugin that extends entity_lookup and fails when a term is not found.
2023-09-29 22:32:07 -04:00
Michael Stenta
e64f2901ce
Issue #2931181 : Add CSV importers for taxonomy terms (with kernel tests).
2023-09-29 22:32:07 -04:00
Michael Stenta
3cae2114f8
Provide a base class for CSV import kernel tests.
2023-09-29 22:32:07 -04:00
Michael Stenta
849f823da0
Provide a base class for farmOS CSV importer migration plugin derivatives.
2023-09-29 22:32:07 -04:00
Michael Stenta
b8c0b47d0c
Initial farmOS Import CSV module.
2023-09-29 22:32:07 -04:00
Paul Weidner
4ee753a712
Fix hideable boolean settings form #718
2023-09-06 11:05:27 -07:00
Paul Weidner
399c01a177
Use Gin border radius for the map #710
2023-09-04 09:30:46 -04:00
Paul Weidner
c75240e7d6
Exclude block.block.gin_content from farm_update #715
2023-09-04 09:22:33 -04:00
Michael Stenta
81d6c61b49
Fix submit button text in "Add Log" action form.
2023-08-21 08:23:44 -04:00
Michael Stenta
7a0811adf5
Use entityLabelsSummary() in birth log name.
2023-08-09 15:53:28 -04:00
Michael Stenta
aefe1e937b
Wrap all entity labels with Markup::create() in translated log names #698
...
This prevents entity labels with special characters like
apostrophes from being escaped when they are saved to
log names.
2023-08-09 15:53:28 -04:00
Michael Stenta
bb11c8364c
Update dispatch() argument order for Symfony 5 #704
...
See https://www.drupal.org/node/3154407
2023-08-03 13:05:35 -04:00
Paul Weidner
5529c4e8f7
Issue #3312126 : Update gin CSS variables for v4
2023-07-18 12:47:17 -04:00
Paul Weidner
8720b2a5a0
Improve asset bundle logic in ID tag widget #699
...
This fixes a bug where assets cannot be used in an inline entity form because
the ID tag widget assumes it is being used in the context of an entity
form_display. Inline entity forms and likely other entity forms may not use
the form_display key in form storage so using the entity from the
FieldItemList is more robust.
2023-07-11 08:17:08 -04:00
Paul Weidner
fa1c726f6e
Use access content permission in farm_ui_views test #701
...
The administer taxonomy permission should not be used in tests because
we do not grant the permission to standard farmOS roles. Taxonomy terms
can be viewed with the access content permission.
2023-07-11 08:14:52 -04:00
Paul Weidner
7f8097f8f2
Correct namespace for MigrateToolsCommands #700
...
This changed in the 6.0.2 release of migrate_tools: https://www.drupal.org/node/3372643
2023-07-11 07:53:15 -04:00
Paul Weidner
5ca5f1a3ab
Fix phpcs error that use statements should be sorted alphabetically
2023-06-13 09:53:49 -07:00
Michael Stenta
64ab815114
Leaving empty the Parent field in the Assign Parent For This Asset form leads to unexpected error #683
2023-06-09 08:21:54 -04:00
wotnak
9587872ea9
Replace static \Drupal::service() call with dependency injection #684
2023-05-30 15:08:28 -04:00
Michael Stenta
9d51cbd3dc
Fix undeclared dependency on farm_group in birth quick form #682
2023-05-23 11:11:47 -04:00
Paul Weidner
2d77e04230
Remove classy from term tasks test #680
2023-05-18 16:42:40 -04:00
Michael Stenta
8c0de9c349
Movement quick form (ported from farmOS 1.x) #677
2023-05-18 16:36:48 -04:00
Michael Stenta
47ac9ae5dd
Birth quick form (ported from farmOS 1.x) #656
2023-05-18 16:36:48 -04:00
Michael Stenta
3cd5de573b
Move secondary tasks collapsible theme overrides to farm_ui_theme.
2023-05-18 13:08:40 -04:00
Paul Weidner
e971c13910
Collapse secondary tabs on mobile
2023-05-17 15:40:32 -07:00
Paul Weidner
b6a33b3f02
Use secondary tabs for taxonomy terms #634
2023-05-17 15:40:32 -07:00
Paul Weidner
f946aaa0d6
Move default entity tabs to secondary tabs #634
2023-05-17 15:40:31 -07:00
Paul Weidner
b824890155
Remove field links from asset entity browser view #673
2023-05-16 14:34:14 -04:00
wotnak
6bb1e1789e
Add asset inventory views field #679
2023-05-16 14:30:01 -04:00
Michael Stenta
dab5415b95
Add QuickStringTrait::entityLabelsSummary() method for summarizing entity labels #675
2023-05-11 13:37:48 -04:00
Michael Stenta
6d1cdc7f2e
Fix farm_log_asset_names_summary() $cutoff parameter #674
2023-05-11 12:53:09 -04:00
Michael Stenta
97a36d2aa4
Refresh map edit layer when WKT is pasted into data input field #670
2023-05-10 15:55:41 -04:00
Michael Stenta
2b3bb21683
Fix bulk move/group action log names when unsetting location/group #669
2023-05-08 14:46:26 -04:00
Michael Stenta
a13a0de10a
The farm_ui_theme module depends on layout_discovery.
...
This went unnoticed before because farm_ui_dashboard depends on
layout_discovery, but if farm_ui_dashboard is not installed visiting
any asset/log page causes a fatal error because the layout
discovery service is not found.
2023-05-02 11:27:02 -04:00
Michael Stenta
360ef97caf
Remove module form submit button state logic.
...
This stopped working due to https://www.drupal.org/project/drupal/issues/994360
2023-04-03 16:10:21 -04:00
Michael Stenta
8eaef1231b
Abstract inline container structure into new QuickFormElementsTrait::buildInlineContainer() trait+method.
2023-04-01 14:00:38 -04:00
Michael Stenta
aa35c2c32d
Reformat Planting quick form log field info arrays. No functional change.
...
This will make it easier to use a new buildInlineContainer()
method for quantity fields provided by the next commit.
2023-04-01 14:00:38 -04:00
Michael Stenta
5ada077408
Move inline container style definition to farm_ui_theme.
2023-04-01 14:00:38 -04:00
Michael Stenta
7b3639e941
Use inline style for Planting quick form quantity fields.
2023-04-01 14:00:38 -04:00
Michael Stenta
78abcff89d
Add a common CSS file for quick form styles, including an "inline" class for inline fields.
2023-04-01 14:00:38 -04:00
Paul Weidner
6b269dbe9a
Standardize all taxonomy bundle labels to be singular #661
2023-04-01 13:58:45 -04:00
Michael Stenta
b74d3d1ace
Add email field support to field factory service.
2023-03-30 14:54:25 -04:00
Michael Stenta
5f9b32beef
Add decimal field support to field factory service.
2023-03-30 14:54:25 -04:00
Michael Stenta
2c0aef36ce
Add integer field support to field factory service.
2023-03-30 14:54:25 -04:00
Michael Stenta
46adaa3ab7
Allow max_length to be overridden on string fields.
2023-03-30 14:54:25 -04:00
Michael Stenta
efcbc6087b
Remove unnecessary default settings for string/string_long fields.
2023-03-30 14:54:25 -04:00
Paul Weidner
f68887cc45
Allow map to be resized vertically #663
2023-03-30 09:39:45 -04:00
Paul Weidner
4c15010bd5
Simplify all map resize logic to use ResizeObserver #662
2023-03-30 09:36:48 -04:00
Michael Stenta
967982b2f0
Respect user timezone in midnight default datetime values #665
2023-03-29 11:07:41 -04:00
Michael Stenta
4f6ff71391
Include Fraction bundle fields in default Views #664
2023-03-28 15:02:39 -04:00
Michael Stenta
f41b526278
Fix farm_entity_test and farm_entity_contrib_test module info.
2023-03-28 14:59:14 -04:00
Michael Stenta
4d31e7033e
Do not add birth log mother to animal assets that already have parents #655
2023-03-16 14:58:57 -04:00
Michael Stenta
b807c5602f
Fix quick form toolbar menu links #657
2023-03-16 14:57:29 -04:00
Michael Stenta
e7e2b15e4a
Add "Speed" to the list of quantity measures #658
2023-03-16 14:52:49 -04:00
Michael Stenta
f9a96bb781
Fix variable hints in BirthTest.php.
2023-03-11 11:13:59 -05:00
Michael Stenta
7a9f8f4bbe
Create a QuickFormTestBase class that other quick form tests can extend from #650
2023-03-11 11:13:59 -05:00
Symbioquine
07ad8ed495
Show map popup for the smallest feature at the clicked point #652
2023-03-09 14:30:50 -05:00
Paul Weidner
36f35f0b14
Attempt to update the map size until it is rendered. #576
...
This fixes a bug where the map is not rendered in modal and
off-canvas dialogs until the map size is updated.
2023-03-08 08:38:00 -08:00
Paul Weidner
dff6ebbb87
Add breadcrumb on canonical user page to people page #644
2023-03-08 07:39:53 -05:00
Paul Weidner
ff4c99867c
Implement FarmBreadcrumbBuilder::applies() to only affect desired routes #644
2023-03-08 07:39:49 -05:00
wotnak
b304bff4d2
Fix map ui being unreadable on dark mode #642
2023-02-20 21:50:54 +01:00
Michael Stenta
18599f80c3
Convert geometry values to WKT in GeofieldWidget #640
2023-02-10 11:36:42 -05:00
Michael Stenta
9a422eb516
Add an automated test for the farmOS Geofield widget.
...
This is copied and minimally modified from the upstream
Geofield module's widget tests.
2023-02-10 11:23:11 -05:00
Michael Stenta
f73aa956fe
Fix config schema for field.widget.settings.farm_map_geofield.
2023-02-10 11:19:34 -05:00
Michael Stenta
a98fd5742a
Issue #3335267 by m.stenta, farmer-ed, penyaskito: 405 Method Not Allowed when trying to patch entities as a user with non-default language
2023-02-08 16:09:51 -05:00
Michael Stenta
03b81c58f6
Add farm_l10n API kernel test to demonstrate Issue #3335267 : 405 Method Not Allowed when trying to patch entities as a user with non-default language
2023-02-08 16:09:51 -05:00
Michael Stenta
b2abb076a2
Test deleting assets and logs.
2023-02-08 13:02:45 -05:00
Michael Stenta
c42c0d60e3
Test updating assets and logs.
2023-02-08 13:02:45 -05:00
Michael Stenta
ad345694c2
Test retrieving assets and logs.
2023-02-08 13:02:45 -05:00
Michael Stenta
492dcb9391
Test creating a log that references an asset.
2023-02-08 13:02:45 -05:00
Michael Stenta
0614b0e709
Test creating an asset and log.
2023-02-08 13:02:45 -05:00
Michael Stenta
63d1f4b8e0
Initial farm_api kernel tests: check /api meta.farm info.
2023-02-08 13:02:45 -05:00
Michael Stenta
c892a6addf
Remove negative sign in front of zero.
2023-02-08 10:56:26 -05:00
Michael Stenta
baf294d3bd
Add @internal to planting quick form class.
2023-02-07 08:31:16 -05:00
Michael Stenta
1b477885dd
Remove time service from planting quick form #636
2023-02-07 08:31:00 -05:00
Michael Stenta
ac72de72ba
Allow setting time in bulk actions and quick forms via datetime element #635
2023-02-04 17:18:00 -05:00
Eric Larese
7c69c6c901
Change asset action date pickers to use HTML5 calendar widgets #630
2023-02-02 11:29:27 -05:00
Paul Weidner
32842c5e88
Move land and structure type fields higher up for consistency #632
...
Currently the land and structure type field come after status, flags
and owners. This is different than animal and plant assets whose type
field comes immediately after the asset name. Since the land and
structure type are required fields it seems more appropriate to have
them included higher in the form.
2023-02-01 15:18:00 -08:00
Paul Weidner
2165437132
Fix type error when un-assigning asset from group #631
...
Submitting the group asset action form without a group yields the following error:
Message TypeError: array_column(): Argument #1 ($array) must be of type array, null given in array_column()
(line 195 of /var/www/html/web/profiles/farm/modules/asset/group/src/Form/AssetGroupActionForm.php)
One fix is to use the null coalescing operator to return an empty array when the form value is null.
2023-01-31 14:07:11 -08:00
Eric Larese
69f12631e2
Remove un-needed phpstan ignores.
...
See https://github.com/mglaman/phpstan-drupal/issues/474
2023-01-27 14:55:09 -05:00
Michael Stenta
a1e49797ed
The #date_year_range property is not used on fields of #type = date.
2023-01-20 08:39:33 -05:00
Michael Stenta
c61f67866b
Set the Quantity view mode to "Plain text" in farm_log View's "CSV export" display.
2022-12-22 19:05:45 -05:00
Michael Stenta
0b361341e3
Add a plain_text Quantity view mode that strips tags and whitespace.
2022-12-22 19:05:45 -05:00
Michael Stenta
0f8308c06d
Issue #3328419 : Uninstalling farm_ui_views module breaks site
2022-12-20 16:52:16 -05:00
Michael Stenta
fe155f8a16
Prevent circular group membership #562
2022-12-20 12:46:04 -05:00
Michael Stenta
ac54fb4dc2
Make sure log asset != log location in circular location constraint logic #623
2022-12-20 10:45:33 -05:00
Michael Stenta
61fd988044
Prevent circular asset location #568
2022-12-19 16:06:01 -05:00
Michael Stenta
272e698e87
Issue #3310286 : Add $timestamp parameter to asset.inventory service methods
2022-12-15 14:06:30 -05:00
Michael Stenta
7c9ef9a8bd
Issue #3310286 : Add $timestamp parameter to group.membership service methods
2022-12-15 14:06:30 -05:00
Michael Stenta
d154db811c
Issue #3310286 : Add $timestamp parameter to asset.location service methods
2022-12-15 14:03:27 -05:00
Michael Stenta
0b3533e0f0
Only show the first quantity in log Views #619
2022-12-13 09:43:45 -05:00
Paul Weidner
ad946875de
Include GEOS version in status report #614
2022-12-06 10:17:34 -08:00
Paul Weidner
37314b8864
Fix enable/disable buttons on data stream notifications page #613
2022-12-06 11:48:43 -05:00
Paul Weidner
ec5b39af83
Fix TypeError when adding email delivery #616
2022-12-06 10:42:03 -05:00
Michael Stenta
c787d7e256
Remove default_measure configuration from quantity type definitions #612
...
This was originally added so that the Price quantity type could set its
default measure to "value" all the time. This was back when price
quantities were part of farmOS core. It was then moved to the
farm_ledger contrib module, and is being refactored such that it will no
longer need to make use of this default_measure configuration.
2022-12-02 14:02:24 -05:00
Michael Stenta
d5a87aa3e8
Wrap table names in curly braces.
2022-12-02 08:06:50 -05:00
Michael Stenta
7c1aa73a34
Fix migration of lab field to taxonomy terms #611
...
PR #603 changed the "Laboratory" field from a simple text field to a
taxonomy term reference field. But it did not update the v1 migration
logic accordingly.
See https://github.com/farmOS/farmOS/pull/603
2022-11-29 14:56:42 -05:00
Paul Weidner
0effe2167e
Fix managed role form alter for individual role permissions page #610
2022-11-29 11:48:36 -08:00
Paul Weidner
03a60cfc11
Chain the flag specific class after the generic flag class
...
This ensures that the flag specific class will be more specific
than the generic flag class. This pattern isn't necessary for the flag
classes in this file since the generic flag class is defined first, but
this pattern is necessary for other modules to provide styles for flags.
2022-11-29 06:37:30 -05:00
Paul Weidner
87e76a4bfb
Correct CSS classname for priority flag #609
2022-11-29 06:37:29 -05:00
Paul Weidner
351e0b0cc7
Correct hook_farm_update_exclude_config API docs #608
2022-11-28 16:41:13 -08:00
Michael Stenta
70fa979440
Fix update hook for converting lab to taxonomy #606
2022-11-26 08:22:01 -05:00
Michael Stenta
8b49a232e2
Add tissue lab test type #605
2022-11-25 12:03:39 -05:00
Michael Stenta
96cb706cab
Change "Test method" field to a taxonomy term reference.
2022-11-25 12:02:38 -05:00
Michael Stenta
80f75ebcb2
Change "Lab" quantity to "Test" quantity to be more general.
2022-11-25 12:02:38 -05:00
Michael Stenta
21c0fb4163
Use lab quantity as default in lab_test logs.
2022-11-25 12:02:38 -05:00
Michael Stenta
42e446470a
Add a "Lab measurement" quantity type with a "Lab method" string field.
2022-11-25 12:02:38 -05:00
Michael Stenta
347de7aac7
Convert lab field to term reference on lab test logs #603
2022-11-25 12:02:38 -05:00
Michael Stenta
fbd754e867
Add "Date received" and "Date processed" fields to lab test logs #602
2022-11-25 12:02:38 -05:00
Michael Stenta
c100569bf7
Rearrange lab test log field definitions to match their weights.
2022-11-25 12:02:38 -05:00
Michael Stenta
114f6edfbf
All log modules depend on log:log.
2022-11-22 16:20:40 -05:00
Michael Stenta
c0bd88f3da
All asset modules depend on farm:asset.
2022-11-22 16:20:40 -05:00
Michael Stenta
9022ff0f8c
All quantity modules depend on farm:farm_entity.
2022-11-22 16:20:40 -05:00
Michael Stenta
305f430dfc
The log.type.input config depends on farm_quantity_material.
2022-11-22 16:20:40 -05:00
Michael Stenta
728797f0f6
Remove dependency on farm_quantity_standard from farm_inventory.
2022-11-22 16:20:40 -05:00
Michael Stenta
165547d94f
Add asset/log dependencies to farm_quick_test.info.yml.
2022-11-22 16:20:40 -05:00
Michael Stenta
6c5f42b98f
Use default quantity type in QuickQuantityTrait.
...
This removes the dependency on farm_quantity_standard.
2022-11-22 16:20:40 -05:00
Michael Stenta
0825dc7a50
Add a reusable function for determining default log quantity type.
2022-11-22 16:20:40 -05:00
Michael Stenta
961e189e9b
Issue #3323108 : Action links block overrides break farmOS installation from config
2022-11-22 11:50:37 -05:00
Michael Stenta
1e2c6de178
Provide a post-update hook for fixing previously migrated input logs quantity material terms.
2022-11-21 14:00:10 -05:00
Michael Stenta
c7c94b84a4
Mark the CreateQuantity migrate process plugin as @internal.
2022-11-21 13:54:26 -05:00
Michael Stenta
ed7ec99e11
Change CreateQuantity migrate process plugin to handle_multiples to fix issue with migrated material terms.
2022-11-21 13:54:26 -05:00
Paul Weidner
fe324c5eed
Change default client secret to be NULL to avoid issue #3322325 #597
2022-11-20 14:07:16 -05:00
Paul Weidner
9cb0897ca0
Render link to log category taxonomy term in log views
2022-11-18 11:43:11 -05:00
Paul Weidner
3c154b34c8
Render link to referenced taxonomy terms for fields dynamically added to farm entity views
2022-11-18 11:43:10 -05:00
Michael Stenta
7e08295af0
Show "Add log" action links on /asset/[id]/logs/[type] #596
2022-11-18 08:50:53 -05:00
Michael Stenta
29a4ac3e89
Mark FarmUpdate as @internal.
2022-11-16 14:37:55 -05:00
Michael Stenta
fcfee8f72d
Mark ManagedRolePermissions and ManagedRolePermissionsManager as @internal.
2022-11-16 14:37:55 -05:00
Michael Stenta
9f5ee25f44
Mark LogQueryFactory as @internal.
2022-11-16 14:37:55 -05:00
Michael Stenta
8b0b50315b
Make translatable strings consistent between fields and actions #594
2022-11-16 14:26:30 -05:00
Paul Weidner
230c00fbde
Add action for bulk assigning asset parent #588
2022-11-16 11:25:17 -05:00
Paul Weidner
9f85bf9e81
Move asset parent base field to new farm_parent module.
2022-11-16 10:57:37 -05:00
Paul Weidner
34ca8d4d90
Add action to bulk categorize logs #590
2022-11-16 10:44:03 -05:00
Paul Weidner
815678f711
Move log category base field to farm_log_category module
2022-11-16 10:44:02 -05:00