Background
In T361589 we moved code relating to templates from Minerva to WikimediaMessages. We now have 2 instances of the CSS which is confusing, so we should remove ASAP.
User story
As a user, I don't want delays in getting night mode updates due to confusion relating to code living in 2 places in production.
Before working on this task
Check that cached pages have cleared to a significant rate and that the new style module is present: https://logstash.wikimedia.org/goto/bdc5fa26c4c69d2a03e15b3fc50a74b6
Acceptance criteria
- The wgMinervaApplyKnownTemplateHacks configuration variable is removed from Minerva
- The Readme.md has been updated.
- References to when (@wgMinervaApplyKnownTemplateHacks = 1) { are removed.
- resources/skins.minerva.base.styles/content/tablet/hacks.less is removed
- resources/skins.minerva.mainPage.styles/hacks.less is removed
- resources/skins.minerva.base.styles/content/hacks.less is removed
QA steps
- Visit https://en.m.wikipedia.beta.wmflabs.org/wiki/The_New_Blue_of_Yale?minervanightmode=1 and resize to mobile
- Make sure the infobox goes full screen
- Make sure no color contrast issues inside the infobox (ignore issues with red links and language button)
Communication criteria - does this need an announcement or discussion?
This will surface T362747 for a small selection of page views from 2nd May.
- There were 76,000 page views impacted with the issue over last hour on Thursday 25th
- On Thursday 18th 1,445,668 page views were impacted.
- This number should be even lower on 2nd May.
We may want to inform communities that if unsatisfied with this situation they can add the following code to MediaWiki:Mobile.js:
mw.loader.using( 'ext.wikimediamessages.styles' )
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T362727#9762163 |
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T362727#9765526 |





