Commit Graph

2164 Commits

Author SHA1 Message Date
Paul Weidner b97184d165 Use ContentEntityInterface as type when normalizing to geometry_* formats 2023-11-27 11:44:53 -05:00
Paul Weidner 94c9fe9ed0 Use GeometryWrapper as type when normalizing to geometry_kml format 2023-11-27 11:44:53 -05:00
Michael Stenta 8f2efe2724 Add default view_builder handler for plan type, for consistency.
Both asset type and plan type use a "canonical" link.
2023-11-27 11:44:31 -05:00
Paul Weidner 808a6abb58 Add default view_builder handler for asset type #752
This fixes a potential bug where the canonical route is not created if a view_builder is not provided.
2023-11-27 10:28:55 -05:00
Michael Stenta 97cf31b5bd Remove unnecessary/incorrect consumer owner_id/user_id lines. 2023-11-06 11:51:21 -05:00
Paul Weidner 51d943478d Build url from route instead of loading log entity 2023-11-03 14:13:28 -04:00
Paul Weidner ee6a7fb57c Use a link element to render link to birth log
The timestamp formatter changed and no longer uses #markup but
#text in the render array for the formatted timestamp. This causes
the following warning message:

Warning: Undefined array key "#markup" in farm_birth_asset_view_alter() (line 67 of profiles/farm/modules/log/birth/farm_birth.module).
2023-11-03 14:13:28 -04:00
Paul Weidner bc85b3518f Add options to kernel test 2023-11-01 14:41:11 -04:00
Paul Weidner 24b28fbf94 Update login test to use password grant 2023-11-01 14:41:11 -04:00
Paul Weidner 0673bebbda Set default scopes for fieldkit consumer 2023-11-01 14:41:11 -04:00
Paul Weidner 33f2805d3e Grant all users access to grant simple_oauth codes 2023-11-01 14:41:11 -04:00
Paul Weidner 93a4330a23 Use farm_api_default_consumer in test 2023-11-01 14:41:11 -04:00
Paul Weidner 073450cd2f Enable the password grant for static role scopes 2023-11-01 14:41:11 -04:00
Paul Weidner 49040c5882 Update default farm client to use authorization_code refresh_token and password grants 2023-11-01 14:21:32 -04:00
Paul Weidner c64247b966 Issue #3256745 by paul121: Move default farm OAuth2 client to a separate module 2023-11-01 14:21:32 -04:00
Paul Weidner 4226394e74 Update fieldkit consumer to only use refresh_token and password grants 2023-11-01 14:21:32 -04:00
Paul Weidner d0e305d0c1 Add simple_oauth_password_grant dependency for farm_fieldkit 2023-11-01 14:21:32 -04:00
Paul Weidner 66da1b7330 Add static scopes for farm_role_roles 2023-11-01 14:21:31 -04:00
Paul Weidner 7b8beddd9e Use simple oauth static scope provider by default 2023-11-01 14:21:31 -04:00
Paul Weidner 4b54e4ddac Remove deprecated global access_token_expiration config 2023-11-01 14:21:31 -04:00
Paul Weidner e4b5695caf Remove consumer bundle fields 2023-11-01 14:21:31 -04:00
Paul Weidner 81c70fd46c Remove FarmScopeRepository service override 2023-11-01 14:21:31 -04:00
Sidharth Soman 158611e4c5 Issue #3197581 by sidharth_soman: Cache needs to be cleared after setting MapBox API key for the first time 2023-11-01 09:21:27 -04:00
Michael Stenta 3398eb0170 Implement NormalizerInterface::getSupportedTypes().
See https://symfony.com/doc/current/serializer/custom_normalizer.html#improving-performance-of-normalizers-denormalizers
2023-10-30 12:07:29 -04:00
Michael Stenta 81c3cd2ec0 Fix: Deprecated NULL placeholder value for key (%birth_label)
...in: "Birth log saved: <a href=":birth_url">%birth_label</a>". This will throw a PHP error in drupal:11.0.0. See https://www.drupal.org/node/3318826
    2x in BirthTest::testBirthLogChildrenSync from Drupal\Tests\farm_birth\Kernel
    1x in BirthTest::testUniqueBirthLogConstraint from Drupal\Tests\farm_birth\Kernel
