lhc/web/wiklou.git
4 years agoMerge "Remove single-item HTML list for re-upload link"
jenkins-bot [Thu, 8 Aug 2019 01:14:53 +0000 (01:14 +0000)]
Merge "Remove single-item HTML list for re-upload link"

4 years agordbms: remove references to SQL_CACHE/SQL_NOCACHE
Aaron Schulz [Wed, 7 Aug 2019 22:06:43 +0000 (15:06 -0700)]
rdbms: remove references to SQL_CACHE/SQL_NOCACHE

Change-Id: I4bace17f7f5171eea9bbf13e7f40fd7027a1ce35

4 years agordbms: update LOCK IN SHARE MODE in IDatabase to reflect the level of support
Aaron Schulz [Wed, 7 Aug 2019 20:47:23 +0000 (13:47 -0700)]
rdbms: update LOCK IN SHARE MODE in IDatabase to reflect the level of support

Change-Id: I45eb27ffd105e9ca2c1bd9967c6db2719c835b27

4 years agordbms: remove HIGH_PRIORITY/LOW_PRIORITY SQL references from IDatabase
Aaron Schulz [Wed, 7 Aug 2019 20:44:06 +0000 (13:44 -0700)]
rdbms: remove HIGH_PRIORITY/LOW_PRIORITY SQL references from IDatabase

These should not be used even with MySQL as they do not help concurrency

Change-Id: I5385fcbe65e676b184268286bedd5c2299b447d4

4 years agoMerge "DevelopmentSettings: Clarify grouping of settings and purpose"
jenkins-bot [Wed, 7 Aug 2019 21:54:25 +0000 (21:54 +0000)]
Merge "DevelopmentSettings: Clarify grouping of settings and purpose"

4 years agoRemove single-item HTML list for re-upload link
Sam Wilson [Wed, 7 Aug 2019 21:09:57 +0000 (05:09 +0800)]
Remove single-item HTML list for re-upload link

The 'upload links box' only contains a single link (or message),
so there's no need for it to be a list. This also adds a top-level
class to this box, for easier CSS/JS selecting.

Change-Id: I3967eea82dcd63a3e161daa13e49204e4d6dde97

4 years agoMerge "Create Special:NewSection special page"
jenkins-bot [Wed, 7 Aug 2019 20:24:41 +0000 (20:24 +0000)]
Merge "Create Special:NewSection special page"

4 years agoMerge "ChangesListSpecialPage: skip associated for namespaces that don't have one."
jenkins-bot [Wed, 7 Aug 2019 19:14:10 +0000 (19:14 +0000)]
Merge "ChangesListSpecialPage: skip associated for namespaces that don't have one."

4 years agoMerge "resourceloader: Consider 'packagesFiles' in FileModule's canBeStylesOnly"
jenkins-bot [Wed, 7 Aug 2019 18:36:23 +0000 (18:36 +0000)]
Merge "resourceloader: Consider 'packagesFiles' in FileModule's canBeStylesOnly"

4 years agoMerge "filebackend: deprecate FileBackend::getWikiId()"
jenkins-bot [Wed, 7 Aug 2019 17:50:22 +0000 (17:50 +0000)]
Merge "filebackend: deprecate FileBackend::getWikiId()"

4 years agoMerge "objectcache: fix failing tests for non-HashBagOStuff backends"
jenkins-bot [Wed, 7 Aug 2019 17:22:57 +0000 (17:22 +0000)]
Merge "objectcache: fix failing tests for non-HashBagOStuff backends"

4 years agoMerge "Clean up use of IDatabase::affectedRows() in WikiPage::updateRedirectOn()"
jenkins-bot [Wed, 7 Aug 2019 17:22:50 +0000 (17:22 +0000)]
Merge "Clean up use of IDatabase::affectedRows() in WikiPage::updateRedirectOn()"

4 years agoMerge "ChangeTags: turn private getPrevTags() into public getTags()"
jenkins-bot [Wed, 7 Aug 2019 17:22:44 +0000 (17:22 +0000)]
Merge "ChangeTags: turn private getPrevTags() into public getTags()"

4 years agoChangesListSpecialPage: skip associated for namespaces that don't have one.
Petr Pchelko [Tue, 6 Aug 2019 19:23:21 +0000 (12:23 -0700)]
ChangesListSpecialPage: skip associated for namespaces that don't have one.

