Commit graph

3267 commits

Author SHA1 Message Date
Translation updater bot
529ccd9e02 Localisation updates from https://translatewiki.net.
Change-Id: If9e3c1bf47afc4ee0f0c0afacebf3e32df62fb8c
2018-10-26 21:55:34 +02:00
Translation updater bot
d75ac255ad Localisation updates from https://translatewiki.net.
Change-Id: I67923401760c77676ed4e674170335333ac15d15
2018-10-25 22:16:19 +02:00
jenkins-bot
ecee5cd7c7 Merge "Use PHP 7 '??' operator instead of if-then-else" 2018-10-24 21:58:04 +00:00
Translation updater bot
021b080b76 Localisation updates from https://translatewiki.net.
Change-Id: If085dbc6560e9580ac86ddb42a4f730d47f1e605
2018-10-23 21:53:55 +02:00
Translation updater bot
7b4ec19d1d Localisation updates from https://translatewiki.net.
Change-Id: Id5f41040e7924ee2a377f5bb47999ff8a5987831
2018-10-22 21:53:57 +02:00
C. Scott Ananian
b3141dac43 Rename WebInstallerOutput::addWikiTextInterface
Follow up to I89f3398cffa771afcd5a33cfd11eb8510af3e7f7: this patch
was intended to mirror a new method added to OutputPage in
Ia58910164baaca608cea3b24333b7d13ed773339 but the bikeshed was painted
a slightly different color before the OutputPage patch was merged, and
somehow this patch wasn't changed to match.  The `addWikiTextInterface`
name was never included in a released MW version, so we don't need to
deprecate it, just fix it.

Change-Id: I636cb0ea0f9631c4c5e2bc118f479aec76d2b231
2018-10-21 23:02:32 -04:00
Translation updater bot
98845840f6 Localisation updates from https://translatewiki.net.
Change-Id: I12979463cbff3cd1b6ed46ffe3a7839be0c35605
2018-10-21 22:11:24 +02:00
Fomafix
43244db9a2 Use PHP 7 '??' operator instead of if-then-else
Change-Id: If9d4be5d88c8927f63cbb84dfc8181baf62ea3eb
2018-10-21 21:46:46 +02:00
Zoranzoki21
cf18de1ecf Equalization translations for Serbian
Change-Id: I36a214181d24610fa0224d51223b1789d93be777
2018-10-21 17:36:31 +00:00
Zoranzoki21
8b7b5f04b7 installer: Don't link to the obsolete "Extension Matrix" page
Bug: T205765
Change-Id: Id1ba965c7c06ce03611ba745421dc982f5393f8c
2018-10-21 14:45:52 +00:00
Translation updater bot
e50bb5b359 Localisation updates from https://translatewiki.net.
Change-Id: I508681048d303f4814be18462689688b93443813
2018-10-20 22:00:02 +02:00
Translation updater bot
e09246fb77 Localisation updates from https://translatewiki.net.
Change-Id: Ic7961893e9cd4f67fdfdeb36c00ce414444c3f15
2018-10-19 22:02:41 +02:00
Translation updater bot
65cd644c3b Localisation updates from https://translatewiki.net.
Change-Id: Idb8c9ff1533aa8470455dba149333a6212c509a5
2018-10-18 22:15:04 +02:00
Aaron Schulz
ebbccf1845 Migrate some wfWikiId() callers to getLocalDomainID()
Change-Id: I33fe222b7ca66babd61610febaebcf52d3806a7d
2018-10-15 23:58:49 -07:00
Translation updater bot
ed4d7ef057 Localisation updates from https://translatewiki.net.
Change-Id: I4b631605549ac3599ca01d59fa69e35fad6c879e
2018-10-15 21:57:04 +02:00
Translation updater bot
112385bff5 Localisation updates from https://translatewiki.net.
Change-Id: I27647ca9376c400143ba52074322c4b50960db53
2018-10-14 21:54:50 +02:00
Translation updater bot
ffa5a48a25 Localisation updates from https://translatewiki.net.
Change-Id: I5958a3381bd070c1cb7d79e6819b638418b87165
2018-10-13 09:49:22 +02:00
Translation updater bot
2650a78fe9 Localisation updates from https://translatewiki.net.
Change-Id: I17af87ea492359cd0c09dc3c62af8caa8755368a
2018-10-11 22:14:08 +02:00
jenkins-bot
c69bf3bc87 Merge "install.php: Allow extensions and skins to be specified" 2018-10-11 05:34:33 +00:00
Brad Jorsch
993baa3493 ActorMigration: Remove possibility of read-both
When this was originally written, the plan was to read both the old and
new fields during the transition period, while stopping writes to them
midway through. It turns out that the WHERE conditions to do read-both
correctly are generally not handled well by the database and working
around that would require a lot of complicated code (see what's being
removed from ApiQueryUserContribs here, for example).

