Commit Graph

8093 Commits

Author SHA1 Message Date
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
Michael Stenta 0df3970683 Create multi-stage dockerfile #734 2023-11-06 11:47:49 -05:00
AlMaVizca 9d5f8244ed Build PHP dependencies in one stage. 2023-11-06 09:55:22 -05:00
AlMaVizca e7774c5321 Use a multi-stage Docker image build process and clean up dependencies. 2023-11-06 09:55:09 -05:00
AlMaVizca eb52d4ff2d Move configuration to separate files to improve Dockerfile legibility. 2023-11-06 09:55:09 -05:00
AlMaVizca 949f69269d Use docker-php-ext-enable to enable XDebug extension. 2023-11-06 09:55:09 -05:00
AlMaVizca 3ffeabf862 Change mode of docker-entrypoint.sh to 755 in repo instead of using chown in Dockerfile. 2023-11-06 09:55:09 -05:00
AlMaVizca bd85806f5b No longer necessary to make /usr/share/man directories for postgresql-client. 2023-11-06 09:55:09 -05:00
Petru Paler a15521abe7
Minor typo fix. 2023-11-06 05:57:24 +00:00
Michael Stenta de889ac391 farmOS 3.0.0-beta2 2023-11-03 14:19:41 -04:00
Michael Stenta 89db531dab Fix warning message when rendering link to birth log #746 2023-11-03 14:16:55 -04:00
Michael Stenta a7bf168746 Add CHANGELOG.md line for #746. 2023-11-03 14:14:13 -04: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 6921832d25 Update csv_serialization dependency to ^4.0 #745 2023-11-03 14:12:01 -04:00
Michael Stenta 3d1f5ba984 Rearrange build-farmOS.js ${FARMOS_COMPOSER_VERSION} assignment logic.
There is no functional change. This just rearranges the if/elif/else
logic into a more intuitive order.
2023-11-03 13:13:38 -04:00
Michael Stenta a74ec6ad0c Fix issue with build-farmOS.sh tagged releases.
Previously ${FARMOS_COMPOSER_VERSION} was not being set for
tagged releases, causing `composer require farmos/farmos`
to run without a version constraint. This worked for 2.x
releases because it would default to the latest stable release.

This does not work for 3.0.0-betaX releases, because they are
not considered "stable" by Composer, so it falls back on the
latest stable 2.x release (2.2.2).
2023-11-03 11:18:17 -04:00
Michael Stenta 8d90aec7f2 farmOS 3.0.0-beta1 2023-11-01 15:16:46 -04:00
Michael Stenta 60c96013d3 Update Drupal core to 10.1.6. 2023-11-01 15:15:46 -04:00
Michael Stenta 413c7e24ae Patch jsonapi_schema for Issue #3397275: Use OptionsProviderInterface::getPossibleOptions() for allowed field values (anyOf / oneOf) 2023-11-01 15:04:09 -04:00
Michael Stenta 50f6a8cb8b Require log ^2.2 for Issue #3396419: Make timestamp required 2023-11-01 14:58:47 -04:00
Michael Stenta 28dcba091e Add some separation to 3.x API changes doc between OAuth2 changes and others. 2023-11-01 14:54:53 -04:00
Michael Stenta 69b36c065f Update Simple OAuth module to v6 #743 2023-11-01 14:41:47 -04:00
Michael Stenta 01a31518be Add CHANGELOG.md lines for #743. 2023-11-01 14:41:11 -04:00
Paul Weidner 04566c2010 Update API OAuth changes doc 2023-11-01 14:41:11 -04:00
Paul Weidner 48a55180d9 Update OAuth development docs 2023-11-01 14:41:11 -04:00
Paul Weidner e53ccd5fa8 Update information about scopes and clients 2023-11-01 14:41:11 -04:00
Paul Weidner f1bad9f163 Update information about legacy password credentials grant 2023-11-01 14:41:11 -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
Paul Weidner 8121f8f3d3 Require simple_oauth 6.0.0-beta5 2023-11-01 14:21:31 -04:00
Michael Stenta 60f94cfc89 Fix 2.2.2 version annotation in CHANGELOG.md. 2023-11-01 14:21:12 -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 d6e8718086 Issue #3330490: Update Drupal core to 10.x in farmOS 2023-10-30 12:31:29 -04:00
Michael Stenta 2a7d572ab7 Add CHANGELOG.md line for Drupal 10 upgrade. 2023-10-30 12:30:32 -04:00
Michael Stenta 6a9c872e9b Use phpunit instead of paratest.
PostgreSQL tests fail because Drupal core patch is trying to install pg_trgm
extension in parallel multiple times.

Failed to run installer database tasks: Drupal could not check for the pg_trgm extension: SQLSTATE[23505]: Unique violation: 7 ERROR:  duplicate key value violates unique constraint "pg_extension_name_index"
DETAIL:  Key (extname)=(pg_trgm) already exists.: CREATE EXTENSION IF NOT EXISTS pg_trgm;
2023-10-30 12:07:29 -04:00