Problem/Motivation
As part of decoupling themes from Stable (parent issue: #3110855: Plan for removing dependency to Stable in Bartik/Seven/Claro/Umami) there will be tests that include comparing core's and Stable's template/CSS files (accounting for things like CSS image paths and @ingroup themeable
.
Many of files that differ from core to Stable are only due to comments or indentation, and in almost every instance one of the versions is actually correct as opposed to something that is intentionally different based on the theme it resides in.
If these inconsequential differences are addressed, the tests can be implemented without having to account for dozens of noisy edge cases.
Proposed resolution
For each file, update either the Stable or core version so it matches its counterpart. Update the file that violates CS or a decision made in an issue.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#9 | 3111729-9.patch | 24.15 KB | bnjmnm |
#9 | interdiff_7-9.txt | 2.75 KB | bnjmnm |
Comments
Comment #2
bnjmnmThis patch updates 34 files that differ in core and Stable due to comment/indentation differences only. Many of them remove incorrect usage in Stable of
@ingroup themeable
or* Default theme implementaion
Also attached is a quick PHP script (extension changed to txt) I used to identify the differences. It requires xdiff to work.
Comment #3
dwwAgreed this is a really good move to simplify things.
Patch mostly looks great. Only a few nits:
This seems wrong.
Hrm, in this context, I think "Toolbar" is correct as it's a proper noun referring to a specific core module, right?
Seems wrong again.
Probably out of scope, but this at first seemed like an indentation bug. Then I realized it's because -children is a top-level variable, not a child of -language_types. Wonder about moving -children to the top of the list, above -langugage_types? That'd both be alphabetical, and it'd avoid the possible confusion that -children is really top-level, not a mistakenly not-indented item under -language_types...
at least "modal" now fits on the line above. Maybe "dialog", too...
Comment #4
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedHere I have made changes as suggested in comment #3.
Comment #5
dww@ravi.shankar thanks for #4!
That only addresses #3 points 1, 3 and 5.
2 and 4 are still @todo.
At least 2 should be fixed. I think this means fixing the upstream core template, and leaving stable alone.
4 requires more discussion.
Cheers,
-Derek
Comment #6
prabha1997 CreditAttribution: prabha1997 at Valuebound for Valuebound commentedI am working on this issue
Comment #7
prabha1997 CreditAttribution: prabha1997 at Valuebound for Valuebound commentedHere I have made changes as suggested in comment #5.
Comment #8
dww@prabha1997: Thanks for #7, too!
As I said (twice), I think #3.4 requires more discussion. It is a little weird to have the first thing in the list something that says "Remaining form items..." -- remaining from what? ;) Probably we should leave it as it was originally. I was only asking for actual discussion about the merits of my review question, not new patches...
Meanwhile, for #3.2, patch #7 reverts the change to stable, but doesn't fix the upstream template to match. From #6: "I think this means fixing the upstream core template, and leaving stable alone." Patch #7 does 1 half of this, but not the other.
Sorry if I haven't been clear enough in my reviews and comments, and thanks for your contributions!
-Derek
Comment #9
bnjmnmI agree that #3.4 is out of scope here, but is worth looking into elsewhere. Created followup: #3112782: Potentially confusing docblock in language-negotiation-configure-form.html.twig and reverted the change applied here.
This also re-fixes #3.2 and corrects an indentation issue I spotted in status-messages.html.twig
Comment #10
dww@bnjmnm: Thanks for the follow-up for #3.4. Now following the follow-up. ;)
Interdiff looks great.
All concerns are addressed.
RTBC.
Thanks, everyone!
-Derek
Comment #11
alexpottCommitted and pushed 74c0dd0aac to 9.0.x and 890f2fb81d to 8.9.x and a4fc70a12b to 8.8.x. Thanks!
As these are documentation or whitespace changes only I've backported this to 8.8.x to make any later bugfixes simpler to apply.