We can simplify things greatly by instead having it write both fields
during the transition period, reading from the old for the first part
and the new for the second part, as is being done for MCR.

Bug: T204669
Change-Id: I4764c1c7883dc1003cb12729455c8107319f70b1
Depends-On: I845f6ae462f2539ebd35cbb5f2ca8b5714e2c1fb
Depends-On: I88b31b977543fdbdf69f8c1158e77e448df94e11
2018-10-11 12:12:00 +11:00
Tim Starling
5e9ada5882 install.php: Allow extensions and skins to be specified
Allow the extensions and skins installed by maintenance/install.php to
be customised using --skins= and --extensions=. If the argument is
am empty string then no extensions/skins are installed. For backwards
compatibility, the default is to install all skins, but to install all
extensions only if --with-extensions is given.

The new CLI options may be specified multiple times, but for
convenience, comma-separated lists can also be used.

Also:
* Rename $option to $options
* If an extension has a dependency error, propagate the very readable
  error message generated by ExtensionRegistry back to the user.
* Split getExtensionInfo() from the loop body of findExtensionsByType(),
  so that CliInstaller can use it to validate its parameters and get
  error messages.
* I didn't like the idea of removing the "s" from the directory name in
  order to construct the JSON file name, so I split
  findExtensionsByType() from findExtensions(), with the former not
  having this hack. In findExtensions(), make the previous assumption
  that the directory name is always "extensions" or "skins" explicit,
  throwing an exception if it is otherwise.

Change-Id: Id0fb63cd4e61a047ef3396ee1c38d6073dfc7fd1
2018-10-10 03:26:14 +00:00
Translation updater bot
936b958cb9 Localisation updates from https://translatewiki.net.
Change-Id: I37d7b1dfa4bbe393b32d62f8f8ac564ebb24d149
2018-10-07 21:55:00 +02:00
Translation updater bot
536e575288 Localisation updates from https://translatewiki.net.
Change-Id: Ib87a638392b5f4d20ce69a0af2895692f11197d4
2018-10-06 21:54:18 +02:00
Translation updater bot
150e3bf460 Localisation updates from https://translatewiki.net.
Change-Id: I16181fad87c2d0afe3c43188c9f7807b6a953698
2018-10-05 21:56:02 +02:00
Translation updater bot
ec1c307372 Localisation updates from https://translatewiki.net.
Change-Id: Idf339b32a190b7a770c0465e4545948861ab979d
2018-10-04 22:03:30 +02:00
Translation updater bot
b42bdd1b92 Localisation updates from https://translatewiki.net.
Change-Id: Ic0af665f26aa1af0bd706ee26bb811d0a482ec2b
2018-10-03 17:20:20 +02:00
Brad Jorsch
7a422138a7 Migrate image descriptions from image_comment_temp
image_comment_temp was always intended to be temporary, until an
expensive schema change on Wikimedia Commons's image table could be
done. Now that that has been done, stop writing image_comment_temp and
add a migration script to copy existing data into img_description_id.

Ic8efeddc will remove the reads from image_comment_temp and drop the
image_comment_temp table.

Bug: T188132
Change-Id: Iab5f521577a415b2dc213b517ee8a0dca4fdd0aa
2018-10-02 10:30:00 -04:00
jenkins-bot
11a8714550 Merge "Fix [[MediaWiki:Config-install-success/en]] translation issues" 2018-10-01 16:12:12 +00:00
Zoranzoki21
698c663215 Fix [[MediaWiki:Config-install-success/en]] translation issues
The first sentence in this message should not be splited in two lines.
Too, content of page for FAQ, should be displayed on the user's language.

Bug: T205753
Change-Id: I7b75485411f6b6022bdc773521fbad1366dd8643
2018-09-29 16:34:15 +00:00
Zoranzoki21
908d511562 Make messages [[MediaWiki:Config-db-web-account-same/qqq]] and [[MediaWiki:Config-db-web-create]] clearer
Bug: T205745
Bug: T205749
Change-Id: I511385b6bf64bb7326ac04a07592657a96af9bf3
2018-09-28 21:23:44 +00:00
C. Scott Ananian
1c10bfb034 Tidy and rename WebInstallerOutput::addWikiText() to addWikiTextInterface()
This change parallels the new method added to OutputPage in
Ia58910164baaca608cea3b24333b7d13ed773339 and ensures that the
content added is always tidied.  We leave the old alias in
place for now in accordance with our deprecation policy.