Bug: T229954
Change-Id: Ic69989c3ac60a86d58842ec34dc9e883988d785f

4 years agoMerge "rdbms: allow automatic PDO creation of SQLite database files"
jenkins-bot [Wed, 7 Aug 2019 15:47:50 +0000 (15:47 +0000)]
Merge "rdbms: allow automatic PDO creation of SQLite database files"

4 years agoMerge "objectcache: avoid using deprecated phpredis::delete() alias"
jenkins-bot [Wed, 7 Aug 2019 15:14:08 +0000 (15:14 +0000)]
Merge "objectcache: avoid using deprecated phpredis::delete() alias"

4 years agoresourceloader: Consider 'packagesFiles' in FileModule's canBeStylesOnly
Roan Kattouw [Wed, 7 Aug 2019 10:04:24 +0000 (03:04 -0700)]
resourceloader: Consider 'packagesFiles' in FileModule's canBeStylesOnly

A module with packageFiles should never be considered a styles-only
module.

Change-Id: I92f0d2f31656858d8dd00c73c4d9d7da329582a4

4 years agoMerge "Add talk namespace option to Special:NewPages"
jenkins-bot [Wed, 7 Aug 2019 14:43:01 +0000 (14:43 +0000)]
Merge "Add talk namespace option to Special:NewPages"

4 years agoDevelopmentSettings: Clarify grouping of settings and purpose
Timo Tijhof [Wed, 7 Aug 2019 14:22:03 +0000 (15:22 +0100)]
DevelopmentSettings: Clarify grouping of settings and purpose

Change-Id: Ia0fc063eb2679b466e19e6dabaf1f4bea7d6bb20

4 years agoMerge "Revert "Add small HtmlCacheUpdater service class to normalize purging code""
Krinkle [Wed, 7 Aug 2019 14:21:58 +0000 (14:21 +0000)]
Merge "Revert "Add small HtmlCacheUpdater service class to normalize purging code""

4 years agofilebackend: deprecate FileBackend::getWikiId()
Aaron Schulz [Fri, 5 Jul 2019 01:20:35 +0000 (18:20 -0700)]
filebackend: deprecate FileBackend::getWikiId()

Change-Id: Ib593178e95c572c28c873645128ef85513ef2de7

4 years agoobjectcache: fix failing tests for non-HashBagOStuff backends
Aaron Schulz [Fri, 26 Jul 2019 19:33:40 +0000 (15:33 -0400)]
objectcache: fix failing tests for non-HashBagOStuff backends

Use real time for testing absolute expirations with changeTTL().
Otherwise, backends like memcached or redis will fail since
they do not use the mock time.

Also:
* Make SqlBagOStuff actually override changeTTLMulti() by
  using the right method name
* Check TTL_INDEFINITE more explicitly for clarity
* Rename TTL conversion methods for clarity
* Use isRelativeExpiration() in MemcachedBagOStuff

Change-Id: I9365ceb31d4e7bef65906363d42b8c3020a66346

4 years agoClean up use of IDatabase::affectedRows() in WikiPage::updateRedirectOn()
Aaron Schulz [Wed, 31 Jul 2019 02:18:11 +0000 (22:18 -0400)]
Clean up use of IDatabase::affectedRows() in WikiPage::updateRedirectOn()

Bug: T229456
Change-Id: Ibce207904375a762943dff3352db7affd13c1aaa

4 years agoRevert "Add small HtmlCacheUpdater service class to normalize purging code"
Daniel Kinzler [Wed, 7 Aug 2019 13:56:30 +0000 (13:56 +0000)]
Revert "Add small HtmlCacheUpdater service class to normalize purging code"

This reverts commit 35da1bbd7cb8b4414c4fbcf331473f1024bc638d.

Reason for revert: wrong tab, wrong patch. Ooops.

Change-Id: I5828fff6308d43460a3b2b10f60996409181f8b3

4 years agoMerge "Add small HtmlCacheUpdater service class to normalize purging code"
Daniel Kinzler [Wed, 7 Aug 2019 13:53:17 +0000 (13:53 +0000)]
Merge "Add small HtmlCacheUpdater service class to normalize purging code"

