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.
Problem/Motivation
I started using a custom drupalci.yml to a) speed up test runs and run all tests together and temporarily enable deprecations to prepare for D10. In paragraphs, I noticed that search_api still has a jquery.once usage. However, it doesn't even seem to be used, so I'm just removing it.
Steps to reproduce
Proposed resolution
Remaining tasks
Comment | File | Size | Author |
---|---|---|---|
#14 | 3292775-14--drupal_10_compatibility.patch | 65.16 KB | drunken monkey |
#14 | 3292775-14--drupal_10_compatibility--with_drupalci_yml.patch | 65.61 KB | drunken monkey |
Comments
Comment #2
BerdirNote: You want to commit this either without the drupalci.yml file or switch the suppress deprecation flag around to avoid for example D10 tests failing on new deprecations. Also, there might other modules being enabled that have deprecations, you can't separate that.
Comment #4
BerdirStill quite a lot of deprecations, your own hooks can be ignored, will be impossible to commit with deprecations enabled then anyway. lots of setUp() with missing :void.
Comment #5
BerdirFixing render(), seUp() and drupal_get_path(), that should remove a lot of noise. the temporary database stuff is probably going to be painful.
Comment #7
Berdirfixed that syntax error and fixed most things in unit and kernel tests.
Comment #9
Berdirjust a few deprecations left beside your own. I didn't update .info.yml yet, this requires at least Drupal 9.3
Comment #10
BerdirComment #11
BerdirHandful of extra fixes. Only remaining deprecations:
As mentioned, these are likely going to be very painful, as this gone without any replacement whatsoever. There's special prefix logic in there for sqlite.
Also, this:
No idea about this. The test passes on D10, maybe a false positive.
All tests of the main module except LanguageWithFallbackTest which depends on a module that I don't have pass locally on D10.
Again a patch without drupalci.yml, that should be ready to commit.
Comment #12
BerdirWrong filename for the patch without drupalci.yml
Comment #14
drunken monkeyThanks a lot, great job! And sorry for the long delay.
The attached also fixes the rest of the tours, other than that I would just commit this for now and leave the mess with temporary tables for another time.
Comment #16
drunken monkeyTests pass, too, so looking good.
Committed.
Thanks a lot again!
Created #3300927: Remove usage of temporary tables from DB backend for the temporary table follow-up. And I guess we’ll just hope the JS one is a fluke, otherwise I have no idea what it means.