Closed (fixed)
Project:
Drupal core
Version:
8.9.x-dev
Component:
Classy theme
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Feb 2020 at 09:10 UTC
Updated:
7 Mar 2020 at 08:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lauriiiThis should be postponed until #3050389: [META] Remove dependency to Classy from core themes has been resolved.
Comment #3
lauriiiThis was actually postponed on #3096349: Create test for confirming Themes do not depend on Classy templates, not the meta issue 😜
Comment #4
bnjmnmThe patch may be 149k, but it is a gentle read. Other than the changes to
ConfirmClassyCopiesTest, which was modified to also check for templates, the other changes are removing template names from the skip-list inThemesNotUsingClassyTemplatesTestand making copies of template files, where some calls to attach_library are changed when it requests classy libraries. The only thing to watch out for with the template copies is for some files, git--find-copiesdoes not compare the copied file to the version in Classy. In those cases, the patch will show theattach_library()call being added instead of changed.Comment #6
bnjmnmThe test failed due to it being an 8.x patch being test on 9.x. Here are individual versions for 8 and 9.
Comment #8
bnjmnmThe failure in the 9X patch is an unrelated Media Library test that is known to intermittently fail. Queueing a re-test.
Comment #9
lauriiiConfirmed that all templates have been listed here correctly 👍
attach_librarycalls to reference Classy libraries lead into test failures in all themes.Nit: Any thoughts on hard coding this before the
file_get_contents()call?Comment #10
bnjmnmGood call, that would be fine in this case since it's unlikely the skip arrays will change after this. Hard coding is simpler and less redundant.
Comment #11
lauriiiHere's the test patch I mentioned earlier on #9. This should be only used for reviewing the changes.
Changes in #10 address my earlier feedback. 👍
Comment #13
bnjmnm(note that the test failure reported in #12 was due to the 8.x patch being tested on 9. Added an 8 test.
Comment #14
alexpottCommitted 7c6f55e and pushed to 9.0.x. Thanks!
Committed f33429b and pushed to 8.9.x. Thanks!
One more step :)