Page MenuHomePhabricator

Add a test version of a main-cluster wiki to fundraising-dev, for dev work on on Donate Wiki, CentralNotice and banners (CentralDonut)
Closed, ResolvedPublic4 Estimated Story Points

Description

Ideally, this local Mediawiki instance would automatically be loaded up with the same pages and templates used to create the Donate Wiki interface, and also with banners, campaigns and templates for testing Fundraising banners locally.

It seems unlikely that the content or code for Donate Wiki and FR banners/CN would interfere with each other. Since both systems run on the same version of Mediawiki, as deployed to the main production cluster, it seems fine to use a single container/MW instance for both.

Due to the combined function of providing dev support for both Donate Wiki and CentralNotice, I'd recommend the docker container and code source directory both be called centraldonut.

Tentatively, here are the steps involved:

  • Add a mediawiki container.
  • MW source based on master branch.
  • Install FundraiserLandingPage extension and anything else it requires.
  • Install CentralNotice extension and anything else it requires.
  • Set up templates like those on donate.wiki.org by downloading wikitext source using the Mediawiki API, automatically replacing links to go to local payments wiki, and creating local wiki pages. See this doc for more info.
  • Also set up a test CentralNotice campaign, test FR banners and required templates, also by downloading wikitext source using the Mediawiki API, automatically replacing links to go to local payments wiki.
  • Ensure that local permissions for CN banner content and translation approvals are the same as those on production.
  • Add LocalSettings.php under config/centraldonut.
  • Add setup steps for installation, update, users with appropriate permissions, and default port exposed on host system.
  • Provide a mechanism to keep all wiki content up-to-date.
  • Enjoy your local centraldonut!

Event Timeline

Dwisehaupt set the point value for this task to 4.Sep 12 2022, 8:22 PM
AndyRussG renamed this task from Add a test version of Donate Wiki to fundraising-dev to Add a test version of a main-cluster wiki to fundraising-dev, for dev work on on Donate Wiki, CentralNotice and banners (CentralDonut).Oct 2 2022, 5:46 PM
AndyRussG updated the task description. (Show Details)

Change 841965 had a related patch set uploaded (by Ejegg; author: Ejegg):

[wikimedia/fundraising/dev@master] WIP add donorwiki service

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

@Pcoombe I dumped a list of all the pages on Donatewiki (including templates) into this etherpad. I suspect that vast numbers of them are unneeded for this project (anything with 2010, most of the *Appeal-* besides the JimmyQuote). If you happen to have time to delete a few swaths of them from the list it would cut down the amount of stuff to import and then keep in sync. Thanks!

Oops, that seems to be blank! I'm not sure what happened to the list. I will regenerate it there.

OK @Pcoombe, I guess etherpad doesn't do so well with pasting 4000 lines. I copied the page list to this google doc instead: https://docs.google.com/document/d/17MrDd4UinPakszeqyd00guvOSm1a_G52k5dbcWKwJNo/edit?usp=sharing

@Ejegg I've got it down to 1180. If you want even fewer then let me know, we can probably drop a bunch of translations.

Thanks @Pcoombe ! That gets the XML export down to 2.7MB from almost 7. I'll check that in to the fundraising-dev repo now so we can at least have a dev donatewiki with static content, then I'll see about using the recentchanges API to sync dev wiki content to the latest donatewiki content on demand.

Change 877296 had a related patch set uploaded (by Ejegg; author: Ejegg):

[wikimedia/fundraising/dev@master] Add CentralNotice to donut

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

Change 877296 abandoned by Ejegg:

[wikimedia/fundraising/dev@master] Add CentralNotice to donut

Reason:

squashed into donatewiki patch

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

Change 841965 merged by AndyRussG:

[wikimedia/fundraising/dev@master] Add service for donatewiki and centralnotice

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

XenoRyet set Final Story Points to 4.