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.
Update: 15 August 2024
Scheduler 2.1.0 is released, and this compatible with Drupal 11.
| Comment | File | Size | Author |
|---|
Issue fork scheduler-3434325
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 (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.1, 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
jonathan1055 commentedHi @Rajeshreeputra,
I have removed your manual commits, as I want this issue to remain only for the automated Project Update Bot suggestions. If you would like to help please create separate issues to fix the different problems.
Thanks
Comment #7
chandu7929 commentedRunning command
./vendor/bin/drush upgrade_status:analyze schedulerI can see following issue, which need to be fixed.Comment #8
chandu7929 commentedComment #9
chandu7929 commentedI ran tests locally and can see 272 error with same message: "Undefined array key "commerce_product"
Comment #10
jonathan1055 commentedWith regard to your comment in #7 that is exactly what the phpstan job shows
https://git.drupalcode.org/project/scheduler/-/jobs/1740052
For #9 that key is is the entity type used in testing, you need the Commerce module.
Comment #11
chandu7929 commentedThanks @jonathan1055, I have updated MR with deprecation fix reported in #7 hence moving back in review.
Comment #12
jonathan1055 commentedThanks chandu9729. But I already have that covered in a separate issue
#3451737: Fix call to deprecated method loadRevision()
This
project-update-bot-onlybranch will not have any manual commits added to it, as I said in #6 above.Comment #14
jonathan1055 commentedThis D11 work will be done in separate issues, so adding them here.
Comment #15
vishalkhode commentedChanges looks good to me. However, when I ran the full PHPUnit tests in my local against Drupal Core 10.3.0, so I found following failures. I think this should also exists in Drupal 11 as well and we need to fix below as well.:
Apart from this, we also need to update the dataProvider method for each tests and convert all DataProvider methods to static method, otherwise tests will fail on Drupal 11.
Comment #18
chandu7929 commentedHence pushed changes in separate branch to fix failing tests.
@vishalkhode - The test you have mentioned are not being run in current CI, hence I have created separate MR and will update CI accordingly to fix all the test failure in minor as well as major version of Drupal
Comment #20
chandu7929 commentedLatest status:
I can see multiple issue while running test with major version:
(3.0.0-alpha1)version and gives error like:The 'core_version_requirement' key must be present in modules/contrib/rules/rules.info.ymlWe should revisit this issue once we have D11 compatible release for rules and devel module at least.
@vishal for the point you have raised:
Comment #22
ankitv18 commentedRebased the MR with 2.x-dev and now pipelines are passing.
Comment #23
vishalkhode commentedI ran the complete tests in my local against Drupal 11.0.0-beta1 and following is the results:
"edit-fields-scheduler-settings-weight" not foundwas coming due to Inline Entity Form module. I've fixed it as part of MR !115 specifically here.No scheduled (content|media) for userhas been introduced due to #3453360: Expand the views test to check user name or id and I believe it will be fixed in #3451750: Fix: The update to convert "numeric" arguments to "entity_target_id" is deprecated.So, looks like no additional changes are required as part of this ticket. Hence, moving it ahead.
Comment #24
vishalkhode commented@jonathan1055: It would be helpful if you can update us about your plans to review & merge MR and get a pre/stable version of Scheduler module.
Comment #25
vipin.mittal18Hello Jonathan,
I hope you are doing well!
As you are the only active maintainer of scheduler, It would be helpful if you could inform us when you intend to release a pre/stable version of scheduler as Drupal 11 stable is nearing its release date. Thanks!
Comment #26
vipin.mittal18Hello Jonathan,
Please accept my apologies for bothering you, but I would appreciate it if you could release a Drupal 11 compatible version as we have put in a great deal of effort to fix the compatibility issues. If you are no longer maintaining this, please add me as a maintainer, so we can provide support for Drupal 11 customers that will be very helpful in the long run.
Thanks!
Comment #27
jonathan1055 commentedI have been on holiday, just returned today. I have lots to catch up on, and will review the issues in turn. Please be patient. As stated in #6 this issue will be left open for the automated MR bot, hence setting back to active. Separate issues are used for the actual fixes.
I have added one related issue, making three in total. Are you aware of any others that are required for D11 compatibility?
Comment #28
vishalkhode commentedHi @jonathan1055
Thanks for the reply. Included two more tickets for separate fixes required for Drupal 11 compatibility.
I've cherry-picked commit from all these tickets which are required to make module Drupal 11 compatible and also added one temp commit: 47066616 to run tests on Drupal 11 and you can see all PHPUnit tests are passing (https://git.drupalcode.org/issue/scheduler-3434325/-/pipelines/230921) except following deprecation errors out of which only one is related to Scheduler module.
The above will be fixed in #3451750: Fix: The update to convert "numeric" arguments to "entity_target_id" is deprecated
The above deprecation errors are coming from Embed & Rules module.
Comment #29
jonathan1055 commentedI have created a separate issue #3463494: Gitlab PHPunit jobs at D11 need compatible test dependencies which can be committed first. Then we can properly test the other D11 issue.
Thanks to @vishalkhode for providing the alternative repo info.
Comment #31
chandu7929 commentedOnce we merge change of 3463494-inline-entity-form it will start running test on next major.
Comment #32
chandu7929 commentedThere are conflicts, need to resolve and push should do the job.
Comment #33
chandu7929 commentedI think there is only pending item :https://www.drupal.org/project/scheduler/issues/3451750
Comment #34
jonathan1055 commentedI have fixed #3465213: Add 'array' return type in getSubscribedEvents()
The entity MR repo from #3465393: Add 'array' return type in Drupal\entity\EventSubscriber\EntityDuplicateSubscriber is included in the composer_next_major.json file
Comment #35
vishalkhode commented@jonathan1055 Can you please confirm, what's pending for Drupal 11 compatibility fixes ? Everything looks good now. When this is planned for merge & release ?
Comment #36
jonathan1055 commentedThank you for working on #3467349: PHPStan at D11 - Drupal\scheduler\SchedulerManager::Drupal\scheduler\formatOutputText() does not exist. Yes there are no more blockers for D11 release.
The current latest tag is
2.0.4so I am just wondering whether the D11-compatible release would be good as2.1.0not2.0.5?Comment #39
jonathan1055 commentedI have released Scheduler 2.1.0
Thank you everyone for your contributions here.
Comment #40
jonathan1055 commentedUpdated the summary with link to 2.1.0
Comment #41
jonathan1055 commentedChanged the title to be specifically for the 2.x branch to distinguish it from #3451287: Drupal 11 compatibility fixes [8.x-1.x]