Jump to content

Fundraising/External-facing/Payments

From Wikitech

Overview

Upgrading MediaWiki

When a new LTS (Long term support) version of MediaWiki comes out, we try to upgrade Payments-wiki to use it fairly quickly. To upgrade from our customized REL1_35 branch (fundraising/REL1_35) to a customized REL1_39 branch, we follow these steps:

  • Create the new fundraising/REL1_39 branch of mediawiki/core as a merge target in Gerrit. This should be based on the REL1_39 branch.
  • Pull the new fundraising/REL1_39 branch down locally
  • Remove extensions and skins that we don't deploy (patch from last time: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/619814)
  • Add logos (e.g. https://gerrit.wikimedia.org/r/c/mediawiki/core/+/619815)
  • Add payments-specific extensions (e.g. https://gerrit.wikimedia.org/r/c/mediawiki/core/+/619817)
    • All of the core extensions and skins that we use on payments-wiki should be checked out at REL1_39. DonationInterface should be checked out at deployment, and FundraisingEmailUnsubscribe at the master branch.
  • Update composer.json to merge extension composer deps and point to our amazon SDK fork (e.g. https://gerrit.wikimedia.org/r/c/mediawiki/core/+/620118/3/composer.json), and pin php version to prod php version (e.g. https://gerrit.wikimedia.org/r/c/mediawiki/core/+/634577).
  • Create the new fundraising/REL1_39 branch of mediawiki/vendor as a merge target in Gerrit. This can be based on the REL1_39 branch, but it's not so important, as we will clear it out in the next step.
  • Install dependencies into vendor with --no-dev, check the changes in to the fundraising/REL1_39 branch of vendor, and update the submodule pointer from the fundraising/REL1_39 branch of core
    • On your first try, this may come up with some of conflicts if DonationInterface's composer.json has some requirements pegged to the versions supported in the previous mediawiki version. Update those requirements to transitionally support both the previous MW version and the new MW version.
  • Run php maintenance/update.php on your local installation and note any changes needed in LocalSettings.php

Moved from main page

Translations

See Fundraising/Translation for more info

  • Donatewiki translations go out regularly on the l10n cache
  • TYs need to be manually deployed - make a task for this and put it in pending review in the current sprint
  • Subject line needs to be manually deployed - make a task for this and put it in pending review in the current sprint
  • Payments needs to be manually deployed - make a task for this and put it in pending review in the current sprint