- Issue created by @jasonawant
- ๐ฌ๐งUnited Kingdom catch
This makes sense but it will need a decent inline comment explaining what's going on, could be based on the issue summary.
- Merge request !82723451667: Add default theme to AssetResolver::getCssAssets cache key id. โ (Closed) created by jasonawant
- ๐บ๐ธUnited States jasonawant New Orleans, USA
Uploading a patch file for reference.
- Status changed to Needs review
8 months ago 7:00pm 3 June 2024 - Status changed to Needs work
8 months ago 7:27pm 3 June 2024 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.
- ๐ฎ๐ณIndia samit.310@gmail.com
samit.310@gmail.com โ made their first commit to this issueโs fork.
- Status changed to RTBC
6 months ago 6:54am 23 July 2024 - ๐ฌ๐งUnited Kingdom catch
This looks good to me. I thought about test coverage, but we'd have to create a testing module that dynamically sets the default theme alongside something like ckeditor5_stylesheets so that it actually breaks the logic, this seems very convoluted.
Or we'd just be asserting that the default theme is part of the cache ID, which doesn't seem very useful. It's really just a change to support contrib modules doing things that are complicated, but having the default theme in the core cache ID is harmless when they don't, cache hit rates will be the same as before.
So I think this is OK without test coverage and moving to RTBC.
- Status changed to Needs work
5 months ago 11:52am 14 August 2024 - ๐ฌ๐งUnited Kingdom longwave UK
- Assigned to jasonawant
- Status changed to Active
5 months ago 12:12pm 14 August 2024 - ๐บ๐ธUnited States jasonawant New Orleans, USA
@longwave, what would be the versions referenced within the message, 11.1.0 and 12.0.0?
if ($theme_handler === NULL) { @trigger_error('Calling ' . __METHOD__ . ' without the $theme_handler argument is deprecated in drupal:11.1.0 and it will be required in drupal:12.0.0. See https://www.drupal.org/node/3078162', E_USER_DEPRECATED); $theme_handler = \Drupal::service('theme_handler'); }
I'm guessing a change record is also required?
- Issue was unassigned.
- Status changed to Needs review
5 months ago 12:26pm 14 August 2024 - ๐บ๐ธUnited States jasonawant New Orleans, USA
I attempted to add this change here using 11.1.0 and 12.0.0 as the versions and referencing this issue in the message.
- Status changed to RTBC
5 months ago 12:27pm 14 August 2024 - ๐ฌ๐งUnited Kingdom catch
bc layer looks good, that's all we need.
For 11.0.0 and lower backport, we could use a version of the MR without dependency injection that just calls \Drupal::service() to get the theme manager instead, that can happen before or after this is committed to 11.x
- First commit to issue fork.
Observed test failures, found there are some PHP Coding standard issues due to which pipeline failed, addressed them, pipeline passed & MR is mergeable now. it's already in RTBC state , so keeping it to prev state (not sure about)
- Status changed to Downport
5 months ago 7:20pm 14 August 2024 - Merge request !9347Issue #3451667: Add default theme to AssetResolver::getCssAssets cache key-id. โ (Open) created by pooja_sharma
Ported the changes to 11.0.X by creating MR 9347 & rebased MR as well it is several commits behind.