Change-Id: I89f3398cffa771afcd5a33cfd11eb8510af3e7f7
2018-09-25 14:47:33 -04:00
Translation updater bot
c9318f2b0f Localisation updates from https://translatewiki.net.
Change-Id: I693c5ed47ebe4326ec6c7e61f692cae48b71d8b6
2018-09-22 09:28:29 +02:00
Brian Wolff
528042054f Fix some phan-taint-check false positives
Change-Id: Ic5ccbb3f97722476bee7188b83b80cdc652d2a64
2018-09-21 17:27:44 -07:00
Translation updater bot
9aa6ed1190 Localisation updates from https://translatewiki.net.
Change-Id: If4369a94a3165a063ccc3061a6f3a5e6e6487ad5
2018-09-18 09:14:02 +02:00
Translation updater bot
fc656f07ab Localisation updates from https://translatewiki.net.
Change-Id: I0d24aaefa10d74d6ed44ac77e3fe92003b4d766d
2018-09-14 09:22:43 +02:00
Translation updater bot
3c9df3ffea Localisation updates from https://translatewiki.net.
Change-Id: Ie5096f881b1aab8b24a3bafde2adabd1e7405e36
2018-09-13 09:36:07 +02:00
Translation updater bot
0b380d0f6e Localisation updates from https://translatewiki.net.
Change-Id: I4138398bcaf37ff156f075f01ef2efc719d2dc40
2018-09-12 08:20:43 +02:00
Translation updater bot
da05cff1de Localisation updates from https://translatewiki.net.
Change-Id: Id9ce66ace073f0974d15610e14c64a565ce575dd
2018-09-10 09:07:15 +02:00
Translation updater bot
3588436058 Localisation updates from https://translatewiki.net.
Change-Id: Id50ca26cf97d5d23e50ab7f597d68827c31ac1da
2018-09-09 10:00:52 +02:00
David Barratt
c2bd4b12c7 Make Schema changes for Partial Blocks
Update the database schema so a block can be switched between a sitewide and
partial block. Also add the restrictions table for specifiying the partial
blocks.

Bug: T197144
Change-Id: I4a725312c4b980a1b14e5ca826069fa2278a5913
2018-09-07 15:25:49 -07:00
Amir Sarabadani
da9d5c2188 Schema change for reading ct_tag_id instead of ct_tag
Adding unique index on ct_tag_id and making indexes on ct_tag non unique

Bug: T193874
Change-Id: I24609c57e47308d1330a97527f4ea374d0d307ba
2018-09-04 19:29:48 +02:00
jenkins-bot
2f86f8dbb9 Merge "Don't throw an exception when waiting for replication times out" 2018-09-04 02:20:12 +00:00
Translation updater bot
d10b0444ed Localisation updates from https://translatewiki.net.
Change-Id: I344962ad1d1a66b6f552172811863e6a413a7b1b
2018-09-03 21:57:47 +02:00
Tim Starling
e8df0fbab1 Don't throw an exception when waiting for replication times out
For maintenance scripts it is usually harmful to throw an exception.
For jobs the exception was already caught and handled appropriately,
so this can continue as before. For DeferredUpdates it was extremely
harmful to throw an exception. So in the web case, reduce the timeout to
1s and continue as normal if the 1s timeout is reached. This allows the
DeferredUpdate to be throttled without being killed.

In the updater, increase the replication wait timeout to 5 minutes.
ALTER TABLE could indeed cause replication lag, but exiting the update
script with an exception will probably ruin your day. Update actions are
not necessarily efficiently restartable.

Do not call JobQueue::waitForBackups() when jobs are popped. Maybe it
makes sense to call a queue-specific replication wait function for
bulk inserts, like copyJobQueue.php, but doing it when jobs are popped
just makes no sense. Surely the worst that could happen is that the
queue would become locally empty? Removing this waitForBackups() call
avoids waiting for replication twice when JobQueueDB is used.

Bug: T201482
Change-Id: Ia820196caccf9c95007aea12175faf809800f084
2018-09-03 12:29:35 +10:00
Translation updater bot
64462df23b Localisation updates from https://translatewiki.net.
Change-Id: Idc19c609271bfddaf01ba676224307b58f1b186a
2018-09-01 22:06:17 +02:00
Aaron Schulz
27a2aceb25 Drop the transcache table from the schema
Bug: T189702
Change-Id: I3286a99165953392126fcff07d565738863de6a1
2018-08-31 19:50:49 -07:00
Translation updater bot
9f381111d5 Localisation updates from https://translatewiki.net.
Change-Id: I6a4ede0f5c74135b00c63d36f1a8fb9fb5ca323a
2018-08-27 21:55:42 +02:00
Aaron Schulz
0a07c38936 Make MysqlInstaller check if DB exists in a cleaner way
Query the information schema rather than seeing if selectDB() returns false.
This makes the installer able to handle an exception based failure mode.

Change-Id: I7912b9d3b8501fbc92cb731547ae10fa2b0176db
2018-08-24 22:49:15 -07:00
Translation updater bot
3454546327 Localisation updates from https://translatewiki.net.
Change-Id: I9ef6eb28a72cdaa58ddc91119924feddb89e78e6
2018-08-23 22:42:14 +02:00
jenkins-bot
4444f35d1d Merge "Add index on rc_this_oldid" 2018-08-17 20:45:43 +00:00