MediaWiki/Upgrade/REL1 25 to REL1 26: Difference between revisions

creates Feature pages for most upgrades
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
Tags: Mobile edit Mobile web edit
 
(One intermediate revision by one other user not shown)
Line 77: Line 77:


For those [https://gerrit.wikimedia.org/r/#/admin/projects/?filter=mediawiki%252Fextensions%252F extensions available in git] you can fetch the latest updates to the code with something like  
For those [https://gerrit.wikimedia.org/r/#/admin/projects/?filter=mediawiki%252Fextensions%252F extensions available in git] you can fetch the latest updates to the code with something like  
<source lang="bash">
<syntaxhighlight lang="bash">
release=REL1_26
release=REL1_26
# work within the extensions directory so as not to conflict with the main composer.json
# work within the extensions directory so as not to conflict with the main composer.json
Line 94: Line 94:
   cd $base;  
   cd $base;  
done
done
</source>
</syntaxhighlight>
Also, if you don't even know whether there are submodules in use, you can search for those by looking for .gitmodules or .git '''files''' <code>find . -type f -name .git</code> And if you want to know which extensions may be using composer, you can check <code>find . -maxdepth 2 -name composer.json |xargs grep -l '"require":'</code>
Also, if you don't even know whether there are submodules in use, you can search for those by looking for .gitmodules or .git '''files''' <code>find . -type f -name .git</code> And if you want to know which extensions may be using composer, you can check <code>find . -maxdepth 2 -name composer.json |xargs grep -l '"require":'</code>


Line 105: Line 105:
=== Bootstrap ===
=== Bootstrap ===
* I chose to install the Bootstrap extension, which will allow me to use skins based on Bootstrap.  E.g. Chameleon
* I chose to install the Bootstrap extension, which will allow me to use skins based on Bootstrap.  E.g. Chameleon
<source lang="bash">
<syntaxhighlight lang="bash">
composer require "mediawiki/bootstrap:~1.0"
composer require "mediawiki/bootstrap:~1.0"
composer update
composer update
</source>
</syntaxhighlight>


=== Category Tree ===
=== Category Tree ===
Line 154: Line 154:
* upgraded to 3.0 20140719 (6ed9dc3) 2015-11-23T16:39:17 from 2.2 20120425 (83fa077) 2013-03-31T14:51:05
* upgraded to 3.0 20140719 (6ed9dc3) 2015-11-23T16:39:17 from 2.2 20120425 (83fa077) 2013-03-31T14:51:05
* Since the freephile wiki is served in secure mode (https), and all my interwiki links were hardcoded to 'http', I'd be unfairly dumping visitors out to the non-encrypted web. Interwiki since v1.18+ supports Protocol Relative URLs (PRURLs), so I updated my interwiki table converting all links to use // It's not possible to browse the freephile wiki in plain http mode (because our server is configured to always redirect to secure mode), so you can't really link off to an insecure website via the interwiki table now.  But, if we ever decide to serve plain http, then our interwiki links will maintain your insecurity.
* Since the freephile wiki is served in secure mode (https), and all my interwiki links were hardcoded to 'http', I'd be unfairly dumping visitors out to the non-encrypted web. Interwiki since v1.18+ supports Protocol Relative URLs (PRURLs), so I updated my interwiki table converting all links to use // It's not possible to browse the freephile wiki in plain http mode (because our server is configured to always redirect to secure mode), so you can't really link off to an insecure website via the interwiki table now.  But, if we ever decide to serve plain http, then our interwiki links will maintain your insecurity.
<source lang="sql">
<syntaxhighlight lang="sql">
SELECT * FROM mediawiki.interwiki;
SELECT * FROM mediawiki.interwiki;
UPDATE mediawiki.interwiki
UPDATE mediawiki.interwiki
SET iw_url = REPLACE(iw_url, 'http://', '//')
SET iw_url = REPLACE(iw_url, 'http://', '//')
LIMIT 200;
LIMIT 200;
</source>
</syntaxhighlight>


=== Lingo ===
=== Lingo ===
Line 189: Line 189:
* upgraded to (6d8477d) 2015-11-23T17:19:41 from (f7044ec) 2014-01-21T20:50:35
* upgraded to (6d8477d) 2015-11-23T17:19:41 from (f7044ec) 2014-01-21T20:50:35
* installed poppler-utils on Ubuntu
* installed poppler-utils on Ubuntu
<source lang="bash">
<syntaxhighlight lang="bash">
which gs convert pdfinfo # tells if you have the right dependencies
which gs convert pdfinfo # tells if you have the right dependencies
</source>
</syntaxhighlight>
* added link to example test page
* added link to example test page