- Issue created by @project update bot
This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module โ these changes make this module compatible with Drupal 11! ๐
Therefore these changes update theinfo.yml
file for Drupal 11 compatibility.Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot โ to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-127659These packages were used to generate the fixes:
- drupal/upgrade_status: 4.1.0
- mglaman/phpstan-drupal: 1.2.9
- palantirnet/drupal-rector: 0.20.1
- ๐บ๐ธUnited States emptyvoid
Upgrade Status Report
================================================================================ Views Field View, 8.x-1.0-beta5 Scanned on Mon, 09/16/2024 - 15:41 FILE: modules/contrib/views_field_view/tests/modules/views_field_view_test_config/test _views/views.view.views_field_view_test_parent_normal.yml STATUS LINE MESSAGE -------------------------------------------------------------------------------- Check manually 281 Support from all Views contextual filter settings for the default_argument_skip_url setting is removed from drupal:11.0.0. No replacement is provided. See https://www.drupal.org/node/3382316. -------------------------------------------------------------------------------- FILE: modules/contrib/views_field_view/views_field_view.info.yml STATUS LINE MESSAGE -------------------------------------------------------------------------------- Check manually 4 Value of core_version_requirement: ^9 || ^10 is not compatible with the next major version of Drupal core. See https://drupal.org/node/3070687. --------------------------------------------------------------------------------
- First commit to issue fork.
- First commit to issue fork.
- ๐ฎ๐ณIndia patelh84
#MR13 works fine for both D10 & D11 versions. Requesting for the issue RTBC.
- ๐ฎ๐ณIndia ajitdalal
I tested MR https://git.drupalcode.org/project/views_field_view/-/merge_requests/13.
No issue found in upgraded status and installation. Attached artifacts - ๐จ๐ฆCanada bisonbleu
Tried all 3 MR patches. Unfortunately only the project-update-bot patch from MR11 applies correctly when it is added in composer.json. So something is not right in MR12 and MR13.
- ๐จ๐ฆCanada bisonbleu
The issue I'm having with patches failing is related to additional lines added by Drupal.org's packaging script in views_field_view_test_config.info.yml. I have this
name: 'Views field view test Config' type: module description: 'Provides default views for tests.' package: Testing # version: VERSION core_version_requirement: ^9 || ^10 dependencies: - drupal:views # Information added by Drupal.org packaging script on 2023-02-02 version: '8.x-1.0-beta5' project: 'views_field_view' datestamp: 1675318986
but the patches expect this:
name: 'Views field view test Config' type: module description: 'Provides default views for tests.' package: Testing version: VERSION core_version_requirement: ^9 || ^10 dependencies: - drupal:views
- ๐จ๐ฆCanada bisonbleu
RESOLVED
As mentioned above, the reason why
composer install
is complaining ยซCould not apply patch โฆ13.patchยป is because the dist version of the module contains those additional lines added by Drupal.org's packaging script. The way to fix this is to use the--prefer-source
flag, this way you get the raw Git repository state, without the packaging modifications.SOLUTION
And there's a nice way, in composer.json, to differentiate between packages that can use the default fetch method (dist) and those that should use
--prefer-source
instead; see the new preferred-install section where I've added views_field_view and where multiple projects can be listed:"config": { "allow-plugins": { "composer/installers": true, "drupal/core-composer-scaffold": true, "drupal/core-project-message": true, "dealerdirect/phpcodesniffer-composer-installer": true, "cweagans/composer-patches": true, "php-http/discovery": false, "oomphinc/composer-installers-extender": true, "drupal/core-vendor-hardening": true, "phpstan/extension-installer": true }, "sort-packages": true, "preferred-install": { "drupal/views_field_view": "source", "*": "dist" } },
With the above,
composer install
works as usual.In the end, I'm using MR !15 because it preserves BC, MR !13 does not, i.e.
- MR !15: core_version_requirement: ^9 || ^10 || ^11
- MR !13: core_version_requirement: ^10 || ^11
- First commit to issue fork.
- heddn Nicaragua
I would mark this as RTBC except I made some minor changes to the tests to get them to green. Anyone else able to make that call?
- heddn Nicaragua
My changes to the tests are so minimal, I'm going to say this is good to go. LGTM
-
jibran โ
committed 58f9e82c on 8.x-1.x authored by
bisonbleu โ
Issue #3435465 by project update bot, heddn, bisonbleu, emptyvoid,...
-
jibran โ
committed 58f9e82c on 8.x-1.x authored by
bisonbleu โ
- ๐จ๐ฆCanada jibran Toronto, Canada
Committed and pushed to 1.x. Thank you all.
- Status changed to Fixed
about 1 month ago 7:25am 19 January 2025 Automatically closed - issue fixed for 2 weeks with no activity.