Ensure that ConfigImport is taking place without outstanding updates

Created on 7 July 2016, over 8 years ago
Updated 22 January 2023, almost 2 years ago

Problem/Motivation

Talks about #2628144: Ensure that ConfigImport is taking place against the same code base β†’ making config import more reliable. There is some contention because it reduces some of the abilities of developers to do what they please. This issue is going to do something simpler. Ensure that when running configuration import there are no outstanding database updates to run.

Proposed resolution

Add validator to ensure that no outstanding updates need running.

Remaining tasks

User interface changes

Additional configuration import validation messages

API changes

None

For kernel tests we have added \Drupal\KernelTests\KernelTestBase::installUpdateRegistryState() to set the state for modules so that config imports are easy to test.

Data model changes

None

Release notes snippet

Config imports are prevented if there are outstanding database updates β†’ . In order to import Configuration, all available updates must have been run. This change helps users follow best practices around configuration management, drupal updates and deployments β†’ .

πŸ› Bug report
Status

Needs work

Version

9.5

Component
ConfigurationΒ  β†’

Last updated 8 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
  • Triaged core major

    There is consensus among core maintainers that this is a major issue. Only core committers should add this tag.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡­Switzerland bircher πŸ‡¨πŸ‡Ώ

    Ah no! you misunderstood!
    Drupal does not have a UI to run deploy hooks (yet). But deploy hooks are a thing already for a while and work in production with the stable drush version since two years.

    So since you are using drush this is already available to you.
    Deploy hooks work the same way as post update hooks.

Production build 0.71.5 2024