Problem/Motivation

Stable9 will not be removed from Drupal 10.

This means that any leftover templates/CSS files referencing removed (in D10) core modules should be removed from this theme.

Steps to reproduce

Proposed resolution

Find leftover templates/CSS files referencing removed (in D10) core modules in Stable 9
Remove them

Remaining tasks

User interface changes

API changes

Since none of the templates removed in this issue were changed during Drupal 9, there is no impact on markup whether subthemes override templates or not.

Data model changes

Release notes snippet

Issue fork drupal-3307225

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Spokje created an issue. See original summary.

Spokje’s picture

Status: Active » Needs review
Spokje’s picture

Tried to be positive about it, but I just switched back to a patch-only workflow until there's some better hardware in place.

Just can't hang around for 20+ minutes to make sure a commit will eventually popup or not.

Spokje’s picture

quietone’s picture

I applied the patch and did lots of searching (grep and find) in core/themes/stable* for the removed modules. Grepping "color" was a bit of fun :-)

I just found one thing that I am not sure about in all the themes stable9 is the only one with a directory and file for ckedito,r core/themes/stable9/css/ckeditor/plugins/language/ckeditor.language.css. Is that needed?

Spokje’s picture

FileSize
646 bytes
16.67 KB

Thanks @quietone, very nice catch.

At the moment of creating this issue the ckeditor module was still "In Tha House" (meaning still in core both in Drupal 9 and 10).

Since it's now officially gone from d10, I see no reason why it's still supported by Stable9. In fact I think it's an oversight since it was removed from Stable in #3270438: Remove CKEditor 4 from core

I've uploaded a new patch nuking that file.

Spokje’s picture

Title: Remove leftover templates/CSS files from removed modules/assets from Stable(9) » Remove leftover templates/CSS files from removed modules/assets from Stable 9
FileSize
6.86 KB
8.75 KB

With the arrival of #3308986: [Meta] Tasks to remove Stable theme from core and move to contrib we can remove the stable references in this patch.

longwave’s picture

Status: Needs review » Needs work

This looks pretty close but I found one more straggler: themes/stable9/templates/admin/color-scheme-form.html.twig is part of Color module.

Spokje’s picture

FileSize
886 bytes
9.78 KB

Thanks @longwave. I think "stragglers" is becoming the word-of-the-release-beta week :)

longwave’s picture

Status: Needs work » Needs review
nod_’s picture

Status: Needs review » Reviewed & tested by the community

Should the forum twig files be removed as well? it's still there.

Looks complete to me.

Wim Leers’s picture

Per @xjm.

Spokje’s picture

Issue summary: View changes

  • xjm committed 18c3f9a on 10.1.x
    Issue #3307225 by Spokje, longwave, quietone: Remove leftover templates/...

  • xjm committed 6b65e07 on 10.0.x
    Issue #3307225 by Spokje, longwave, quietone: Remove leftover templates/...
xjm’s picture

Status: Reviewed & tested by the community » Fixed

Before patch:

[ayrton:stable9 | Wed 11:22:31] $ find . -name '*color*' -ls 
40558237        0 drwxr-xr-x    3 xjm              staff                  96 Sep 14 11:22 ./css/color
40558238        8 -rw-r--r--    1 xjm              staff                3178 Sep 14 11:22 ./css/color/color.admin.css
40558240        0 drwxr-xr-x    5 xjm              staff                 160 Sep 14 11:22 ./images/color
40558245        8 -rw-r--r--    1 xjm              staff                 734 Sep 14 11:22 ./templates/admin/color-scheme-form.html.twig
[ayrton:stable9 | Wed 11:22:32] $ find . -name '*aggregator*' -ls 
40558247        8 -rw-r--r--    1 xjm              staff                1112 Sep 14 11:22 ./templates/dataset/aggregator-feed.html.twig
40558246        8 -rw-r--r--    1 xjm              staff                1023 Sep 14 11:22 ./templates/content/aggregator-item.html.twig
[ayrton:stable9 | Wed 11:22:40] $ find . -name '*rdf*' -ls 
[ayrton:stable9 | Wed 11:23:11] $ find . -name '*ckeditor*' -ls 
40558233        0 drwxr-xr-x    3 xjm              staff                  96 Sep 14 11:22 ./css/ckeditor
40558236        8 -rw-r--r--    1 xjm              staff                 491 Sep 14 11:22 ./css/ckeditor/plugins/language/ckeditor.language.css
[ayrton:stable9 | Wed 11:23:36] $ find . -name '*hal*' -ls 
[ayrton:stable9 | Wed 11:23:52] $ find . -name '*quickedit*' -ls 

After patch:

[ayrton:stable9 | Wed 11:25:52] $ find . -name '*color*' -ls 
[ayrton:stable9 | Wed 11:26:00] $ find . -name '*aggregator*' -ls 
[ayrton:stable9 | Wed 11:26:08] $ find . -name '*rdf*' -ls 
[ayrton:stable9 | Wed 11:26:14] $ find . -name '*ckeditor*' -ls 
[ayrton:stable9 | Wed 11:26:25] $ find . -name '*hal*' -ls 
[ayrton:stable9 | Wed 11:26:30] $ find . -name '*quickedit*' -ls 

Committed to 10.1.x and cherry-picked to 10.0.x. Thanks!

phenaproxima’s picture

Status: Fixed » Needs work
Issue tags: +Needs change record

Unless I'm missing something here, sites which are using Stable 9, or a subtheme of it, and also have one of these now-removed modules (or their contrib versions) installed, will be partially broken.

Therefore, this probably means that the modules in question need to re-implement these changes (follow-ups?), but at the very least this should have a change record.

longwave’s picture

I don't think this will break anything. The Stable and Stable 9 themes were designed so we could update core CSS and templates without breaking backward compatibility. However, in the Drupal 9 cycle we did not update any of the templates that were removed in this patch.

Let's take the case of aggregator-item.html.twig. If someone overrode this in their subtheme of Stable 9, then the overridden version will take precedence now, as it did before. If they did not override it, the template from Stable 9 is now gone, but this will just fall back to the aggregator-item.html.twig template shipped with Aggregator module itself, and the end result will be no different.

I double checked all the templates and CSS removed in this patch and the only difference is in comments and relative paths to assets; there are no structural changes.

Given the above, I am not even sure this needs a change record.

catch’s picture

Issue summary: View changes
Status: Needs work » Fixed
Issue tags: -Needs change record

longwave's explanation for why this doesn't need a change record makes sense to me. I updated the API changes section of the issue summary to add that explanation, just in case someone lands on this issue and wonders the same thing.

Status: Fixed » Closed (fixed)

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