Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
More information: https://www.drupal.org/node/2935639
Comment | File | Size | Author |
---|---|---|---|
#10 | group-deprecations-3088226-10-interdiff.txt | 307 bytes | Berdir |
#10 | group-deprecations-3088226-10.patch | 29.18 KB | Berdir |
#9 | group-deprecations-3088226-9.patch | 28.88 KB | Berdir |
| |||
#7 | group-deprecations-3088226-7-interdiff.txt | 21.66 KB | Berdir |
#7 | group-deprecations-3088226-7.patch | 28.62 KB | Berdir |
Comments
Comment #2
LOBsTerr CreditAttribution: LOBsTerr at European Commission and European Union Institutions, Agencies and Bodies commentedComment #3
LOBsTerr CreditAttribution: LOBsTerr at European Commission and European Union Institutions, Agencies and Bodies commentedComment #4
BerdirThis update the type hints but it still uses the old, deprecated services.
Comment #5
LOBsTerr CreditAttribution: LOBsTerr at European Commission and European Union Institutions, Agencies and Bodies commentedThanks, missed it :( The patch and interdiff are attached
Comment #6
BerdirExpanding the scope of this to all deprecations, it's hard to keep that in separate issues as they tend to conflict and it's hard to test that everything is covered.
Working on it a bit.
Comment #7
BerdirOk, this should fix everything except the config sync directory, which is a 8.8 deprecation and only used in tests.
This uses the new create pattern in a few places which allows us to avoid duplicating the parent constructor arguments and just assign what we need additionally. If we'd ever want to add unit tests for this then a setter method could be added for the additional properties, but that does seem very unlikely for these classes.
Comment #9
BerdirAh, didn't think this through, so using the $this->entityTypeManager property in viewsData does require 8.8 obviously, so updating the version constraint and fixing everything.
It's up to @kristiaanvandeneynde to decide when to drop 8.7 support, I'll start doing that for my projects in march, FYI :)
Comment #10
BerdirOne more thing, didn't see that composer.json has a drupal/core requirement already, that's not really necessary anymore as it respects core_version_requirement automatically, but updating that too for now.
Comment #12
BerdirComment #13
penyaskitoLooks good to me, and all tests are passing.
This could be also removed as far as I read for test modules: #3096609: Allow contrib test modules to not need a core or core_version_requirement key, but let's try to get this done ASAP as it's blocking any module testing if depending on group.
Comment #14
BerdirYeah, starting with 8.8.3 or so. I prefer to keep it, because having such a module present results in a hard fail for _any_ test. If another project has a require-dev dependency on group and still wants to support 8.7 then we'd break their tests. We could decide to remove it when the min version is increased the next time.
Comment #15
penyaskitoThanks for the explanation, @berdir!
Comment #16
heddnThe changes here make sense. But without an actual commit, its hard to see if this will pass the testbot or not. So a tentative +1 on RTBC from me. With the caveat that there might need to be more testing/fixes after the initial patch lands.
Comment #17
SuperfluousApostrophe CreditAttribution: SuperfluousApostrophe at Pennsylvania State University commentedI cannot get either patch #9 or #10 to install via composer. I'm running D8.8.5 & 1.0.0-rc5.
Comment #18
kristiaanvandeneyndeOkay, looks good to me and I agree it's time to bump the supported core version to 8.8
Big thanks to all those involved!
Comment #20
heddnThere's a couple instances of:
Providing context definitions via the "context" key is deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Use the "context_definitions" key instead.
in the code still. Open a follow-up?Comment #21
BerdirWe still have the parent issue open: #3042771: Drupal 9 Deprecated Code Report. Now that this has been committed, we can run tests against 9.x as well there.
Comment #22
kristiaanvandeneynde@heddn that has been fixed in #3087371: Replace ContextDefinition with EntityContextDefinition
@Berdir okay, will follow that issue.