Problem/Motivation

Split from #2540416: Move update.php back to a front controller.

This would allow core/contrib to make changes to state, cache backends and any other system that's a dependency for the update system.

Proposed resolution

Add hook_update_N()

Postponed on both #2540416: Move update.php back to a front controller and #2538108: Add hook_post_update_NAME() for data value updates to reliably run after data format updates

There is some code in the original issue which could be extracted out to a patch here.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

catch created an issue. See original summary.

dawehner’s picture

Status: Postponed » Needs work
Issue tags: +D8 Accelerate
StatusFileSize
new21.65 KB

Some initial work.

plach’s picture

Title: Consider adding hook_update_early_N() support » [PP-1] Consider adding hook_update_early_N() support
Status: Needs work » Postponed
Related issues: +#2538108: Add hook_post_update_NAME() for data value updates to reliably run after data format updates
berdir’s picture

Status: Postponed » Active
mpdonadio’s picture

Title: [PP-1] Consider adding hook_update_early_N() support » Consider adding hook_update_early_N() support

Title tweak to reflect new status.

dawehner’s picture

StatusFileSize
new1.84 KB

Just some reoll of previous work.

dawehner’s picture

StatusFileSize
new4.78 KB

This time also with the new file.

mpdonadio’s picture

Status: Active » Needs review

Setting Needs Review so tests run.

The last submitted patch, 2: 2547507-1.patch, failed testing.

The last submitted patch, 2: 2547507-1.patch, failed testing.

dawehner’s picture

Well, its pointless as nothing happens yet :)

dawehner’s picture

StatusFileSize
new8.36 KB
new5.71 KB

Just some itermediate work

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jibran’s picture

Issue tags: +Needs tests

We need tests here.

  1. +++ b/core/lib/Drupal/Core/Update/UpdatePreRegistry.php
    @@ -0,0 +1,49 @@
    +/**
    + * @file
    + * Contains \Drupal\Core\Update\UpdatePreRegistry.
    + */
    

    Not needed anymore.

  2. +++ b/core/lib/Drupal/Core/Update/UpdatePreRegistry.php
    @@ -0,0 +1,49 @@
    +namespace Drupal\Core\Update;
    +use Drupal\Core\KeyValueStore\KeyValueStoreInterface;
    

    Space missing.

  3. +++ b/core/lib/Drupal/Core/Update/UpdatePreRegistry.php
    @@ -0,0 +1,49 @@
    +  public function __construct($root, $site_path, array $enabled_modules, KeyValueStoreInterface $key_value, $include_tests = NULL, $update_type = 'post_update') {
    

    doc block missing.

  4. +++ b/core/lib/Drupal/Core/Update/UpdatePreRegistry.php
    @@ -0,0 +1,49 @@
    +   * @defgroup asdfadsfadsfadsf
    

    nice group.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

dawehner’s picture

Status: Needs review » Postponed

Let's postpone this issue unless we really need this.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

andypost’s picture

Version: 8.9.x-dev » 9.3.x-dev

Maybe just close it? there's already separate update kernel

andypost’s picture

Status: Postponed » Closed (outdated)

Post updates also added, do no more reason for it