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
There's functions deprecated for removal in core 10
Proposed resolution
remove the usage, make sure no mentions left
Remaining tasks
review/commit
User interface changes
no
API changes
no
Data model changes
no
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#18 | 3261248-18.patch | 41.89 KB | andregp |
| |||
#18 | interdiff_3261248_15-18.txt | 2.77 KB | andregp |
#15 | 3261248-15.patch | 42.1 KB | andregp |
| |||
#15 | interdiff_3261248_11-15.txt | 3.14 KB | andregp |
#11 | 3261248-11.patch | 41.35 KB | paulocs |
|
Comments
Comment #2
andypostComment #3
longwaveQuite a bit more to do here?
Comment #4
andypostCleaned mostly all (except
user.js
)Role permissions has own issue #2953111: Only migrate role permissions that exist on the destination
Comment #5
paulocsWorking on it.
Comment #6
paulocsRemoved the deprecation in user.js and removed unnecessary tests.
Comment #7
paulocsPlease do not consider the
interdiff-4-8.txt
file in #6.Comment #8
andypostLooks great 👍 but needs another eyes to rtbc
Comment #9
quietone CreditAttribution: quietone at PreviousNext commentedLooks like there is more.
and the tests
Comment #10
paulocsI thought on #4 @andypost means that those deprecations should be replaced in the other issue.
So I'll remove the deprecation in
core/modules/user/src/Entity/Role.php
here as well per comment #9.Comment #11
paulocsAttaching a new patch and interdiff.
Thanks!
Comment #12
longwaveNo longer can be null.
Do we need to trigger an exception here now?
Comment #13
joachim CreditAttribution: joachim as a volunteer commentedNeeds work for #12.
Comment #14
andregp CreditAttribution: andregp at CI&T commentedI'll work on the points from #12
Comment #15
andregp CreditAttribution: andregp at CI&T commentedAs @longwave pointed Role.php does need to trigger an exception. (https://www.drupal.org/node/3193348)
I added a RuntimeException and restored the test to check for this. I also removed the wrong null parameter indicator in Cookie.php.
Comment #16
andregp CreditAttribution: andregp at CI&T commentedI forgot to change the status.
Comment #17
longwaveThanks for working on this.
Not sure we need to link the change record here, nor even specify how permissions are defined - we don't usually do that in exception messages. Listing the error and the undefined permissions is enough, I think.
The
@group legacy
comment needs removing from this test method, as we are converting it to a permanent test of the exception.Comment #18
andregp CreditAttribution: andregp at CI&T commentedThanks @longwave for the review.
Here is the new patch.
Comment #20
longwaveUnrelated fail, sending for retest.
Comment #21
longwaveThis setting has the wrong name now as the deprecation is replaced by an exception, but I don't think we should change it here - this will be removed in #2953111: Only migrate role permissions that exist on the destination
This all looks good to me now, so RTBC.
Comment #23
catchCommitted dcc51c8 and pushed to 10.0.x. Thanks!