Page MenuHomePhabricator

Remove MinervaTemplate::getSecondaryActions
Closed, ResolvedPublic3 Estimated Story Points

Description

The MinervaTemplate::getSecondaryActionsHtml method should be moved into minerva.mustache. We should reuse any core data as much as we possibly can. If needed add new data to SkinMinerva::getTemplateData.

TODO

  • The MinervaTemplate::getSecondaryActions method should not exist. Move to SkinMinerva if needed.
  • The MinervaTemplate::isFallbackEditor method should not exist. Move to SkinMinerva if needed.
  • secondaryactionshtml should not be present in the template data sent to Minerva's Mustache template.
  • The SkinMinerva::getSecondaryActions method should not use BaseTemplate $tpl
  • The line $tpl->set( 'secondary_actions' in SkinMinerva should no longer exist.

QA

Visit the main page and check the language button and talk buttons display.

QA Results - Beta

ACStatusDetails
1T291875#7466949

QA Results - Prod

ACStatusDetails
1T291875#7466955

Event Timeline

Jdlrobson triaged this task as Medium priority.Sep 27 2021, 7:25 PM
Jdlrobson created this task.

Change 732377 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/MinervaNeue@master] Remove MinervaTemplate::getSecondaryActions

https://gerrit.wikimedia.org/r/732377

bwang removed bwang as the assignee of this task.Oct 20 2021, 8:07 PM
bwang moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.
bwang subscribed.

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Big Sur
Browser: Chrome
Device: MBP
Emulated Device: NA

Test Artifact(s):

QA Steps

✅ AC1: Visit the main page and check the language button and talk buttons display.

Screen Shot 2021-10-25 at 7.17.43 AM.png (1×1 px, 303 KB)

Screen Shot 2021-10-25 at 7.17.11 AM.png (1×1 px, 343 KB)

@Edtadros Sorry, this actually isn't ready to test yet, I'll move back to code review

bwang added a subscriber: Edtadros.

Change 732377 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Remove MinervaTemplate::getSecondaryActions

https://gerrit.wikimedia.org/r/732377

bwang moved this task from Code Review to QA on the Web-Team-Backlog (Kanbanana-FY-2021-22) board.

@Edtadros Ok its ready now for testing on beta!

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Big Sur
Browser: Chrome
Device: MBP
Emulated Device: NA

Test Artifact(s):

QA Steps

✅ AC1: Visit the main page and check the language button and talk buttons display.

Screen Shot 2021-10-28 at 3.38.58 PM.png (1×956 px, 343 KB)

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Big Sur
Browser: Chrome
Device: MBP
Emulated Device: NA

Test Artifact(s):

QA Steps

✅ AC1: Visit the main page and check the language button and talk buttons display.

Screen Shot 2021-10-28 at 3.40.40 PM.png (1×912 px, 247 KB)

LGoto added a subscriber: ovasileva.

lgtm - checked latest master for removed methods and they no longer exist