4 years agoChangeTags: turn private getPrevTags() into public getTags()
Lucas Werkmeister [Wed, 7 Aug 2019 13:12:47 +0000 (15:12 +0200)]
ChangeTags: turn private getPrevTags() into public getTags()

This makes the most convenient way to get all the change tags for a
given recent change, revision, and/or log entry public. The database is
injected as an additional parameter so that callers can choose to read
from a replica, and the revision and log ID parameters are swapped for
consistency with other methods in the same class. Also, while we’re
already touching the method, let’s extract the change_tag_def store.

Change-Id: Id8f14044ba5d926447aedd60e8cc8eb7dc864899

4 years agoobjectcache: avoid using deprecated phpredis::delete() alias
Aaron Schulz [Thu, 1 Aug 2019 20:16:39 +0000 (16:16 -0400)]
objectcache: avoid using deprecated phpredis::delete() alias

Change-Id: I3ca8bd9160eefff6590228082f030a32d0edb511

4 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 7 Aug 2019 06:38:35 +0000 (08:38 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I75e924d7b9d088cd8f705b56c90e038e6407cadd

4 years agordbms: allow automatic PDO creation of SQLite database files
Aaron Schulz [Sat, 20 Jul 2019 19:42:14 +0000 (12:42 -0700)]
rdbms: allow automatic PDO creation of SQLite database files

Define missing DatabaseSqlite::doSelectDomain() method to handle attempts
to change the database, prefix, and/or schema.

Also add sanity check to serverIsReadOnly() to make sure open() was called

Change-Id: I72c25bf4dab5e01def3fb9472217e7637aede1d4

4 years agoMerge "Fix param doc of ChangeTagsList::updateChangeTagsOnAll"
jenkins-bot [Tue, 6 Aug 2019 23:15:54 +0000 (23:15 +0000)]
Merge "Fix param doc of ChangeTagsList::updateChangeTagsOnAll"

4 years agoMerge "Pass message arguments as array to ErrorPageError"
jenkins-bot [Tue, 6 Aug 2019 23:14:53 +0000 (23:14 +0000)]
Merge "Pass message arguments as array to ErrorPageError"

4 years agoMerge "mediawiki.page.gallery.slideshow: Avoid manual Deferred wrapping"
jenkins-bot [Tue, 6 Aug 2019 22:52:34 +0000 (22:52 +0000)]
Merge "mediawiki.page.gallery.slideshow: Avoid manual Deferred wrapping"

4 years agoMerge "Add type hints for class properties in SpecialVersion"
jenkins-bot [Tue, 6 Aug 2019 22:18:01 +0000 (22:18 +0000)]
Merge "Add type hints for class properties in SpecialVersion"

4 years agoAdd small HtmlCacheUpdater service class to normalize purging code
Aaron Schulz [Fri, 15 Mar 2019 00:23:26 +0000 (17:23 -0700)]
Add small HtmlCacheUpdater service class to normalize purging code

The purge() method handles purging of both file cache and CDN, using
a PRESEND deferred update. This avoids code duplication and missing
file cache purge calls.

Also:
* Migrate HTMLCacheUpdate callers to just directly using HTMLCacheUpdateJob
* Add HtmlFileCacheUpdate class and defer such updates just like with CDN
* Simplify HTMLCacheUpdate constructor parameters
* Remove BacklinkCache::clear() calls which do nothing since the backlink
  query does not actually happen until the job runs

Change-Id: Ic453b189a40109a73a9426538608eea87a76befa

4 years agoFix description for $wgGalleryOptions in DefaultSettings.php
Umherirrender [Tue, 6 Aug 2019 19:07:04 +0000 (21:07 +0200)]
Fix description for $wgGalleryOptions in DefaultSettings.php

Falsy change from Ib0d92e128e7b882bb5b838bd00c74fc16ef14303

Change-Id: Ia66be38c26f1bfa3da5c8100e59f986fe1f87c36

4 years agoMerge "revisionstore: clean up redundant DB connection code in RevisionStore"
jenkins-bot [Tue, 6 Aug 2019 13:52:50 +0000 (13:52 +0000)]
Merge "revisionstore: clean up redundant DB connection code in RevisionStore"

4 years agomediawiki.page.gallery.slideshow: Avoid manual Deferred wrapping
Timo Tijhof [Tue, 6 Aug 2019 13:00:17 +0000 (14:00 +0100)]
mediawiki.page.gallery.slideshow: Avoid manual Deferred wrapping

* Use then(), which automatically forwards errors, instead of manually
  forwarding fail() to d.reject(). This also ensures that any
  errors in the done() or fail() handler themselves are caught and reject
  the returned Deferred – instead of an causing the Deferred to indefinely
  be in the "pending" state.

* Use then(), which makes the code consistently asynchronous,
  instead of sometimes sync and sometimes async.

* Use then() for forward-compat with native ES6 Promise.

Change-Id: I58fb6ec23fb4056fe2bbb146ff4225dea9d9f379

4 years agoMerge "watchlist: cleanup WatchedItemStore PhpStorm warnings"
jenkins-bot [Tue, 6 Aug 2019 11:55:55 +0000 (11:55 +0000)]
Merge "watchlist: cleanup WatchedItemStore PhpStorm warnings"

4 years agowatchlist: cleanup WatchedItemStore PhpStorm warnings
Aaron Schulz [Tue, 6 Aug 2019 03:26:48 +0000 (23:26 -0400)]
watchlist: cleanup WatchedItemStore PhpStorm warnings

Change-Id: I21bcc41781744f0fd323b8c46f4a71b4fc040eff

4 years agoFollow-up I3d56d5db5: Add release notes entry
Paladox [Mon, 8 Jul 2019 22:02:15 +0000 (22:02 +0000)]
Follow-up I3d56d5db5: Add release notes entry

Change-Id: Id836481ade41fdc0ea9951574677407f73f2611a
(cherry picked from commit cf21cda12cf03f5532b103bc7678fba6299afaed)

4 years agoMerge "mediawiki.page.ready: Simplify logout code"
jenkins-bot [Mon, 5 Aug 2019 22:52:06 +0000 (22:52 +0000)]
Merge "mediawiki.page.ready: Simplify logout code"

4 years agoMerge "Clean up spacing of doc comments"
jenkins-bot [Mon, 5 Aug 2019 22:51:10 +0000 (22:51 +0000)]
Merge "Clean up spacing of doc comments"

4 years agoMerge "ResourceLoaderClientHtml: Simplify code"
jenkins-bot [Mon, 5 Aug 2019 22:44:00 +0000 (22:44 +0000)]
Merge "ResourceLoaderClientHtml: Simplify code"

4 years agoClean up spacing of doc comments
Umherirrender [Mon, 5 Aug 2019 17:00:00 +0000 (19:00 +0200)]
Clean up spacing of doc comments

Align the doc stars and normalize start and end tokens

Change-Id: Ib0d92e128e7b882bb5b838bd00c74fc16ef14303

4 years agomediawiki.page.ready: Simplify logout code
Fomafix [Sun, 4 Aug 2019 13:10:11 +0000 (15:10 +0200)]
mediawiki.page.ready: Simplify logout code

* Use location.href instead of window.location.
  (Better static analysis, and theoretically quicker lookup)
* Initialize variable on declaration.
* Use .then() instead of .done().fail().

Change-Id: If007ae9bad37461cf1a1b51bd4d21281d7778254

4 years agoMerge "resourceloader: Move mw.libs and mw.widgets from startup to mediawiki.base"
jenkins-bot [Mon, 5 Aug 2019 22:11:25 +0000 (22:11 +0000)]
Merge "resourceloader: Move mw.libs and mw.widgets from startup to mediawiki.base"

4 years agoMerge "resourceloader: Merge mediawiki.legacy.wikibits into mediawiki.base"
jenkins-bot [Mon, 5 Aug 2019 22:10:01 +0000 (22:10 +0000)]
Merge "resourceloader: Merge mediawiki.legacy.wikibits into mediawiki.base"

4 years agoMerge "resourceloader: Minor optims in startup JS"
jenkins-bot [Mon, 5 Aug 2019 22:09:55 +0000 (22:09 +0000)]
Merge "resourceloader: Minor optims in startup JS"

4 years agoMerge "Improve log entries display in change lists"
jenkins-bot [Mon, 5 Aug 2019 20:59:21 +0000 (20:59 +0000)]
Merge "Improve log entries display in change lists"

4 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 5 Aug 2019 20:13:06 +0000 (22:13 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id08ec6c7c9efffd82de8cae27fdd9fa6e0e0f900

4 years agoMerge "Add explanatory comment to unexpected line of code"
jenkins-bot [Mon, 5 Aug 2019 19:24:54 +0000 (19:24 +0000)]
Merge "Add explanatory comment to unexpected line of code"

4 years agoImprove log entries display in change lists
jdlrobson [Mon, 5 Aug 2019 19:08:57 +0000 (12:08 -0700)]
Improve log entries display in change lists

Log entries are wrapped with parenthesis - not hardcoded into HTML
causing stray brackets in Minerva where this element is floated.
Has no impact on other skins

In addition to this the entire log entry item is wrapped in a new
span mw-changeslist-log-entry to ensure the text is recognised
as a whole entity - on Minerva floats were leading to the action
and the action object being separated (e.g. uploaded and "File:Name
were separated

Bug: T229360
Change-Id: Idae997b15f68bb0dfcaa857f7458ba3497233d41

4 years agoMerge "move rcfilters scroll logic to better support mobile mode"
jenkins-bot [Mon, 5 Aug 2019 19:21:53 +0000 (19:21 +0000)]
Merge "move rcfilters scroll logic to better support mobile mode"

4 years agoResourceLoaderClientHtml: Simplify code
Fomafix [Mon, 5 Aug 2019 18:59:08 +0000 (20:59 +0200)]
ResourceLoaderClientHtml: Simplify code

* Use nowdoc instead of heredoc syntax where variable expansion is not
  wanted.
* Combine code paths for debug mode and normal mode.

Change-Id: Ic70d82aaec6396a31783e5a60419409f08c4ef73

4 years agoAdd explanatory comment to unexpected line of code
jdlrobson [Mon, 5 Aug 2019 18:29:53 +0000 (11:29 -0700)]
Add explanatory comment to unexpected line of code

Bug: T229360
Change-Id: Ia3faab708925c4ea98ebc91cda79ba82ce8524e8

4 years agoMerge "rcfilters mobile cleanup"
jenkins-bot [Mon, 5 Aug 2019 18:38:39 +0000 (18:38 +0000)]
Merge "rcfilters mobile cleanup"

4 years agoMerge "Code style cleanups to FileBackendGroup"
jenkins-bot [Mon, 5 Aug 2019 18:27:24 +0000 (18:27 +0000)]
Merge "Code style cleanups to FileBackendGroup"

4 years agoMerge "Make LinksUpdate no longer extend EnqueueableDataUpdate"
jenkins-bot [Mon, 5 Aug 2019 17:36:51 +0000 (17:36 +0000)]
Merge "Make LinksUpdate no longer extend EnqueueableDataUpdate"

4 years agoMake LinksUpdate no longer extend EnqueueableDataUpdate
Aaron Schulz [Fri, 12 Jul 2019 04:32:54 +0000 (21:32 -0700)]
Make LinksUpdate no longer extend EnqueueableDataUpdate

LinksUpdate does not match RefreshLinksJob since the former is only a subset
of the later. Also, DeferredUpdates::doUpdates() only runs in "enqueue" mode
for cases in MediaWiki::restInPeace() if there is no post-send support.

In a future commit, the deferred callback in which LinksUpdate runs
currently, will be abstracted into its own deferred update, which
will then bring back EnqueueableDataUpdate for this update.

Bug: T206283
Change-Id: I0680be445e8b8e8d0dba85df135b84640f4fcb81

4 years agomove rcfilters scroll logic to better support mobile mode
Jan Drewniak [Mon, 5 Aug 2019 16:55:08 +0000 (18:55 +0200)]
move rcfilters scroll logic to better support mobile mode

Moves the logic that scrolls the rcfilters search input into view
from the onInputFocus callback to the onMenuToggle callback.

This allows the scroll behaviour to be triggered on mobile when
you tap the active filters area, and prevents the scroll behaviour
from triggering when the menu closes on mobile.

Bug: T229360
Change-Id: I1ca5c59e16a5dc6c6f473bbf3825a3e7c1e0f28e

4 years agoMerge "OutputPage: Remove 'html5shiv' module from RL registration"
jenkins-bot [Mon, 5 Aug 2019 15:29:16 +0000 (15:29 +0000)]
Merge "OutputPage: Remove 'html5shiv' module from RL registration"

4 years agoMerge "Remove old comment and unused setting"
jenkins-bot [Mon, 5 Aug 2019 15:19:01 +0000 (15:19 +0000)]
Merge "Remove old comment and unused setting"

4 years agoMerge "Avoid error in querypage API when there's no value field"
jenkins-bot [Mon, 5 Aug 2019 14:55:11 +0000 (14:55 +0000)]
Merge "Avoid error in querypage API when there's no value field"

4 years agoMerge "rdbms: update ILBFactory comments and simplify LoadBalancer "load" code a...
jenkins-bot [Mon, 5 Aug 2019 14:55:05 +0000 (14:55 +0000)]
Merge "rdbms: update ILBFactory comments and simplify LoadBalancer "load" code a bit"

4 years agoMerge "rdbms: In the query log, show the server name in the message"
jenkins-bot [Mon, 5 Aug 2019 14:43:08 +0000 (14:43 +0000)]
Merge "rdbms: In the query log, show the server name in the message"

4 years agoRemove old comment and unused setting
Adam Wight [Mon, 5 Aug 2019 14:29:51 +0000 (16:29 +0200)]
Remove old comment and unused setting

Change-Id: I813c90197ba0fc76d493a47f83107ba4bb8dff2a

4 years agoMerge "selenium: stop running extensions/skins specs"
jenkins-bot [Mon, 5 Aug 2019 14:23:09 +0000 (14:23 +0000)]
Merge "selenium: stop running extensions/skins specs"

4 years agordbms: update ILBFactory comments and simplify LoadBalancer "load" code a bit
Aaron Schulz [Tue, 23 Jul 2019 00:05:40 +0000 (17:05 -0700)]
rdbms: update ILBFactory comments and simplify LoadBalancer "load" code a bit

Change-Id: I391a2f873c623b3086703a9b078def40363d9520

4 years agorcfilters mobile cleanup
Jan Drewniak [Thu, 1 Aug 2019 15:31:35 +0000 (17:31 +0200)]
rcfilters mobile cleanup

- ensure the advanced filters are hidden when clicking the "hide/show" button
- prevent horizontal scrolling of the "saved filters" and
  "other review tools" buttons on small screens.

Bug: T229360
Change-Id: I445df9124a6bb520dcf49b245f0a8392bf723c08

4 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 5 Aug 2019 06:20:20 +0000 (08:20 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I8dfd153ca5be10f42e616ed11039f8e3fc8b7e46

4 years agorevisionstore: clean up redundant DB connection code in RevisionStore
Aaron Schulz [Sun, 4 Aug 2019 14:50:50 +0000 (10:50 -0400)]
revisionstore: clean up redundant DB connection code in RevisionStore

Change-Id: If9c2391046936862bee05cfbd8cdc9440347071c

4 years agoMerge "changes: Avoid use of deprecated method Revision::userCanBitfield()"
jenkins-bot [Sat, 3 Aug 2019 23:07:46 +0000 (23:07 +0000)]
Merge "changes: Avoid use of deprecated method Revision::userCanBitfield()"

4 years agochanges: Avoid use of deprecated method Revision::userCanBitfield()
Derick Alangi [Thu, 25 Jul 2019 12:47:57 +0000 (13:47 +0100)]
changes: Avoid use of deprecated method Revision::userCanBitfield()

Revision::userCanBitfield() is deprecated and RevisionRecord should
be used instead.

Change-Id: I0d6ad6863be520d3264809be69532dfb2e3dab9a

4 years agoresourceloader: Merge mediawiki.legacy.wikibits into mediawiki.base
Timo Tijhof [Fri, 2 Aug 2019 19:30:11 +0000 (20:30 +0100)]
resourceloader: Merge mediawiki.legacy.wikibits into mediawiki.base

Still executed under the same conditional, but no longer exposed
as its own public module bundle.

Change-Id: Ifba3a73b184ce02eeeeb2ccce6d4aece732dea13

4 years agoOutputPage: Remove 'html5shiv' module from RL registration
Timo Tijhof [Sat, 3 Aug 2019 21:45:48 +0000 (22:45 +0100)]
OutputPage: Remove 'html5shiv' module from RL registration

Follows-up 66a011797d8e2fd, which changed the reference to this
JS file to be without the indirection of ResourceLoader.
It's been deployed well over the needed 7 days, so this can be
removed now.

Change-Id: I823c0b31c4478e5e34f4191d851b6a9c83a6019b

4 years agoMerge "resourceloader: Remove unused 'getBaseModulesInternal' internal method"
jenkins-bot [Sat, 3 Aug 2019 02:28:10 +0000 (02:28 +0000)]
Merge "resourceloader: Remove unused 'getBaseModulesInternal' internal method"

4 years agoMerge "Use `text` element for current content model on Special:ChangeContentModel"
jenkins-bot [Fri, 2 Aug 2019 23:10:50 +0000 (23:10 +0000)]
Merge "Use `text` element for current content model on Special:ChangeContentModel"

4 years agoMerge "Convert maintenance scripts to LoadBalancer::getMaintenanceConnectionRef()"
jenkins-bot [Fri, 2 Aug 2019 22:52:23 +0000 (22:52 +0000)]
Merge "Convert maintenance scripts to LoadBalancer::getMaintenanceConnectionRef()"

4 years agoConvert maintenance scripts to LoadBalancer::getMaintenanceConnectionRef()
Aaron Schulz [Sun, 21 Jul 2019 08:08:11 +0000 (01:08 -0700)]
Convert maintenance scripts to LoadBalancer::getMaintenanceConnectionRef()

Change-Id: I8944a052f51a1941ad3b76a40fc9c46d1363c426

4 years agoUse `text` element for current content model on Special:ChangeContentModel
DannyS712 [Fri, 2 Aug 2019 22:16:54 +0000 (22:16 +0000)]
Use `text` element for current content model on Special:ChangeContentModel

Change-Id: I6881154fa5baf4d55634c691c45596f49e2cd4b0

4 years agoMove WANObjectCache to wancache/ instead of WinCache
Aaron Schulz [Fri, 2 Aug 2019 22:01:53 +0000 (18:01 -0400)]
Move WANObjectCache to wancache/ instead of WinCache

Follow up 6ca3de5fa0.

Change-Id: I7021dfe5c900f810ab3b6dc701a04e2c3e1c4c66

4 years agoMerge "Show current content model on Special:ChangeContentModel"
jenkins-bot [Fri, 2 Aug 2019 20:38:49 +0000 (20:38 +0000)]
Merge "Show current content model on Special:ChangeContentModel"

4 years agoShow current content model on Special:ChangeContentModel
DannyS712 [Fri, 19 Jul 2019 13:23:09 +0000 (13:23 +0000)]
Show current content model on Special:ChangeContentModel

Bug: T226914
Change-Id: I60c7075751cb180cb86cde0b9caea1a4bcf9b2a3

4 years agoMerge "Move WAN cache classes under a new wancache/ directory"
jenkins-bot [Fri, 2 Aug 2019 20:06:10 +0000 (20:06 +0000)]
Merge "Move WAN cache classes under a new wancache/ directory"

4 years agoresourceloader: Remove unused 'getBaseModulesInternal' internal method
Timo Tijhof [Fri, 2 Aug 2019 19:33:08 +0000 (20:33 +0100)]
resourceloader: Remove unused 'getBaseModulesInternal' internal method

I added this as wrapper for the private 'getBaseModules' method
in commit dec800968eb6 for "use by SpecialJavaScriptTest", but
I never did. And it doesn't need it so.. let's remove that.

Change-Id: Ia301bd1c1f3a15098b9e6cd2934dd8e80879dd50

4 years agoReorganize ResourceLoader fields
Aaron Schulz [Thu, 1 Aug 2019 19:53:31 +0000 (15:53 -0400)]
Reorganize ResourceLoader fields

Change-Id: I9c9aece69b869165b8d9037336c8a2e7d7189c1e

4 years agoresourceloader: reorganize ResourceLoaderModule fields
Aaron Schulz [Thu, 1 Aug 2019 19:49:38 +0000 (15:49 -0400)]
resourceloader: reorganize ResourceLoaderModule fields

Also use AtEase for error suppression to avoid phpstorm warnings

Change-Id: Iaa8ca107f4e7c923e894416b40b4fadd2b3d162e

4 years agoMove WAN cache classes under a new wancache/ directory
Aaron Schulz [Fri, 2 Aug 2019 03:06:27 +0000 (23:06 -0400)]
Move WAN cache classes under a new wancache/ directory

Change-Id: I6837761ebca7557e029e1f65beca738266e48efb

4 years agoresourceloader: Minor optims in startup JS
Timo Tijhof [Fri, 2 Aug 2019 14:41:21 +0000 (15:41 +0100)]
resourceloader: Minor optims in startup JS

Change-Id: I3bb6e77e3572c212ea32838f7668940b5abc99d8

4 years agoresourceloader: Move mw.libs and mw.widgets from startup to mediawiki.base
Timo Tijhof [Fri, 2 Aug 2019 14:39:49 +0000 (15:39 +0100)]
resourceloader: Move mw.libs and mw.widgets from startup to mediawiki.base

These are not needed to help define mw.loader or to process RLQ,
as such, it does not need to be in the critical path. This can
instead download as part of mediawiki.base which loads concurrently
with regular modules (but will execute first).

Change-Id: I43f21706206aa7cb6fb779c68325623e07724125

4 years agoAvoid error in querypage API when there's no value field
Gergő Tisza [Fri, 2 Aug 2019 13:41:36 +0000 (15:41 +0200)]
Avoid error in querypage API when there's no value field

QueryPage does not require a value field, and post I8b67268e omitting
it might even be useful, so the API should not error out when it's
not present.

Change-Id: I83b49d4451ba71bb2161459bddf17b9ac00088d2

4 years agoCreate Special:NewSection special page
DannyS712 [Sun, 23 Jun 2019 02:17:38 +0000 (02:17 +0000)]
Create Special:NewSection special page

Bug: T207577
Change-Id: If69a8e13b524f55f78b2f61aadf1f9045fda5ff2

4 years agoMerge "Make Special:MovePage note about redirects dependent on content model"
jenkins-bot [Fri, 2 Aug 2019 08:45:12 +0000 (08:45 +0000)]
Merge "Make Special:MovePage note about redirects dependent on content model"

4 years agoMerge "Deprecate SearchEngine:getTextFromContent() and SearchEngine::textAlreadyUpdat...
jenkins-bot [Fri, 2 Aug 2019 06:40:17 +0000 (06:40 +0000)]
Merge "Deprecate SearchEngine:getTextFromContent() and SearchEngine::textAlreadyUpdatedForIndex()"

4 years agoMerge "Simplify SearchUpdate constructor and hard deprecate some param types"
jenkins-bot [Thu, 1 Aug 2019 22:14:13 +0000 (22:14 +0000)]
Merge "Simplify SearchUpdate constructor and hard deprecate some param types"

4 years agoMerge "resourceloader: Merge $fileCache conditional blocks"
jenkins-bot [Thu, 1 Aug 2019 21:52:48 +0000 (21:52 +0000)]
Merge "resourceloader: Merge $fileCache conditional blocks"

4 years agoMerge "Document SearchDatabase::doSearchTextInDB to return null"
jenkins-bot [Thu, 1 Aug 2019 21:51:36 +0000 (21:51 +0000)]
Merge "Document SearchDatabase::doSearchTextInDB to return null"

4 years agoMerge "Deprecate SearchEngine::userHighlightPrefs()"
jenkins-bot [Thu, 1 Aug 2019 21:36:37 +0000 (21:36 +0000)]
Merge "Deprecate SearchEngine::userHighlightPrefs()"

4 years agoMerge "Fix bogus field use in RevisionRenderer::getSpeculativePageId"
jenkins-bot [Thu, 1 Aug 2019 20:59:05 +0000 (20:59 +0000)]
Merge "Fix bogus field use in RevisionRenderer::getSpeculativePageId"

4 years agoCode style cleanups to FileBackendGroup
Aaron Schulz [Thu, 1 Aug 2019 18:54:30 +0000 (14:54 -0400)]
Code style cleanups to FileBackendGroup

Set domainId in register() instead of on every config() call.
Use array_merge() to make the override precedence clearer.

Change-Id: I8792281cd9f1a4018255f9a9b87126c909095e68