Problem/Motivation
Hello project maintainers,
This is an automated issue to help make this module compatible with Drupal 11.
Changes will periodically be added to this issue that remove deprecated API uses. To stop further changes 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 "ProjectUpdateBotD11" tag from the issue to stop the bot from posting updates.
The changes 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 changes 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 "ProjectUpdateBotD11" tag is left on this issue, new changes 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 changes 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 changes. The bot will still post new changes then if there is a change in the new generated patch compared to the changes that the bot posted last. Those changes are then up to humans to integrate.
- Leave open but stop new automated changes.
If you want to use this issue as a starting point to remove deprecated API uses but then don't want new automated changes, remove the "ProjectUpdateBotD11" tag from the issue and use it like any other issue (the status does not matter then). If you want to receive automated changes again, add back the "ProjectUpdateBotD11" 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 changes will be posted here.
If the issue is reopened, then new automated changes will be posted.
If you are using another issue(s) to work on Drupal 11 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.
Using the merge request
- Review the merge request and test it.
- Thoroughly test the changes. These changes are automatically generated so they haven't been tested manually or automatically.
- Provide feedback about how the testing went. If you can improve the merge request, create a new branch and merge request and work from there.
Warning: The 'project-update-bot-only' branch will always be overwritten. Do not work in that branch!
Providing feedback
If there are problems with one of the changes 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 |
|---|---|---|---|
| #4 | interdiff-last-bot.6911955.txt | 2.43 KB | project update bot |
| #2 | eck.2.0.0.rector.patch | 511 bytes | project update bot |
Issue fork eck-3430042
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:
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 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, even with these changes, this module is not yet compatible with Drupal 11.
Currently Drupal Rector, version 0.20.1, cannot fix all Drupal 11 compatibility problems.
Therefore these changes did not update the
info.ymlfile for Drupal 11 compatibility.Leaving this issue open, even after committing the current patch, will allow the Project Update Bot to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug info
This patch was created using these packages:
Comment #4
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, even with these changes, this module is not yet compatible with Drupal 11.
Currently Drupal Rector, version 0.20.3, cannot fix all Drupal 11 compatibility problems.
Therefore, these changes did not update the
info.ymlfile for Drupal 11 compatibility.The compatibility issues that Upgrade Status found after the Drupal Rector fixes were applied are attached to help you resolve them manually.
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 #6
benstallings commentedMR!50 installs with composer and can be enabled in Drupal 11. Since the release branch also fails testing, I'm going to consider the testing problem to be outside the scope of this ticket.
Comment #7
dqdRTBC from here as well. +1
Comment #8
basak.burcu commentedIn my Drupal 10 project, I installed ECK. However, I couldn't install it in Drupal 11 yet because it's not supported.
As a solution, I copied the eck.git section from the composer.lock file in the Drupal 10 project.
json
Copy code
{
"name": "drupal/eck",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/eck.git",
"reference": "2.0.0"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/eck-2.0.0.zip",
"reference": "2.0.0",
"shasum": "e1969212f4ce209e84d500a45133f0fe1b093795"
},
"require": {
"drupal/core": "^9.4 || ^10"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "2.0.0",
"datestamp": "1683908568",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "See contributors",
"homepage": "https://www.drupal.org/node/1155832/committers"
},
{
"name": "akalata",
"homepage": "https://www.drupal.org/user/498926"
},
{
"name": "amykhailova",
"homepage": "https://www.drupal.org/user/2892725"
},
{
"name": "Arrow",
"homepage": "https://www.drupal.org/user/423969"
},
{
"name": "DieterHolvoet",
"homepage": "https://www.drupal.org/user/3567222"
},
{
"name": "dpopdan",
"homepage": "https://www.drupal.org/user/2759811"
},
{
"name": "eric.napier",
"homepage": "https://www.drupal.org/user/501688"
},
{
"name": "fmizzell",
"homepage": "https://www.drupal.org/user/1312210"
},
{
"name": "kelly.m.jacobs",
"homepage": "https://www.drupal.org/user/3397374"
},
{
"name": "legolasbo",
"homepage": "https://www.drupal.org/user/2480548"
},
{
"name": "Matroskeen",
"homepage": "https://www.drupal.org/user/3426249"
},
{
"name": "mducharme",
"homepage": "https://www.drupal.org/user/616996"
},
{
"name": "mihai_brb",
"homepage": "https://www.drupal.org/user/2065978"
},
{
"name": "pifagor",
"homepage": "https://www.drupal.org/user/2375692"
},
{
"name": "RobLoach",
"homepage": "https://www.drupal.org/user/61114"
},
{
"name": "wjaspers",
"homepage": "https://www.drupal.org/user/813890"
}
],
"description": "ECK (Entity Construction Kit) allows users to create and administer entity types, bundles and entities from the UI.",
"homepage": "https://www.drupal.org/project/eck",
"support": {
"source": "http://git.drupal.org/project/eck.git",
"issues": "https://www.drupal.org/project/issues/eck"
}
}
For my Drupal 11 project, I took this code and manually added it to the composer.lock file. I updated the "drupal/core": "^9.4 || ^10 || ^11" part. Then, I added "drupal/eck": "^2.0" to the require section of the composer.json file.
I also added patches in the project under eck.patch. After running composer install via the terminal, ECK is now ready.
Comment #11
sarigaraghunath commentedComment #12
sarigaraghunath commentedComment #13
sarigaraghunath commentedFixed issue in Merge request !50 which was raised by dqd . Kindly review the Merge request !53.
Comment #14
sarigaraghunath commentedComment #15
jradhak commented#MR53 works with D10 and D11.
Comment #16
dieterholvoet commentedWe should probably make sure automated tests are passing before committing/releasing this one: #3422726: Fix tests
Comment #19
dieterholvoet commentedThere doesn't seem to be a good reason to drop support for Drupal 9.4, so I'm adding that back.
Comment #21
dieterholvoet commentedComment #22
dqdAbsolutely right. 200% Agreed. TBH, I was in conflict on this previously already twice, but it was based on a "trend" in many contrib regarding PHP version support in sync with Drupal core. I wondered why so many users wanted me to remove Drupal 9 support on projects I maintain and they convinced me at this time. But this surely affects not all contrib modules.
#13: Sorry, but to be clear for the logs, there haven't been raised any issue but only work has been continued on MR50 in line with update bot and previous contributors and it just got some minor basic adds/changes for ^11 compatibility as a starting point. And functional and procedual changes and updates in the code base should always be rather discussed carefully with the project maintainers anyways. Also, please do not assign update bot issues to yourself.
Thanks @dieterholvoet for finally updating/fixing and merging a carefully written out commit. Do you prefer any existing follow ups to work on with prio for an upcoming release?
Comment #23
dieterholvoet commentedI spent the bigger part of the day on ECK, merging issues, fixing the automated test suite and fixing all code style issues in the codebase. The only other issue I want to merge before creating a release is #3362661: EckEntityRouteProvider does not use link templates, but that one needs a rebase. After that, I’m going to do a last round of manual testing and create a new release.