Problem/Motivation

Blocked on #3569127: Add new 11.3.x database dump fixtures, without modules deprecated for removal in 12.x.

Once that's committed, we should remove all hook_update_N() and hook_post_update_NAME() that were added prior to the tagging of 11.3.0.

This also means updating hook_update_last_removed() and hook_removed_post_updates() as well as any test coverage

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Sites must update to Drupal 11.3.0 or higher, prior to uprading to Drupal 12. <a href="https://www.drupal.org/node/3442097">See the change record for more details</a>

Issue fork drupal-3580877

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

catch created an issue. See original summary.

quietone’s picture

Status: Active » Postponed
quietone’s picture

Assigned: Unassigned » quietone

I should make a commit here by the end of the week

catch’s picture

Title: [PP-1] Remove updates added prior to 11.3.0 from 12.x » Remove updates added prior to 11.3.0 from 12.x
Status: Postponed » Needs work

smustgrave made their first commit to this issue’s fork.

smustgrave’s picture

Left these hooks as I didn't see them in 11.3.x

locale_post_update_clear_translation_path_config
update_post_update_clear_disk_cache_again

I didn't delete the test fixutres for 10.3, uninstall-ban, contact, history.

One I didn't know what to do with is PreventDowngradeTest

smustgrave’s picture

Oh btw I started a new branch just in case I was wildly wrong and didn't want to pollute what quietone started already.

smustgrave’s picture

I deleted ViewsConfigUpdaterTest as it was causing test failures not having any tests but felt like we should keep??

catch’s picture

Yes we should keep it I think - quite likely we'll need it again before we even release 12.0.0, ::markTestSkipped() ought to work?

smustgrave’s picture

Guess only think to do is decide what to do with PreventDowngradeTest and if the old fixtures should be deleted?

smustgrave’s picture

All green!

smustgrave’s picture

Status: Needs work » Needs review

This one could use a review now. I'm not hiding quietones MR just in case I'm wrong.

smustgrave’s picture

Rebased

dcam’s picture

Status: Needs review » Needs work

I left several comments on the MR.

I grepped the 11.3.0 tag to find all of the hook_update_N() and post-update functions: grep -rP "function \S+_update_\d+" core and grep -rP "function \S+_post_update_" core. All of the discovered functions are being removed by MR 15419.

Aside from the fixtures noted in my MR comments, I didn't notice any additional removals (related classes, etc) during my read-through of the MR.

smustgrave’s picture

Status: Needs work » Needs review

Nice finds!

not sure how I missed that announcements one.

quietone’s picture

Assigned: quietone » Unassigned
quietone’s picture

I should have unasssigned myself when I got sick with a flu.

dcam’s picture

Status: Needs review » Needs work

I'm so sorry. I didn't do a deep dive on the PreventDowngradeTest earlier. When I did I found a minor change that didn't get made to a comment. Please verify it and feel free to self-RTBC the issue afterward.

smustgrave’s picture

That’s the one I wasn’t 100% about just followed the previous one

dcam’s picture

Over all the changes to the test look good. It's only that one comment that didn't have the version updated. I think there shouldn't be any remaining references to D10.

smustgrave’s picture

Assigned: Unassigned » smustgrave

Will take a look in the morning thanks!

smustgrave’s picture

Status: Needs work » Reviewed & tested by the community

Applied the suggestion, thanks for the review!

quietone’s picture

Issue summary: View changes
Issue tags: +12.0.0 release notes

  • longwave committed 88187a5e on main
    task: #3580877 Remove updates added prior to 11.3.0 from 12.x
    
    By: catch...
longwave’s picture

Status: Reviewed & tested by the community » Fixed

Manually checked all removals and they all look correct to me.

Committed and pushed 88187a5ee7e to main. Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

smustgrave’s picture

Thank you! This may be the last blocker for deprecating text_with_summary :)

godotislate made their first commit to this issue’s fork.

godotislate’s picture

Status: Fixed » Needs review

This broke tests running against mysqli.
https://git.drupalcode.org/project/drupal/-/jobs/9442262
https://git.drupalcode.org/project/drupal/-/jobs/9442264

Drupal\Tests\system\Functional\UpdateSystem\PreventDowngradeTest::testDowngradePrevention
The link Continue was not found on the page.
Failed asserting that an array has the key 0.

core/tests/Drupal/Tests/UiHelperTrait.php:450
core/tests/Drupal/Tests/UpdatePathTestTrait.php:57
core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:216
core/modules/system/tests/src/Functional/UpdateSystem/PreventDowngradeTest.php:101
Drupal\Tests\system\Functional\Update\SequencesTableRemovalUpdateTest::testRunUpdates
The link Continue was not found on the page.
Failed asserting that an array has the key 0.

core/tests/Drupal/Tests/UiHelperTrait.php:450
core/tests/Drupal/Tests/UpdatePathTestTrait.php:57
core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:216
core/modules/system/tests/src/Functional/Update/SequencesTableRemovalUpdateTest.php:34

MR for fix: https://git.drupalcode.org/project/drupal/-/merge_requests/15507
mysqli job for MR passes: https://git.drupalcode.org/project/drupal/-/pipelines/800108
Was done the same way in #3569127: Add new 11.3.x database dump fixtures, without modules deprecated for removal in 12.x, maybe we want a better way?

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Nice catch!

needs-review-queue-bot’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new91 bytes

The Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

godotislate’s picture

Status: Needs work » Reviewed & tested by the community
Issue tags: +no-needs-review-bot

The bot is wrong.

  • catch committed d4432173 on main
    task: #3580877 Remove updates added prior to 11.3.0 from 12.x
    
    By: catch...
catch’s picture

Status: Reviewed & tested by the community » Fixed

I think we'd be better off overall if we could get mysqli enabled in the original database dump rather than an extra fixture, but this is fine as a hotfix. Also it will resolve itself when we get to 12.x dumps as long as that fixture gets imported prior to regenerating the dumps.

Committed/pushed to main to unbreak HEAD regardless. Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.