Fomafix [Wed, 20 Jun 2018 16:32:34 +0000 (18:32 +0200)]
LanguageConverter: Fix @return description
validateVariant returns null, not false.
Change-Id: I5241205da9f4d6266f09b361df856e50ddd96a7d
jenkins-bot [Wed, 20 Jun 2018 15:42:39 +0000 (15:42 +0000)]
Merge "objectcache: change "miss" to "renew" in metric name for preemptive refreshes"
jenkins-bot [Wed, 20 Jun 2018 15:30:40 +0000 (15:30 +0000)]
Merge "API: Use param-per-value for meta=filerepoinfo's friprop docs"
Aaron Schulz [Wed, 20 Jun 2018 11:43:10 +0000 (12:43 +0100)]
objectcache: change "miss" to "renew" in metric name for preemptive refreshes
This will usually let one distinguish asynchronous preemptive cache refreshes
from synchronous value recomputations due to actual cache misses.
Change-Id: I3424a89cc96a12fe283460eeaf722ee0cf299534
Brad Jorsch [Wed, 20 Jun 2018 14:08:26 +0000 (10:08 -0400)]
API: Use param-per-value for meta=filerepoinfo's friprop docs
This avoids documenting properties that may not be valid on the local
wiki, depending on which repos are actually available.
This patch also documents the other values available from repo types
available in MediaWiki core.
Bug: T197730
Change-Id: I6bf9fbf4ac29042d9f7524c6c1a5990051150cd3
jenkins-bot [Wed, 20 Jun 2018 14:06:23 +0000 (14:06 +0000)]
Merge "Improve documentation of fields in EditPage"
jenkins-bot [Wed, 20 Jun 2018 11:45:55 +0000 (11:45 +0000)]
Merge "Selenium: run Wikibase repo tests"
daniel [Tue, 19 Jun 2018 16:35:11 +0000 (18:35 +0200)]
Improve documentation of fields in EditPage
This is an attempt to clarify the semantics of several fields
and methods in EditPage that represent some kind of parent or base
revision.
Bug: T197685
Change-Id: I37b3803fc558fecc0c7b0c3cfb4ec93dce6997a5
jenkins-bot [Wed, 20 Jun 2018 05:02:12 +0000 (05:02 +0000)]
Merge "Maintenance::finalSetup: Make sure we re-create LBFactory"
Translation updater bot [Tue, 19 Jun 2018 20:02:49 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I84f0d16eb74abe7d6b1a85bb3861fd95018101b5
Marius Hoch [Tue, 19 Jun 2018 17:46:01 +0000 (19:46 +0200)]
Maintenance::finalSetup: Make sure we re-create LBFactory
This seems to work anyway (as no connections are needed at
this time), but I guess it's more robust to explicitly
destroy any existing instances.
Bug: T147169
Change-Id: Id56a62d1830fc1464a80dd4420ffddd797bf8b51
jenkins-bot [Tue, 19 Jun 2018 15:12:38 +0000 (15:12 +0000)]
Merge "mediawiki.base: Move $j alias to mediawiki.base.js"
Željko Filipin [Tue, 19 Jun 2018 15:04:09 +0000 (17:04 +0200)]
Selenium: run Wikibase repo tests
Similar to custom location of VisualEditor tests, Wikibase has tests in repo and client folders.
Bug: T180228
Change-Id: I3debe8bed9a760aea374529dbe007aa5a72421aa
Pablo Grass [Tue, 19 Jun 2018 13:31:07 +0000 (15:31 +0200)]
selenium: RecentChanges page object
Return DOM element(s) to specs instead of creating another level of
inflection and to be more in line with other implementations.
Follow-up for I916516d5055c3ce9be071a75e5c3af2b3547d4ba
Bug: T191600
Change-Id: I03b0cd4af7adca23dd34173710b995629f833a1a
jenkins-bot [Tue, 19 Jun 2018 12:32:44 +0000 (12:32 +0000)]
Merge "When encountering bad blobs, log the text row id."
daniel [Tue, 19 Jun 2018 11:37:35 +0000 (13:37 +0200)]
When encountering bad blobs, log the text row id.
Change-Id: Ie7c932f229854fd3582d507fa7cc154ffdd21f55
jenkins-bot [Tue, 19 Jun 2018 05:22:44 +0000 (05:22 +0000)]
Merge "Allow passing the default DB group to use in Maintenance scripts"
Edward Chernenko [Mon, 18 Jun 2018 22:53:52 +0000 (01:53 +0300)]
Fix PHP warnings "preg_replace(): [...] invalid range in character class"
This was spotted when running tests on Travis (PHP 7.3 nighly, trusty).
Two expressions inside preg_replace() contained non-escaped "-" inside [],
where this "-" meant an actual "-" character.
The warning is because "-" has special meaning inside [] ("a-z" for range),
and things like [\w-.] are considered "invalid range".
Solution is to escape "-" like this: [\w\-.]
Change-Id: I41cc217081f00f54d957b6d8052ee209412f5ff6
jenkins-bot [Mon, 18 Jun 2018 23:29:29 +0000 (23:29 +0000)]
Merge "Revert "Use type Language instead of string for $lang of doEditSectionLink""
Legoktm [Mon, 18 Jun 2018 23:11:17 +0000 (23:11 +0000)]
Revert "Use type Language instead of string for $lang of doEditSectionLink"
This reverts commit
531e71acdab55df6f567ef43ffaccf4615fe5e66.
Was a breaking change that did not following the deprecation
policy.
Change-Id: Idefd38e1f42ee849a09da0fc5793fb7f051b2a4c
jenkins-bot [Mon, 18 Jun 2018 23:07:17 +0000 (23:07 +0000)]
Merge "Adjust layout for saved filters empty state"
Translation updater bot [Mon, 18 Jun 2018 19:54:31 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Idafba5d45cb472eb430092517016d0666fe0f30d
Hagar Shilo [Wed, 13 Jun 2018 08:09:25 +0000 (11:09 +0300)]
Adjust layout for saved filters empty state
Bug: T191534
Change-Id: Ia3f9509dce41a7fec44c93eb02239257a491499d
jenkins-bot [Mon, 18 Jun 2018 18:07:33 +0000 (18:07 +0000)]
Merge "docs/hooks.txt: fix incorrect description of UploadForm:* hooks"
Amir Sarabadani [Mon, 18 Jun 2018 16:34:48 +0000 (18:34 +0200)]
Move lbFactory defintion from construct to execute in populateChangeTagDef
It seems the class doesn't load needed classes in construct so we get
Uncaught Error: Class 'MediaWiki\MediaWikiServices' not found
Bug: T193871
Change-Id: I0d6a49232cbc256a34ab49e8a4e41f6cc942fe4b
jenkins-bot [Mon, 18 Jun 2018 15:37:20 +0000 (15:37 +0000)]
Merge "Make ChangeTag use NameTableStore for change_tag_def table"
jenkins-bot [Mon, 18 Jun 2018 01:14:30 +0000 (01:14 +0000)]
Merge "Use type Language instead of string for $lang of doEditSectionLink"
jenkins-bot [Mon, 18 Jun 2018 01:12:07 +0000 (01:12 +0000)]
Merge "Title: Use directly Language::factory instead of wfGetLangObj"
Edward Chernenko [Wed, 30 May 2018 16:48:25 +0000 (19:48 +0300)]
docs/hooks.txt: fix incorrect description of UploadForm:* hooks
Hooks [UploadForm:BeforeProcessing] and [UploadForm:initial] get SpecialUpload
object as their parameter (NOT the UploadForm object).
Also replaced obsolete note "use UploadVerification and UploadVerifyFile"
with modern "use UploadVerifyUpload".
Change-Id: I09ac5b238c8619c94978bdc771653127d3a6264d
Fomafix [Wed, 30 May 2018 04:33:01 +0000 (06:33 +0200)]
Use type Language instead of string for $lang of doEditSectionLink
The call of wfGetLangObj( $lang ) is not necessary anymore.
Keep $lang as optional parameter to avoid the coding style check error
Required argument follows optional
Depends-On: Ibe295e7020e995eea52e319feaf59c635f8bb4dc
Change-Id: Id49201957e716ef8a2ea930b3616ca4fe6e35633
Amir Sarabadani [Thu, 14 Jun 2018 16:37:19 +0000 (18:37 +0200)]
Make ChangeTag use NameTableStore for change_tag_def table
Also adding a regression test to fix upsert AUTO_INCREMENT issue
Bug: T193868
Change-Id: I0363c93a824c41d12b33aedb05e92e1d9943c40d
Translation updater bot [Sun, 17 Jun 2018 20:00:00 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I98ff6cea4c6f300ddbe91e383d709e65da2fdcfd
Translation updater bot [Sat, 16 Jun 2018 19:52:56 +0000 (21:52 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I9c4e0d3ae69eae41d25bf120e93954d93e127037
jenkins-bot [Sat, 16 Jun 2018 17:44:06 +0000 (17:44 +0000)]
Merge "Remove inadequate render-blocking styles for jquery.tablesorter"
jenkins-bot [Sat, 16 Jun 2018 12:59:28 +0000 (12:59 +0000)]
Merge "Add maintenance to populate change_tag_def table and ct_tag_id field"
jenkins-bot [Fri, 15 Jun 2018 23:28:12 +0000 (23:28 +0000)]
Merge "Improve timeouts in MultiHttpClient"
jenkins-bot [Fri, 15 Jun 2018 23:20:20 +0000 (23:20 +0000)]
Merge "stats: Hard-deprecate BufferingStatsdDataFactory::getBuffer()"
Timo Tijhof [Fri, 15 Jun 2018 22:15:26 +0000 (23:15 +0100)]
stats: Hard-deprecate BufferingStatsdDataFactory::getBuffer()
Follows-up
7fdc3d09a3b6. Also document the getData method.
This method seems unused from a quick glance at Code Search, but
there's a lot of false positives from Monolog instances.
To play safe, rather than removing, add hard-deprecation for
a few days just in case we find another hit.
Change-Id: I8aab93744e66c1a583c67f0bbac27a45250a8fbb
jenkins-bot [Fri, 15 Jun 2018 22:12:30 +0000 (22:12 +0000)]
Merge "mw.special.contributions: Do not infuse the date input while it has user focus"
Timo Tijhof [Fri, 15 Jun 2018 21:26:48 +0000 (22:26 +0100)]
mediawiki.base: Move $j alias to mediawiki.base.js
This isn't used by mw.loader internally so it can be deferred
to the file that loads right after it (but still before any
other module).
Bug: T192623
Change-Id: I65162567f48670221861af92080ca116f52dde39
jenkins-bot [Fri, 15 Jun 2018 21:09:57 +0000 (21:09 +0000)]
Merge "resourceloader: move hook() and html() from mediawiki.js to base module"
Translation updater bot [Fri, 15 Jun 2018 20:01:30 +0000 (22:01 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I8725e92d4f6aea313e6461a4c6ef5c76e87d86ed
Aaron Schulz [Thu, 7 Jun 2018 10:54:24 +0000 (03:54 -0700)]
resourceloader: move hook() and html() from mediawiki.js to base module
Bug: T192623
Change-Id: I9c2ff828b663fdc1b0345b72c6c45289d2e2a7cf
Amir Sarabadani [Tue, 5 Jun 2018 22:59:11 +0000 (00:59 +0200)]
Add maintenance to populate change_tag_def table and ct_tag_id field
Bug: T193871
Change-Id: I5e863ffcfad5f2b66fb8d50666494acae3480d1a
jenkins-bot [Fri, 15 Jun 2018 15:49:26 +0000 (15:49 +0000)]
Merge "resourceloader: qualify $ variable in script() call to handle the case of jQuery"
jenkins-bot [Fri, 15 Jun 2018 15:46:43 +0000 (15:46 +0000)]
Merge "Make LinkCache::invalidateTitle() use the instance WAN cache"
Aaron Schulz [Fri, 8 Jun 2018 00:57:10 +0000 (17:57 -0700)]
resourceloader: qualify $ variable in script() call to handle the case of jQuery
Bug: T192623
Change-Id: Id3016dfdc32bff5b5437bf5961cde8d9f6047150
jenkins-bot [Fri, 15 Jun 2018 13:38:36 +0000 (13:38 +0000)]
Merge "Reduce frequency of refreshCounts() calls in LinksDeletionUpdate"
Brian Wolff [Fri, 15 Jun 2018 07:29:49 +0000 (07:29 +0000)]
Better logging for reauth operations
Include username and IP address in log
Change-Id: I25c6d298e50876601ccd6a906eb7a7c65d2e8d87
jenkins-bot [Fri, 15 Jun 2018 12:38:32 +0000 (12:38 +0000)]
Merge "services: Update comment mentioning non-existent method"
jenkins-bot [Fri, 15 Jun 2018 12:38:29 +0000 (12:38 +0000)]
Merge "Update grunt and grunt-contrib-watch to resolve vulnerabilities"
Timo Tijhof [Fri, 15 Jun 2018 12:18:25 +0000 (13:18 +0100)]
services: Update comment mentioning non-existent method
Follows-up
bca436db920.
Change-Id: I1e356d30912fa47799656ee8210a5fdd3d008edb
Željko Filipin [Fri, 15 Jun 2018 11:46:46 +0000 (13:46 +0200)]
Update grunt and grunt-contrib-watch to resolve vulnerabilities
`npm audit` found 27 vulnerabilities (11 low, 12 moderate, 4 high).
`npm audit fix` fixed most of them.
There are 8 vulnerabilities remaining (2 low, 6 moderate).
Bug: T194280
Change-Id: I05d80bc38d16be8249a27d94dad8e13c65139545
jenkins-bot [Fri, 15 Jun 2018 11:42:25 +0000 (11:42 +0000)]
Merge "Move getFieldsToStore to own method in NameTableStore"
Tim Starling [Fri, 15 Jun 2018 10:31:02 +0000 (20:31 +1000)]
Improve timeouts in MultiHttpClient
* PHP 7 only checks for request/connection timeout after the timeout
passed to curl_multi_select() expires. So it's necessary to use a
select timeout which is much shorter than 10s. I filed
https://bugs.php.net/bug.php?id=76480 for this.
* Use millisecond resolution timeout parameters. These have been
available since libcurl 7.16.2, released Jan 2008, available in
Debian 7, Ubuntu 14.04 and CentOS 6.
Change-Id: Ia07b824dde179b33e14b81a76d580ce547bca315
jenkins-bot [Fri, 15 Jun 2018 10:47:45 +0000 (10:47 +0000)]
Merge "Ignore order of slot roles in test assertions"
jenkins-bot [Fri, 15 Jun 2018 10:36:11 +0000 (10:36 +0000)]
Merge "RCFilters: Make active filters area collapsible"
daniel [Fri, 15 Jun 2018 09:56:36 +0000 (11:56 +0200)]
Ignore order of slot roles in test assertions
Bug: T197271
Change-Id: I1448c3907157d4d79f69f5344e6069b4f8be43bc
jenkins-bot [Fri, 15 Jun 2018 08:01:27 +0000 (08:01 +0000)]
Merge "resourceloader: Un-deprecate ClientHtml::setModuleStyles()"
addshore [Thu, 14 Jun 2018 07:36:42 +0000 (08:36 +0100)]
Move getFieldsToStore to own method in NameTableStore
In the future this opens up an easy posibility of subclassing
if this is made protected.
Change-Id: I640c9f12f52dbb3328523402d9223ee8c967adda
Aaron Schulz [Fri, 15 Jun 2018 04:00:38 +0000 (21:00 -0700)]
Make LinkCache::invalidateTitle() use the instance WAN cache
Change-Id: Idefcee9b37dcb73b2f18351123b097f4ae68fa76
jenkins-bot [Fri, 15 Jun 2018 02:55:43 +0000 (02:55 +0000)]
Merge "services: Add linebreak between regular and spread parameter"
jenkins-bot [Fri, 15 Jun 2018 00:11:14 +0000 (00:11 +0000)]
Merge "Fix flaky MessageBlobStoreTest assertion failures"
jenkins-bot [Thu, 14 Jun 2018 23:48:54 +0000 (23:48 +0000)]
Merge "Avoid deprecated LinkCache::singleton()"
jenkins-bot [Thu, 14 Jun 2018 23:26:02 +0000 (23:26 +0000)]
Merge "DefaultSettings: fix "advanced example" for $wgPasswordConfig"
Timo Tijhof [Thu, 14 Jun 2018 23:22:52 +0000 (00:22 +0100)]
services: Add linebreak between regular and spread parameter
Follows-up
1e680456b4, which removed some array_merge/call_user_func
abstraction, but improved readability a lot, but the absence of a
line break makes it slightly less obvious how and what parameters
are being passed. It's usually either comma-separated segments on
the same line that as the open parenthesis, or one expression per
line.
Change-Id: Ic388cf41ed3ed60d9b47c04392242e40cdcb69b0
Kevin Israel [Mon, 11 Jun 2018 01:45:29 +0000 (21:45 -0400)]
DefaultSettings: fix "advanced example" for $wgPasswordConfig
Follows-up
95a8974c6.
The version of EncryptedPassword that was merged doesn't use mcrypt, but
rather OpenSSL. Also, show one way of specifying the key, and remove the
"cost" option, which would instead need to be specified for the underlying
type ("bcrypt").
Change-Id: Idaaca765835656113c8f0f1e83cc7e5a2a922fa2
James D. Forrester [Thu, 14 Jun 2018 22:55:50 +0000 (15:55 -0700)]
Update OOjs to v2.2.2
Release notes:
https://gerrit.wikimedia.org/r/plugins/gitiles/oojs/core/+/v2.2.2/History.md
Change-Id: I9d442180d54b8778119d79fa07118f65e62adf78
Timo Tijhof [Thu, 14 Jun 2018 22:33:27 +0000 (23:33 +0100)]
hooks.txt: Use "array" in a sentence instead of `[]`
Follows-up
49806d37, which accidentally replaced this "array()"
with "[]".
Change-Id: Ib61e377cc66523aae2df2d42f7b3af2e5bf6c841
Timo Tijhof [Thu, 14 Jun 2018 22:09:52 +0000 (23:09 +0100)]
resourceloader: Un-deprecate ClientHtml::setModuleStyles()
This follows
80e5b160e0985, which introduced ClientHtml::setModuleScripts()
and setModuleStyles() with @deprecated marks. There was a vague intention
to remove both at some point.
The commit did not deprecate the related methods in OutputPage and ParserOutput.
The plan that eventually formed at T188689 was to keep methods relating to
"setModuleStyles" for the time being, and focus first on the removal of the
methods relating to "setModuleScripts". The latter since been properly
marked as deprecated and removal is scheduled for 1.33.
There is no current plan to deprecate/remove addModuleStyles
from OutputPage and ParserOutput. As such, the internal helper method
that makes those possible, probably shouldn't me marked as deprecated.
Bug: T188689
Change-Id: Ia36c057b73fe834bcbb2e3e8993d1a793a12ab72
jenkins-bot [Thu, 14 Jun 2018 20:23:36 +0000 (20:23 +0000)]
Merge "resourceloader: move track() from mediawiki.js to the base module"
Translation updater bot [Thu, 14 Jun 2018 20:14:20 +0000 (22:14 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I693bcc8f16293b435b4b334d0c48e09671f73d36
Aaron Schulz [Thu, 7 Jun 2018 06:23:07 +0000 (23:23 -0700)]
resourceloader: move track() from mediawiki.js to the base module
Handlers will not run until the base module is loaded. The track()
method in the loader is upgraded to fire the handlers once the base
module loads.
Refactor the exception logging bits to call logError more directly
instead of subscribing a logging handler to the event queue.
Bug: T192623
Change-Id: I2372bbf70a8775c7ce4c2c78c5edccf1195a9875
jenkins-bot [Thu, 14 Jun 2018 19:36:02 +0000 (19:36 +0000)]
Merge "maintenance: Update update-oojs.sh to use misc files from package"
Timo Tijhof [Thu, 14 Jun 2018 17:23:33 +0000 (19:23 +0200)]
maintenance: Update update-oojs.sh to use misc files from package
These are already included in the package. Using them from the dist/
directory is somewhat against the way things are normally done in NPM,
given the repository itself already becomes the package.
If we were building a separate directory for a tarball, that
would make more sense, but that isn't the case.
Note: In verions prior to OOjs v2.2.1, all files were included in the package,
version v2.2.1 added the 'files' whitelist which included only dist/, LICENSE*,
README*, History* and package.json, which in particular means AUTHORS.txt
is missing. This was fixed in v2.2.2 on the same day. MediaWiki will upgrade
from v2.2.0 to v2.2.2 directly.
Change-Id: I4bd91811c754addac6c9826e91580eff47c7c5d6
Ed Sanders [Thu, 14 Jun 2018 18:41:29 +0000 (19:41 +0100)]
jqueryMsg: Add missing '$' prefix to jQuery collection variables
Change-Id: Ic39ca379c373e43d885f6ac9df746e25f744f9d9
Moriel Schottlender [Wed, 13 Jun 2018 01:57:48 +0000 (18:57 -0700)]
RCFilters: Make active filters area collapsible
Bug: T177206
Change-Id: I32547b71fe1b9d91fe42ea924f28fb1036781438
jenkins-bot [Thu, 14 Jun 2018 16:06:00 +0000 (16:06 +0000)]
Merge "Introduce argument for insert callback in NameTableStore"
Amir Sarabadani [Mon, 11 Jun 2018 10:52:31 +0000 (12:52 +0200)]
Introduce argument for insert callback in NameTableStore
This will be useful in cases we need to define more data
when inserting a new row
Bug: T193868
Change-Id: Ib5c2da2ef951e0bc782847ff8bd4606681ee2196
jenkins-bot [Thu, 14 Jun 2018 15:50:26 +0000 (15:50 +0000)]
Merge "MCR RevisionStore, multi content mode.."
jenkins-bot [Thu, 14 Jun 2018 15:44:18 +0000 (15:44 +0000)]
Merge "Make LocalFile file locking calls use Status::wrap"
jenkins-bot [Thu, 14 Jun 2018 15:39:38 +0000 (15:39 +0000)]
Merge "EditPage::getContextTitle(): Deprecate falling back to $wgTitle"
addshore [Tue, 17 Apr 2018 07:49:20 +0000 (08:49 +0100)]
MCR RevisionStore, multi content mode..
Bug: T174024
Change-Id: Ifabf39e12ba843eb754ad0c029b7d16a311047a5
James D. Forrester [Tue, 12 Jun 2018 17:44:44 +0000 (10:44 -0700)]
EditPage::getContextTitle(): Deprecate falling back to $wgTitle
Bug: T176526
Change-Id: I7b692def1695119291b26b2f2d25064af9e621f7
jenkins-bot [Thu, 14 Jun 2018 15:23:11 +0000 (15:23 +0000)]
Merge "Prepare newNullRevision for MCR."
jenkins-bot [Thu, 14 Jun 2018 15:23:09 +0000 (15:23 +0000)]
Merge "Tests for preserving content ID and origin during undeletion"
daniel [Wed, 9 May 2018 10:06:51 +0000 (12:06 +0200)]
Prepare newNullRevision for MCR.
Bug: T174024
Change-Id: I8c607ed666295a5072c4fbfad1cf91d74d743abb
jenkins-bot [Thu, 14 Jun 2018 14:54:53 +0000 (14:54 +0000)]
Merge "rdbms: avoid redundant SPI logging fields in ChronologyProtector log entries"
jenkins-bot [Thu, 14 Jun 2018 14:11:27 +0000 (14:11 +0000)]
Merge "[MCR] RevisionStore, enable insertions for new schema"
jenkins-bot [Thu, 14 Jun 2018 13:56:39 +0000 (13:56 +0000)]
Merge "Preferences: Allow only languages with translations in user options"
jenkins-bot [Thu, 14 Jun 2018 13:56:36 +0000 (13:56 +0000)]
Merge "Replace deprecated language codes in user options"
daniel [Tue, 10 Apr 2018 15:31:33 +0000 (17:31 +0200)]
Tests for preserving content ID and origin during undeletion
Bug: T194015
Change-Id: I6d9a1390c7080d910d43097afb703d13cd500c1b
addshore [Mon, 29 Jan 2018 15:54:02 +0000 (15:54 +0000)]
[MCR] RevisionStore, enable insertions for new schema
Enable inserts to the new MCR db schema in single slot mode only.
TODO:
- RELEASE NOTES
Notes:
- When in MIGRATION_WRITE_NEW or greater, deleting and then
restoring a page will result in different data in the revision table.
For example, if you delete a page that has text_ids present in the
revision table and restore it, the text_ids will be blank after.
- When in MIGRATION_WRITE_BOTH or greater the archive table will
start to ar_content_model entries where previously it would have been
given NULL. This is due to the old content schema having NULL in the db
when the default content model is used, but the new schema will always
have a value, taken from the content_models table
Note: If259b1e1c49ce was squashed into this change.
Bug: T183488
Bug: T174024
Change-Id: Ic2221da30c8f6ac2ba42720fcd568f2d0ed70534
Fomafix [Sat, 24 Feb 2018 14:49:46 +0000 (15:49 +0100)]
Preferences: Allow only languages with translations in user options
This change allows only language codes with translations for the user
option 'language'. This restrict the selectable values in the
preferences and also prevents setting the user option via API.
With the URL parameter 'uselang' the user interface language can
still set to a language code without translation.
In the current situation this change will remove the following language
codes from the allowed values:
> print '* ' . implode( "\n* ", array_diff(
array_keys( Language::fetchLanguageNames( null, 'mw' ) ),
array_keys( Language::fetchLanguageNames( null, 'mwfile' ) )
) );
* aa
* als
* bat-smg
* be-x-old
* cho
* fiu-vro
* ho
* hz
* kj
* kr
* mh
* mus
* ng
* no
* rn
* roa-rup
* shi-latn
* shi-tfng
* simple
* tum
* uz-cyrl
* uz-latn
* zh-classical
* zh-min-nan
* zh-yue
The change I1dd6fb1f240ce3319b132d0f29f0622fba33e655 ensures that the
deprecated language codes get replaced by the new language codes. The
other untranslated language codes get replaced by the content language
codes when the user loads the preferences.
Bug: T118199
Change-Id: I1382996b031af3fe9f6e1568beeb6376dcbcd217
Fomafix [Mon, 28 Mar 2016 08:22:43 +0000 (08:22 +0000)]
Replace deprecated language codes in user options
This change replaces deprecated language codes in the user options by
the new language codes when loading the user setting from database.
The database entry for the user gets updated with the new language code
when the user saves the preferences.
Bug: T131042
Change-Id: I1dd6fb1f240ce3319b132d0f29f0622fba33e655
daniel [Sat, 27 Jan 2018 01:48:19 +0000 (17:48 -0800)]
[MCR] Factor PageUpdater out of WikiPage
This introduces PageUpdater to replace WikiPage::doEditContent,
and DerivedPageDataUpdater, to replace WikiPage::doEditUpdates
and WikiPage::prepareContentForEdit.
See docs/pageupdater.txt for a description of their
functionality.
MCR migration notes:
* The interface of PageUpdater is expected to
remain mostly stable after this patch. Code that has been using
WikiPage::doEditContent can be confidently migrated to using the
new mechanism for revision creation.
* This patch keeps the code inside PageUpdater largely aligned
with the old code in WikiPage, to make review easier to to avoid
mistakes. It is intended to be refactored further, moving
application logic into stateless services.
* DerivedPageDataUpdate is intended as a stepping stone for further
refactoring. Its behavior is designed to be compatible with
callback code that currently relies on
WikiPage::prepareContentForEdit. Much of the code that currently
lives in DerivedPageDataUpdate should be factored out into
services, all behavior relevant to calling code should be exposed
via narrow interfaces.
Bug: T174038
Bug: T196653
Change-Id: If610c68f4912e89af616cdcac1d35a1be3946afa
jenkins-bot [Thu, 14 Jun 2018 11:44:06 +0000 (11:44 +0000)]
Merge "Fix typo in method documentation"
jenkins-bot [Thu, 14 Jun 2018 09:03:07 +0000 (09:03 +0000)]
Merge "Add @since tags to come MediaWikiTestCase methods"
Niklas Laxström [Thu, 14 Jun 2018 08:47:08 +0000 (10:47 +0200)]
Fix typo in method documentation
Change-Id: I891f9725acfac993966238abff255e59e9aee07a
jenkins-bot [Thu, 14 Jun 2018 07:56:10 +0000 (07:56 +0000)]
Merge "Suppress addCoreDBData() in tests overriding the revision schema."