•  
     
    story #10843 upgrade to mediawiki 1.27
Summary
Empty
upgrade to mediawiki 1.27
Empty

Tuleap Mediawiki 1.27

Extensions

List

  • CategoryTree => 1.23+
  • Cite => 1.25+ / PHP 5.4+ / Integrated with MW 1.21
  • ImageMap => Integrated with MW 1.21
  • InputBox => Integrated with MW 1.21
  • Labeled Section Transclusion => 1.18+ / PHP 5.4+
  • Parser function => Integrated with MW 1.18
  • PdfBook => 1.25+
  • SyntaxHighlight => Integrated with MW 1.21
  • WikiEditor => Integrated with MW 1.18
  • MLEB => External package from tuleap.net

Result

  • CategoryTree => OK
  • Cite => OK
  • ImageMap => OK but 404 on https://tuleap-web.tuleap-aio-dev.docker/plugins/mediawiki/wiki/tuleap-dev/resources/assets/poweredby_mediawiki_88x31.png
  • InputBox => OK but some css is broken
  • Labeled Section Transclusion => OK
  • Parser function => OK
  • PdfBook => OK without tab
  • SyntaxHighlight => /!\ Error with pygmentize inclusion and highlight does not seem to work (version 1.1 provided by dependance by viewvc & 2.1 MW 1.27)
    • Need to use virtualenv to load properly
  • WikiEditor => OK
  • MLEB => /!\ Does not seem to work + lot of warnings on use: https://www.mediawiki.org/wiki/Topic:Tyrinqx8pef1l7lg
    • WILL NOT BE SUPPORTED IN 1.27

Upgrade 1.23 -> 1.27

PHP 5.6 is mandatory

Upgrade path

  • Decided by global mediawiki administators or project administrators
  • Project by project
  • All new projects uses 1.27 (regardless of template)

Permissions

  • Session => create new classes with MediaWiki(UserLoadFromSession hook is deprecated in 1.27) => https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager#As_a_provider && https://www.mediawiki.org/wiki/Manual:SessionManager_and_AuthManager/Updating_tips#UserLoadFromSession_hook

  • Groups & users seem globally OK

Theme

  • Use standard Vector Theme
    • Standard Vector Theme is weel displayed (without Tuleap content)
    • Tuleap123 is displayed, but some CSS must be rewritten
  • Upgrade MW embbeded into Tuleap to Burning Parrot
    • Inclusion "works" => some styling to be redone + BP style rewrite a lot of MW styling rules
  • Upgrade MW admin pages to Burning Parrot

Resources

  • Download MW 1.27: https://releases.wikimedia.org/mediawiki/1.27/mediawiki-1.27.3.tar.gz
  • Extract to /usr/share/mediawiki-tuleap-127
  • Database upgrade > /usr/share/tuleap/src/utils/php-launcher.sh /usr/share/tuleap/plugins/mediawiki/bin/migrate_to_127.php tuleap-dev --conf /usr/share/tuleap/plugins/mediawiki/www/LocalSettings.php
  • Download Pdfbook extension: https://code.organicdesign.co.nz/extensions/zipball/master
  • Download Labeled extension: https://www.mediawiki.org/wiki/Special:ExtensionDistributor?extdistname=LabeledSectionTransclusion&extdistversion=REL1_27
  • Download CategoryTree extension: https://www.mediawiki.org/wiki/Special:ExtensionDistributor?extdistname=CategoryTree&extdistversion=REL1_27
  • Download MLEB: https://translatewiki.net/mleb/MediaWikiLanguageExtensionBundle-2017.07.tar.bz2
  • Database upgrade > /usr/share/tuleap/src/utils/php-launcher.sh /usr/share/tuleap/plugins/mediawiki/bin/migrate_to_127.php tuleap-dev --conf /usr/share/tuleap/plugins/mediawiki/www/LocalSettings.php
  • Gerrit draft: gerrit #9844
Empty
Empty
Status
Empty
Canceled
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#10843
Manuel Vacelet (vaceletm)
2022-05-09 16:36
2017-11-21 14:58
4405

References
Referencing story #10843

Artifact Tracker v5

epic #7970 Mediawiki
Referenced by story #10843

Follow-ups

User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
  • Status changed from Ready (stalled) to Canceled
  • Category set to
User avatar
Is it possible to add this extension to the list: https://www.mediawiki.org/wiki/Extension:MarkdownExtraParser ?

It does not seems very well maintained but works out of the box in 1.23 and is nice to use.

  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
  • Permissions set to