Problem/Motivation
Hello project maintainers,
This is an automated issue to help make this module compatible with Drupal 10.
To read more about this effort by the Drupal Association, please read: The project update bot is being refreshed to support Drupal 10 readiness of contributed projects
Patches will periodically be added to this issue that remove Drupal 10 deprecated API uses. To stop further patches from being posted, change the status to anything other than Active, Needs review, Needs work or Reviewed and tested by the community. Alternatively, you can remove the "ProjectUpdateBotD10" tag from the issue to stop the bot from posting updates.
The patches will be posted by the Project Update Bot official user account. This account will not receive any issue credit contributions for itself or any company.
Proposed resolution
You have a few options for how to use this issue:
- Accept automated patches until this issue is closed
If this issue is left open (status of Active, Needs review, Needs work or Reviewed and tested by the community) and the "ProjectUpdateBotD10" tag is left on this issue, new patches will be posted periodically if new deprecation fixes are needed.
As the Drupal Rector project improves and is able to fix more deprecated API uses, the patches posted here will cover more of the deprecated API uses in the module.
Patches and/or merge requests posted by others are ignored by the bot, and general human interactions in the issue do not stop the bot from posting updates, so feel free to use this issue to refine bot patches. The bot will still post new patches then if there is a change in the new generated patch compared to the patch that the bot posted last. Those changes are then up to humans to integrate.
- Leave open but stop new automated patches.
If you want to use this issue as a starting point to remove deprecated API uses but then don't want new automated patches, remove the "ProjectUpdateBotD10" tag from the issue and use it like any other issue (the status does not matter then). If you want to receive automated patches again, add back the "ProjectUpdateBotD10" tag.
- Close it and don't use it
If the maintainers of this project don't find this issue useful, they can close this issue (any status besides Active, Needs review, Needs work and Reviewed and tested by the community) and no more automated patches will be posted here.
If the issue is reopened, then new automated patches will be posted.
If you are using another issue(s) to work on Drupal 10 compatibility it would be very useful to other contributors to add those issues as "Related issues" when closing this issue.
Remaining tasks
Using the patches
- Apply the latest patch in the comments by Project Update Bot or human contributors that made it better.
- Thoroughly test the patch. These patches are automatically generated so they haven't been tested manually or automatically.
- Provide feedback about how the testing went. If you can improve the patch, post an updated patch here.
Providing feedback
If there are problems with one of the patches posted by the Project Update Bot, such as it does not correctly replace a deprecation, you can file an issue in the Drupal Rector issue queue. For other issues with the bot, for instance if the issue summary created by the bot is unclear, use the Project analysis issue queue.
| Comment | File | Size | Author |
|---|
Issue fork entitygroupfield-3287337
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3287337-automated-drupal-10
changes, plain diff MR !11
Comments
Comment #2
project update bot commentedThis is an automated patch generated by Drupal Rector. Please see the issue summary for more details.
It is important that any automated tests available are run with this patch and that you manually test this patch.
Drupal 10 Compatibility
According to the Upgrade Status module, even with this patch, this module is not yet compatible with Drupal 10.
Currently Drupal Rector, version 0.12.0, cannot fix all Drupal 10 compatibility problems.
This patch does not update the
info.ymlfile for Drupal 10 compatibility.Leaving this issue open, even after committing the current patch, will allow the Project Update Bot to post additional Drupal 10 compatibility fixes as they become available in Drupal Rector.
Debug info
This patch was created using these packages:
Comment #3
project update bot commentedThis is an automated patch generated by Drupal Rector. Please see the issue summary for more details.
It is important that any automated tests available are run with this patch and that you manually test this patch.
Drupal 10 Compatibility
According to the Upgrade Status module, even with this patch, this module is not yet compatible with Drupal 10.
Currently Drupal Rector, version 0.13.0, cannot fix all Drupal 10 compatibility problems.
This patch does not update the
info.ymlfile for Drupal 10 compatibility.Leaving this issue open, even after committing the current patch, will allow the Project Update Bot to post additional Drupal 10 compatibility fixes as they become available in Drupal Rector.
Debug info
This patch was created using these packages:
Comment #4
project update bot commentedComment #5
anybodyAm I right that now with #3306512: Add compatibility with Group v2 and v3 RTBC this issue is also unblocked?
Comment #6
dwwSure, sorta. ;) I'd rather get Group v1 D10 compatible first, but it's gonna be a little while before I'll be able to work on that. Maybe this can proceed in parallel?
Comment #7
dwwthe 2.0.x branch is now D10 compatible. I'll leave this issue for making the 1.0.x branch D10 compatible, which is blocked on a D10-compatible release of Group V1, e.g. #3367539: Initiative for Group 1.x compatibility under Drupal 10 and friends.
Comment #8
ivrh commentedUploading a full patch, which provides Drupal 10 compatibility against 1.0.x-dev branch.
Please test. You will need groups 1.x-dev in order to get this working.
Comment #9
ivrh commentedComment #10
project update bot commentedThis is an automated patch generated by Drupal Rector. Please see the issue summary for more details.
It is important that any automated tests available are run with this patch and that you manually test this patch.
Drupal 10 Compatibility
According to the Upgrade Status module, even with this patch, this module is not yet compatible with Drupal 10.
Currently Drupal Rector, version 0.15.1, cannot fix all Drupal 10 compatibility problems.
Therefore this patch does not update the
info.ymlfile for Drupal 10 compatibility.Leaving this issue open, even after committing the current patch, will allow the Project Update Bot to post additional Drupal 10 compatibility fixes as they become available in Drupal Rector.
Debug info
This patch was created using these packages:
Comment #11
inglesaaron commentedNow that Group v1 supports Drupal 10, can a release be made based off of the most recent patch to get v1 of Entity Group Field to support Drupal 10 as well?
Comment #12
jackfoust commentedI am also interested in this being in a v1 release so that I can properly focus on the Group v2 or v3 upgrade early next year!
Comment #13
mitechworld commentedComment #16
timohuismanI've rerolled that patch from MR11 against the 1.0.0-alpha2 tag. The changes from #3367521: Configure GitLab CI are not yet tagged, thats why the generated patch from MR11 doesn't apply.
Comment #17
sebastixThanks for the patch @timohuisman !
Comment #18
dwwSorry folks, forgot this one was still open. Marked #3400137: Providing a version that's compatible with D10 and Group 1.x duplicate. Som things we still need to solve here, not addressed in the current MR:
core_version_requirement: ^8.8 || ^9 || ^10LogicException: system module does not define a schema for table 'key_value_expire'.
But I'd love to get this resolved, committed and another 1.0.x release tagged ASAP.
Thanks!
-Derek
Comment #19
dwwFixes #18 except for #18.3 and the
.gitlab-ci.ymlfile.Comment #20
dwwDecided to move #18.3 to a follow-up (#3401957: Fix GitLab-CI configuration on both 1.0.x and 2.0.x), since it doesn't have to block the release and isn't directly related to the D10 compatibility in the code itself.
Comment #23
dwwComment #25
dww1.0.0-beta1 is now out! 🎉
Comment #26
naveenvalecha@dww
First Thanks for the great work and rolling out a new release!
General question: I also maintain the contrib modules. If the Drupal core doesn't support the D8 and D9. How long as a contib maintainer we should support the unsupported Core?
Like in the case of above commit https://git.drupalcode.org/project/entitygroupfield/-/commit/27c7d0ec2bf... we relied on a core/once library which was introduce in Drupal core in 9.2. See https://www.drupal.org/node/3158256
Now, we're claiming that we support 8.8 but we don't
Sorry for highlighting this here but that's a question general for all projects
Comment #27
dwwYou're welcome, and thanks for helping! And for this question:
Not everyone agrees on this, but my strong belief is "as long as you feasibly can". If the exact same code won't crash your site on 3+ different versions of Drupal core, amazing! That makes life so much easier for people stuck on older versions of core, trying to get out of an impossibly complicated web of composer hell. I'd rather make it as easy as we can for our end users to upgrade instead of punishing them for not having upgraded already by artificially making it harder than it already is.
That said, if you want/need to use newer features that only exist in later versions of core, so be it. Start a new minor branch or whatever, and move on. But don't drop support just for the sake of it. If the code still works on 8.8, let it be. If there's real tech debt needed to keep supporting "ancient" versions, declare a new minimum and clean up.
In the specific instance of this
oncerequirement in the library, I'm honestly not sure why that's there. 😂 The entire library definition is from the initial commit (d909330 from jidrone), and it's not clear how much of that we're actually using. I just tested again on a D8.9 site and the widget all seems to be working as planned, even pointing to a non-existent library item. Probably we could remove that line entirely. Regardless, it doesn't crash a test site if there's a missing library. Even if it doesn't work perfectly, at least telling composer it'd be okay to use this version as it was trying to upgrade things, huzzah.At least that's how I see it...
-Derek