Background
In T373602 we identified various pages are using Codex message boxes through the calling of Html::warningBox,errorBox etc.. but do not explicitly load Codex. We would like to identify these pages and update them to call Codex. Given the sheer number of pages, we should rely on instrumentation to identify these pages and know when we are done. This will allow us to drop the hacky strpos fix in Skin.php in future.
User story
Requirements
- We will update the logic of Skin.php to check if a suitable Codex module has been added and log an event if it hasn't when it adds mediawiki.codex.messagebox.styles
- Using the data we collect we will identify all the pages that are not correctly loading Codex.
- We will add mediawiki.codex.messagebox.styles module explicitly to these pages.
- We will remove the logic and modify the logic to only apply for article content (by restricted the call to only apply to ?action=view and not to apply to the special page namespace when https://logstash.wikimedia.org/goto/1bd455888d36e19ddb5476db1257d36b logs < 1000 for non article pages.
BDD
- For QA engineer to fill out
Test Steps
- For QA engineer to fill out
Design
- Add mockups and design requirements
Acceptance criteria
- Add acceptance criteria
Communication criteria - does this need an announcement or discussion?
- Add communication criteria
Rollback plan
- What is the rollback plan in production for this task if something goes wrong?
This task was created by Version 1.2.0 of the Web team task template using phabulous