Closed (fixed)
Project:
Views Field View
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Mar 2024 at 05:11 UTC
Updated:
2 Feb 2025 at 07:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
project update bot commentedThis 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 the
info.ymlfile 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
These packages were used to generate the fixes:
Comment #4
xem8vfdh commentedComment #5
emptyvoid commentedUpgrade Status Report
Comment #6
emptyvoid commentedDrupal 11 patch
Comment #11
patelh84 commented#MR13 works fine for both D10 & D11 versions. Requesting for the issue RTBC.
Comment #12
ajitdalal commentedI tested MR https://git.drupalcode.org/project/views_field_view/-/merge_requests/13.
No issue found in upgraded status and installation. Attached artifacts
Comment #13
bisonbleu commentedTried all 3 MR patches. Unfortunately only the partial project-update-bot patch from MR11 applies correctly when it is added to composer.json. So something is not right in MR12 and MR13.
The error message when trying to apply MR13:
Comment #17
bisonbleu commentedThe 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
but the patches expect this:
Comment #18
bisonbleu commentedRESOLVED
As mentioned above, the reason why
composer installis 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-sourceflag, 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 (
--prefer-dist) and those that should use--prefer-sourceinstead; see the preferred-install section where I've added views_field_view and where multiple projects can be listed:With the above,
composer installworks as usual.In the end, I'm using MR !15 because it preserves BC (backward compatibility), MR !13 does not, i.e.
Comment #20
heddnUnit tests are now passing green on MR 15.
Comment #21
heddnI 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?
Comment #22
heddnMy changes to the tests are so minimal, I'm going to say this is good to go. LGTM
Comment #26
nicxvan commentedRTBC +1 it's pretty straightforward
Comment #27
jibranSaving credits
Comment #29
jibranCommitted and pushed to 1.x. Thank you all.
Comment #30
jibran