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
AssertLegacyTrait::buildXPathQuery() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->buildXPathQuery() instead. See https://www.drupal.org/node/3129738
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#38 | interdiff-8.9.x_34-38.txt | 1.2 KB | pavnish |
#38 | 3139440-8.9.x-38.patch | 9.29 KB | pavnish |
#34 | 3139440-9.0.x-34.patch | 8.57 KB | pavnish |
#34 | 3139440-8.9.x-34.patch | 10.7 KB | pavnish |
Comments
Comment #2
jungleAdding the "Deprecated assertions" tag to add this into the kanban board https://contribkanban.com/board/Deprecatedassertions
Comment #3
jungleComment #4
jungleFixing CS
Comment #5
xjmComment #7
pavnish CreditAttribution: pavnish at Srijan | A Material+ Company for Drupal India Association commentedComment #8
mohrerao CreditAttribution: mohrerao as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedComment #9
siddhant.bhosale CreditAttribution: siddhant.bhosale as a volunteer and at QED42 commentedComment #10
siddhant.bhosale CreditAttribution: siddhant.bhosale as a volunteer and at QED42 commentedHi, Please review the Patch.
Comment #12
sharma.amitt16 CreditAttribution: sharma.amitt16 as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedI am working on the test case failures.
Comment #13
sharma.amitt16 CreditAttribution: sharma.amitt16 as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedFix for test failures.
Apologies for the interdiff. generating the interdiff file.
Don't know why but interdiff is giving error on this patch so while I am fixing that on my computer below is the change I made from patch #10
Comment #14
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedAdding interdiff between patch at #10 and #13. Patch at #13 is looks good to me but it has some additional changes like
other than this patch is looks good me.
Comment #15
durgeshs CreditAttribution: durgeshs as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedComment #16
durgeshs CreditAttribution: durgeshs as a volunteer and at Srijan | A Material+ Company for Drupal India Association commented@Hardik_Patel_12,
I have checked interdiff, which was added by you and checked your comment #14, I think no need to update last patch #13. Because there are removed extra space and added Doc comment, which was empty.
Patch #13 is looks good for me and we can move for RTBC+1.
Comment #17
catchWe should remove the unrelated changes from this patch and handle them in a separate issue.
Also, we should add a trigger_error() to the deprecated buildXPathQuery() methods, either here or in a follow-up:
Comment #18
mondrake#17 it's properly deprecated with @trigger_error in 9.1.x AFAICS:
or I am missing something?
Comment #19
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedWorking on it.
Comment #20
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedPatch at #13 is now failed to apply , re-rolling the patch and removing unrelated changes and deprecated with @trigger_error is already there. Kindly review a new patch.
Comment #21
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 commentedComment #22
catch@mondrake no I think it was me who was missing something...
Comment #23
jungle{@inheritdoc}
Same
The re-roll in #20 does not look right, Did again based on #13.
Comment #24
jungleThe test was lost in the middle.
Lost the removal in the middle.
Comment #25
jungleAddressing #24
Comment #26
mondrakeThanks
Comment #27
alexpottCommitted c114930 and pushed to 9.1.x. Thanks!
I't be good to have a version of this to backport to 9.0.x and 8.9.x to keep the tests aligned. Minus the change to the skipped deprecations and the test of deprecation message.
Comment #29
pavnish CreditAttribution: pavnish at Srijan | A Material+ Company for Drupal India Association commented@alexpott I am working on to backport to 9.0.x and 8.9.x.I will upload the patch soon after test.
Comment #30
pavnish CreditAttribution: pavnish at Srijan | A Material+ Company for Drupal India Association commented@alexpott patch has been re-rolled for 8.9.x and 9.0.x .
Comment #33
mondrakeThis should be removed.
Comment #34
pavnish CreditAttribution: pavnish at Srijan | A Material+ Company for Drupal India Association commented@mondrake point #33 has been noticed for re-rolled patch. I have removed testBuildXPathQuery() from these patches.
Please review these patches.
Could you please conform we need to be remove this in 9.1.x
Thanks
pavnish
Comment #35
pavnish CreditAttribution: pavnish at Srijan | A Material+ Company for Drupal India Association commentedComment #36
mondrakeThis needs to be removed from the 8.9.x patch.
@pavnish the entries in the DeprecationListenerTrait and the deprecation tests were only added in 9.1.x, since it's in that branch that we are finally throwing errors in case the methods are used, not earlier. So when backporting any of these replacement patches, we need to skip any code that has to do with the deprecations silencing and any deprecation test (taht would fail).
Comment #37
mondrakeComment #38
pavnish CreditAttribution: pavnish at Srijan | A Material+ Company for Drupal India Association commented@mondrake thanks for the review.
I have changed the patch as suggested by you could you please review.
Thanks for the help :).
Comment #39
mondrakeLooks good, thanks.
Comment #41
pavnish CreditAttribution: pavnish at Srijan | A Material+ Company for Drupal India Association commented@mondrake It was strange that the Drupal CI failed the patch first time. After that i again schedule for the retest then it's showing pass :)
Could you please review again and move this to expected state.
Comment #42
mondrakeYeah, we came across a so called 'random test failure'.
Comment #44
mondrakeMarking fixed on the basis of #3027952-54: [Plan] Remove the usage of deprecated methods in tests. Please open a separate issue for backport.
Comment #45
mondrake