- Issue created by @andypost
- π«π·France andypost
removal, but probably local tasks depends on themes enabled for Appearance menu item
- Status changed to Needs review
almost 2 years ago 7:17pm 28 March 2023 - Status changed to RTBC
almost 2 years ago 7:23pm 28 March 2023 - πΊπΈUnited States smustgrave
Can mark this for you.
Just was about to review the related issue.
- Status changed to Needs review
almost 2 years ago 7:35pm 28 March 2023 - π«π·France andypost
If local task depends on theme it should be cleaned from cache by [un]install() of theme.
But when new theme enabled there's no way for it to notify cache like "entity-list" cache tag The last submitted patch, 5: 3350933-5.patch, failed testing. View results β
- Status changed to Needs work
almost 2 years ago 8:20pm 28 March 2023 - π«π·France andypost
So both tests catching tabs cache!
-Drupal\Tests\system\Functional\System\ThemeTest
-Drupal\Tests\block\Functional\NonDefaultBlockAdminTest
- Status changed to Needs review
almost 2 years ago 8:27pm 28 March 2023 - π«π·France andypost
I think this is proper place, could use to add some inline comment or `@see` when theme dependent plugins caching tasks
The last submitted patch, 9: 3350933-9.patch, failed testing. View results β
- Status changed to RTBC
almost 2 years ago 2:05pm 29 March 2023 - Status changed to Needs work
almost 2 years ago 2:10pm 29 March 2023 - π¬π§United Kingdom catch
This needs a comment to explain why it's there.
But also, how sure are we it's needed - would be good to remove altogether and see what if anything fails + maybe manually test the appearance page with a newly installed theme if everything passes.
- π«π·France andypost
@catch in #5 there's 2 tests failed because of removal, its scenarios could be used for manual testing
- Status changed to Needs review
almost 2 years ago 8:19pm 29 March 2023 - π«π·France andypost
Re-roll after π Properly inject the theme registry in the ThemeInstaller Fixed
and -fail patch to get how many tests will fail
- π«π·France andypost
So 13 tests failed if we remove both cache tag invalidations
- π¬π§United Kingdom catch
Sorry I missed #5. So the reason we don't clear caches is because actual rendered output varies by theme, and just adding an extra theme doesn't make existing caches invalid. We should go ahead and just clean this up as it is then in term of the code change.
The comment could be something like this:
Installing and uninstalling themes doesn't invalidate caches because rendered output varies by theme, however the tabs on the appearance page depend on the theme list, so invalidate those via the local tasks cache tag.
The last submitted patch, 15: 3350933-15.patch, failed testing. View results β
- Status changed to RTBC
almost 2 years ago 11:53pm 3 April 2023 - Status changed to Fixed
over 1 year ago 8:34am 18 April 2023 Automatically closed - issue fixed for 2 weeks with no activity.