2023-10-30 12:07:29 -04:00
Michael Stenta 5cc870c316 Fix: $modules property must be declared protected. 2023-10-30 12:07:29 -04:00
Michael Stenta 1b72dccb80 Fix: Call to deprecated function system_time_zones(). 2023-10-30 12:07:29 -04:00
Michael Stenta 1693b5b0d5 Fix: Return type mixed of method Drupal\farm_kml\Encoder\Kml::encode() is not covariant with return type string of method Symfony\Component\Serializer\Encoder\EncoderInterface::encode(). 2023-10-30 12:07:29 -04:00
Michael Stenta 6ad27c13e0 Fix: Call to deprecated function watchdog_exception(). 2023-10-30 12:07:29 -04:00
Michael Stenta 50261de4b8 Fix: Call to an undefined static method Symfony\Component\HttpFoundation\Response::create(). 2023-10-30 12:07:29 -04:00
Michael Stenta c0f02dfc0e Update all core_version_requirement to ^10. 2023-10-30 12:07:29 -04:00
Michael Stenta bae0a0988f Issue #3357679: Allow material quantities to reference multiple material types 2023-10-27 09:25:45 -04:00
Paul Weidner 9b9871c3ba Issue #3394069: Update quantities to use bundle permission granularity 2023-10-27 09:25:45 -04:00
Michael Stenta abe4aff642 Remove deprecated farm_log_asset_names_summary() function. 2023-10-27 09:25:45 -04:00
Michael Stenta 8ff9000b4c Remove deprecated QuickFormInterface::getId() method. 2023-10-27 09:25:45 -04:00
Michael Stenta c9ed7d316d Move asset_lookup and term_lookup plugins to farm_migrate. 2023-10-27 09:25:45 -04:00
Michael Stenta 2336e172a3 Issue #3382616: Remove v1 migrations from farmOS 3.x 2023-10-27 09:25:44 -04:00
Michael Stenta ac64b7ce27 Check config before deleting it. 2023-10-26 09:43:52 -04:00
Michael Stenta 8f2c465de9 Replace Group action with Group quick form action. 2023-10-25 15:38:13 -04:00
Michael Stenta a5138314b1 Replace Move action with Movement quick form action. 2023-10-25 15:38:13 -04:00
wotnak e0ca16cfd2 Add post update hook to install the new quick_form entity type on existing farmOS installations #738 2023-10-23 12:21:14 -04:00
Paul Weidner e41a34858c Fix planting quick form creating empty quantities #737 2023-10-23 12:19:17 -04:00
Michael Stenta febdf94083 Rebuild routes when config-based CSV importers are saved/deleted. 2023-10-09 16:09:55 -04:00
Paul Weidner e5c3bda5bf Standardize index building across all index controllers 2023-10-09 15:28:08 -04:00
Paul Weidner b815dacb4f Add cacheability to import index pages 2023-10-09 15:27:27 -04:00
Michael Stenta 0067c85215 Rebuild routes when quick form config entities are saved/deleted. 2023-10-09 15:15:38 -04:00
Michael Stenta 96b6002f5d Quick form actions cause RouteNotFoundException: Route farm.quick.[id] does not exist. #727
Revert "Refactor quick form route building to a single route"

This reverts commit 3505e80124.
2023-10-09 15:15:37 -04:00
Michael Stenta 6ed8f3ccec Validate ID tag types. Fixes #725 2023-10-09 14:53:20 -04:00
Michael Stenta 389786ce60 Add basic kernel tests for ID tag field. 2023-10-09 14:35:06 -04:00
Michael Stenta 1e23d0b035 Fix asset_lookup and term_lookup exception messages #731 2023-10-09 14:13:21 -04:00