Clean up config if image style is deleted

Created on 25 April 2023, over 1 year ago

Problem/Motivation

If an image style is deleted, its corresponding config in image_style_warmer.settings should be cleaned up as well.

Proposed resolution

Clean up the config in a image_style_warmer_image_style_delete hook.

📌 Task
Status

Needs work

Version

1.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

  • Issue created by @dieterholvoet
  • Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7
    last update over 1 year ago
    Not currently mergeable.
  • @dieterholvoet opened merge request.
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7
    last update over 1 year ago
    12 pass
  • Status changed to Needs review over 1 year ago
  • Status changed to Needs work over 1 year ago
  • 🇩🇪Germany IT-Cru Munich

    @DieterHolvoet: First quick view on your MR looks fine. I think we should add some warning message, that site builder should re-export image_style_warmer related config.

    If possible we also should test this with some PHP Unit Function test.

    I think we also should cleanup non-processed queue item in this hook, but this is also needed when an image file entity gets deleted. So I think this should be done in a separate issue, when this is merged.

  • 🇧🇪Belgium dieterholvoet Brussels

    I think we should add some warning message, that site builder should re-export image_style_warmer related config.

    I'm not sure if that's necessary. Since the site builder just updated image style config, they will export their configuration again anyway.

Production build 0.71.5 2024