Needs work
Project:
Bartik
Version:
1.0.2
Component:
Look and Feel
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2015 at 20:47 UTC
Updated:
16 Dec 2022 at 07:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dcrocks commentedComment #3
dcrocks commentedThis will probably fail the same way as stark did
Comment #5
dcrocks commentedThe best way to fix these errors is to leave the files in the profile/config/install directories so testing doesn't fail and move a copy into the theme's config/install directory. Not pretty but would work. Any thoughts?
Comment #6
emma.mariaComment #7
dcrocks commentedThe problem with this patch is that \Drupal\block\Tests\NewDefaultThemeBlocksTest is ignorant of the theme/config/install|optional directories. It reflects the previous model of block creation during the theme install process. It will have to be rewritten to solve this issue.
Beyond that having 2 copies of the same file in 2 different locations presents maintenance problems for git and I don't think that is the right direction.
Comment #8
dcrocks commentedUsed a different theme for the failing test. Really don't think it is efficient to use 'live' themes for tests, even if core, unless they are the objects being tested.
Comment #9
duaelfrLinking to the issue about block config files in config/install.
Comment #10
dcrocks commentedSince an uninstall, install cycle on this theme results in incorrect output, this should be in the bug queue, not task.
Comment #11
joginderpcThis theme also working fine as expected.
Comment #12
alexpottI'm not convinced by this issue. Firstly the config should depend on Bartik so having it in config/install should not be a problem for some of them - but there's a wider issue. These blocks are configured depending on what modules standard installs. This is standard config - not Bartik. If you install Bartik after installing the minimal profile I would expect to do the block placement myself.
Setting back to "needs review" for more opinions.
One thing that is apparent is that when uninstalling a theme we should list the configuration that will be deleted so the user knows this is not a reversible step. At the moment that does not appear to be happening.
Comment #13
dcrocks commentedJust a couple of points.
These block config files are specifically for the themes they are defined for, not for the install profiles. They are meaningless to the install profiles if their theme is not also activated by the profile. They were previously in the profile's config directory because that was the only place they could be activated during install.
It has always been bad DX for core themes needing a visit to admin for block placement on install/reinstall. Block inheritance is a nice convenience but really is a nuisance when developing new themes or when working with established themes. Bartik, et all, should always work out of the box, especially for those new to drupal. What kind of experience is drupal providing when a theme becomes broken just because it has gone thru an uninstall/install cycle.
As has been pointed out elsewhere, a theme shouldn't be installed if its dependencies aren't met. Using 'config/optional' instead of 'config/install' provides a soft failure instead of a hard one. Also, bartik and stark are too often used in tests when those tests have absolutely no dependence on those specific themes. These constantly evolving themes are being used instead of static test system themes, resulting in completely unnecessary test failures.
Comment #14
dcrocks commentedOf the 152 files in a standard install of drupal that have references to Bartik, more than 50 are 'Test' files. I would think a significant number of those would be better off using test system themes rather than a volatile theme that may not even exist in future versions of drupal. The test system should not be dependent on bartik, stark, or admin except where their features are under test.
Comment #20
jacineIMO, this block config belongs in Bartik.
Referencing another related issue.
Comment #22
alexpottHere's a thought - if we moved the config into the profile's optional configuration then it would be reinstalled with the theme but it would avoid polluting the theme with config that's dependent on an install profile.
This config does not belong in the theme - it is profile specific.
Comment #24
andrewmacpherson commentedNeeded a re-roll after:
Comment #26
avpadernoComment #28
vsujeetkumar commentedFixed tests, Please review.
Comment #35
quietone commentedBartik has been removed from core. I am moving this to the contrib project.