Closed (fixed)
Project:
Features
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Mar 2019 at 18:05 UTC
Updated:
14 Jun 2020 at 18:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sergiu stici commentedHere is the patch, please review.
Comment #3
anavarreUpdating the issue because I'm seeing many more deprecation notices with 8.x-4.x. Speaking of which, shouldn't we target 8.x-3.x since it's the current recommended release?
Comment #4
kristen polPer a Slack discussion with Gábor Hojtsy regarding usage of D9 tags (Drupal 9, Drupal 9 compatibility, Drupal 9 readiness, etc.), "Drupal 9 compatibility" should be used for contributed projects that need updating and "Drupal 9" was the old tag for D8 issues before the D9 branch was ready. Doing tag cleanup here based on that discussion.
Comment #5
shubhangi1995Comment #6
lilit_ghazaryan commentedComment #7
swatichouhan012 commentedI have fixed most of the deprecated errors , kindly review the patch.
Comment #8
swatichouhan012 commentedComment #9
shubhangi1995Comment #10
shubhangi1995There are errors in applying the patch, please rectify them.
It seems few core files too have been patched up , and are having issue applying patch please check again.
Comment #11
shubhangi1995Comment #12
swatichouhan012 commentedHi @shubhangi1995 thanks for review patch, i am attaching new patch.
Comment #13
nedjoThanks all for your work on these updates.
Below are a few places where we could be injecting services. Because we are changing existing services, we also need a new empty update that will trigger a container rebuild--at least, last I knew this was needed. An example is
features_update_8300():Both the extension list and the install profile services could/should be injected.
Ideally we would inject this service.
Ideally we would inject this service.
Comment #14
nitesh624Comment #15
nitesh624Comment #16
nitesh624Patch to remove depricated code
Comment #17
nedjo@nitesh624 thank you for your contribution.
Without further information, it is difficult for me as a maintainer to know what you've done or why.
The following would help a lot:
Thanks!
Comment #18
mark_fullmerSince this the original deprecated code report was run over a year ago, attached is the following:
Perhaps these automated fixes can be committed first. Then we can focus on a more narrow amount of work for fixing the remaining items which cannot be automatically fixed.
Comment #19
mark_fullmerThe attached patch adds the new
core_incompatiblevalue to the Kernel test that was failing, as well as thecore_version_requirementin the info.yml file, per Drupal 9 compatibility requirements.We should still expect deprecations, but this will take care of the low-hanging fruit, and we can move onto the manual work next.
Comment #20
mark_fullmerComment #21
mark_fullmerComment #22
mark_fullmerComment #23
mark_fullmerComment #24
mark_fullmerTo do: Per https://www.drupal.org/pift-ci-job/1659628, the FeaturesUI test will need to be updated to not use simpletest.
Comment #27
nedjoThanks, I've applied that initial patch, minus this part:
We can take care of that in #3122684: core_incompatible: false.
Setting to "Needs work" for the remaining D9 compatibility fixes.
Comment #28
nitesh624Comment #29
nitesh624Comment #30
nitesh624Comment #31
nedjoThis issue has had a lot of contributors (thanks!) but not a lot of continuity between efforts, with the result that it's been hard as a maintainer to know where we stand.
If updating, please see my comment in #17.
We'll apply this to both 8.x-4.x and 8.x-3.x (which at this point are identical).
Attached is a patch that contains the portions that still apply from #12 and #16. This is very likely to fail testing.
My comments from #13 likely still mostly apply, with the difference that instead of hook_update_N() we should be using
hook_post_update_NAME(). See Use hook_post_update_NAME instead of hook_update_N to clear the cache.Setting to Needs review only to see what test failures we get.
Comment #34
nedjoThe patch I posted in #31, drawing on previous work in this issue, was too broken to be of use.
I've posted a few new fixes drawing on #3140493: Automated Drupal Rector fixes supplemented with manual fixes to service injection and such.
Setting to Needs work for the (considerable) remaining work.
Comment #35
nedjoA further round of fixes to run by the test bot.
Comment #36
nedjoFix typo.
Comment #38
nedjoFixes are in tests that need updating.
Applying the non-test deprecation fixes.
Comment #41
nedjoComment #43
nedjoAddress some more test failures.
Comment #45
nedjoA few more attempted fixes.
Comment #49
nedjoThe remaining issues appear to be tests that need updating rather than necessarily further deprecations in the module code that need fixing. Moving to a separate-follow-up issue.
Comment #52
nedjoFollow-up work will be done in #3144232: Drupal 9 compatibility for Features, manual deprecation detection and #3143916: Tests failing after Drupal 9 update.