lhc/web/wiklou.git
7 years agoProvide context to ChangeTags::buildTagFilterSelector
Matěj Suchánek [Wed, 19 Oct 2016 19:06:14 +0000 (19:06 +0000)]
Provide context to ChangeTags::buildTagFilterSelector

Bug: T105649
Change-Id: I5f44f4c054010c865ddb51e7d69107bdf2e88c00

7 years agoMerge "Add configuration for running etsy/phan against core"
jenkins-bot [Thu, 8 Dec 2016 10:03:53 +0000 (10:03 +0000)]
Merge "Add configuration for running etsy/phan against core"

7 years agoMerge "Chinese Conversion Table Update 2016-7"
jenkins-bot [Thu, 8 Dec 2016 07:26:08 +0000 (07:26 +0000)]
Merge "Chinese Conversion Table Update 2016-7"

7 years agoAdd configuration for running etsy/phan against core
Erik Bernhardson [Fri, 1 Jul 2016 00:11:52 +0000 (17:11 -0700)]
Add configuration for running etsy/phan against core

Adds the necessary configuration and stubs for phan static analysis to
run against mediawiki core. A variety of fixes have been applied to core
recently such with this current configuration we are completely passing,
except for one issue with a bug in Phan (https://github.com/etsy/phan/issues/286)

In it's current configuration Phan will detect fatal errors trying to
access non existant classes, undefined method calls, and other errors.
The analysis can be expanded as we cleanup more of the codebase.  This
is in preparation for working on getting the CI to run phan as part of
the review process. I have found phan to be usefull in CirrusSearch
(although with stricter config) for catching bugs and I think it could
help in core as well.

We arn't too far from being able to disable `null_casts_as_any_type`,
there are only a few classes that need adjusting. Lots more work needs
to be done to reduce `minimum_severity` from 10 to 5 (normal) or
0 (low).

Change-Id: Iafd55b1380f37d7b0d195eed081f8042166690e8

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 7 Dec 2016 21:40:46 +0000 (22:40 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic36aaa135b8702f13e4dd4400878d8d9cc2146ce

7 years agoMerge "ApiRevisionDelete: Use standard formatting for errors and warnings"
jenkins-bot [Wed, 7 Dec 2016 08:58:41 +0000 (08:58 +0000)]
Merge "ApiRevisionDelete: Use standard formatting for errors and warnings"

7 years agoMerge "Replace Linker::link() & Linker::linkKnown() with LinkRenderer"
jenkins-bot [Wed, 7 Dec 2016 06:55:33 +0000 (06:55 +0000)]
Merge "Replace Linker::link() & Linker::linkKnown() with LinkRenderer"

7 years agoReplace Linker::link() & Linker::linkKnown() with LinkRenderer
Yifei He [Mon, 5 Dec 2016 06:47:27 +0000 (14:47 +0800)]
Replace Linker::link() & Linker::linkKnown() with LinkRenderer

Change-Id: I1350819165095d9be79aea8d9189760a4dbddd40

7 years agoMerge "Replace Linker::link() with LinkRenderer in all revisiondelete pages"
jenkins-bot [Wed, 7 Dec 2016 05:51:21 +0000 (05:51 +0000)]
Merge "Replace Linker::link() with LinkRenderer in all revisiondelete pages"

7 years agoSpecial:RC filter: hideunpatrolled
Stephane Bisson [Thu, 1 Dec 2016 19:58:18 +0000 (14:58 -0500)]
Special:RC filter: hideunpatrolled

Allows hiding edits that have not been patrolled.
In other words, showing only edits that have been patrolled.

Will be used by the new Special:RC filters (ERI project).

Bug: T152061
Change-Id: I3cd896812c5af87bc4be53d493055c37298c712f

7 years agoSpecial:RC filter: hidehumans
Stephane Bisson [Mon, 14 Nov 2016 18:51:48 +0000 (13:51 -0500)]
Special:RC filter: hidehumans

Allows showing only bot edits

Will be used by the ERI project.

Bug: T149862
Change-Id: I748eb3c614abd7b8b228efe3da5e9cb569a8618f

7 years agoSpecial:RC filters: hide page edits, new pages, log entries
Stephane Bisson [Mon, 14 Nov 2016 19:17:42 +0000 (14:17 -0500)]
Special:RC filters: hide page edits, new pages, log entries

New RC filters for ERI project:
  hidepageedits
  hidenewpages
  hidelog

Bug: T150060
Change-Id: I6fe852fb0f5386c3385ada5189ceaf0d9bbc979d

7 years agoMerge "RC/Watchlist: Filter out parameters that cannot be displayed"
jenkins-bot [Wed, 7 Dec 2016 01:07:58 +0000 (01:07 +0000)]
Merge "RC/Watchlist: Filter out parameters that cannot be displayed"

7 years agoMerge "Cleanup static analysis errors"
jenkins-bot [Wed, 7 Dec 2016 00:39:16 +0000 (00:39 +0000)]
Merge "Cleanup static analysis errors"

7 years agoMerge "Update OOjs UI to v0.18.2"
jenkins-bot [Wed, 7 Dec 2016 00:24:18 +0000 (00:24 +0000)]
Merge "Update OOjs UI to v0.18.2"

7 years agoCleanup static analysis errors
Erik Bernhardson [Wed, 7 Dec 2016 00:06:39 +0000 (16:06 -0800)]
Cleanup static analysis errors

While prepping the code base for using etsy/phan i found a few problems.
A couple are real problems, while others are just places etsy couldn't
figure out the types.

* AuthPlugin referenced UserLoginTemplate which doesn't exist. Tracing
  back usages this accepts classes that extend from BaseTemplate.
* DatabaseSqlite had an invalid @var annotation.
* LoadBalancer had some missing or under-defined annotations. Make them
  more specific where possible.
* SqlBagOStuff didn't have the appropriate use statement for
  WaitConditionLoop and probably doesn't work. Also updated annotations
  that point to non-existent DatabaseBase to use IDatabase.

Change-Id: Iff2270b418ad2f8f97cfdb6df646c435d3283536

7 years agoMerge "profiler: Support tideways for PHP7 profiling"
jenkins-bot [Tue, 6 Dec 2016 23:52:47 +0000 (23:52 +0000)]
Merge "profiler: Support tideways for PHP7 profiling"

7 years agoUpdate OOjs UI to v0.18.2
Volker E [Tue, 6 Dec 2016 23:42:12 +0000 (15:42 -0800)]
Update OOjs UI to v0.18.2

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.18.2

Change-Id: Id08147e9015fc68a882733268a2bf860dd1ccb27

7 years agoprofiler: Support tideways for PHP7 profiling
Kunal Mehta [Sun, 4 Dec 2016 03:31:37 +0000 (19:31 -0800)]
profiler: Support tideways for PHP7 profiling

xhprof does not support PHP7, and it doesn't seem like upstream will be
working on that any time soon.

Tideways is a profiler that is basically a drop-in replacement for
xhprof with functions renamed. So Xhprof::enable() and Xhprof::disable()
will now try to use tideways if that is installed and xhprof is not.

Bug: T152186
Change-Id: I0d7d2de56ac638ca2851c662f527049bd620c0e9

7 years agoMake remote content skin tabs non-File specific
Kunal Mehta [Fri, 16 Sep 2016 01:22:36 +0000 (18:22 -0700)]
Make remote content skin tabs non-File specific

This is one of the steps for implementing shadow namespaces -
generalizing foreign file specific code to be usable for any namespace.
This allows us to no-longer special case WikiFilePage in SkinTemplate
when building content_navigation, and will let GlobalUserPage to add
similar tabs just by overriding the same functions.

The new WikiPage::getWikiDisplayName() and WikiPage::getSourceURL()
functions will return expected values for both local and remote content.

Change-Id: Ib3d7dcbefe95da351872e63f306799eef83e00a7

7 years agoMerge "Special:RC tests: ignore order when asserting conditions"
jenkins-bot [Tue, 6 Dec 2016 21:57:32 +0000 (21:57 +0000)]
Merge "Special:RC tests: ignore order when asserting conditions"

7 years agoMerge "MapCacheLRU: Properly handle bogus cache keys"
jenkins-bot [Tue, 6 Dec 2016 21:41:18 +0000 (21:41 +0000)]
Merge "MapCacheLRU: Properly handle bogus cache keys"

7 years agoRevert "Localisation updates from https://translatewiki.net."
Raimond Spekking [Tue, 6 Dec 2016 21:28:31 +0000 (21:28 +0000)]
Revert "Localisation updates from https://translatewiki.net."

includes/api/i18n/qqq.json looks insane, probably conflict with https://gerrit.wikimedia.org/r/#/c/321406/

This reverts commit 50135c64ca83c5903ddbc04a9af8638321dc25e0.

Change-Id: I63d88b6ef11eb796ff80e83763a2b0c99363b7f9

7 years agoApiRevisionDelete: Use standard formatting for errors and warnings
Brad Jorsch [Tue, 6 Dec 2016 21:17:23 +0000 (16:17 -0500)]
ApiRevisionDelete: Use standard formatting for errors and warnings

Change-Id: I8e88c356ac81572d866fbdd8f15e7a8dd4384c06

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 6 Dec 2016 21:13:44 +0000 (22:13 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I57e6697462f86b9ef684d82e739781b04dbfa250

7 years agoMapCacheLRU: Properly handle bogus cache keys
Chad Horohoe [Tue, 6 Dec 2016 20:42:49 +0000 (12:42 -0800)]
MapCacheLRU: Properly handle bogus cache keys

They can only be strings or integers. Anything else is wrong. We
should be throwing exceptions here so developers find this early
when running tests and manual testing.

Exceptions (instead of warnings) allow us to get a full useful
stacktrace.

Change-Id: I823ce33523283509c14a05f816f261d6b400e243

7 years agoAPI: Fix i18n for apihelp-main-param-errorformat
Brad Jorsch [Tue, 6 Dec 2016 20:20:39 +0000 (15:20 -0500)]
API: Fix i18n for apihelp-main-param-errorformat

Renamed the parameter at some point, but forgot to update this message.

Change-Id: I84fb44e7419bd7aee28f4dfd2bd37c51384330cc

7 years agoMerge "API: i18n for warnings and errors"
jenkins-bot [Tue, 6 Dec 2016 19:57:45 +0000 (19:57 +0000)]
Merge "API: i18n for warnings and errors"

7 years agoReplace Linker::link() with LinkRenderer in all revisiondelete pages
divadsn [Mon, 5 Dec 2016 19:23:28 +0000 (19:23 +0000)]
Replace Linker::link() with LinkRenderer in all revisiondelete pages

* RevDelArchiveItem
* RevDelArchivedFileItem
* RevDelFileItem
* RevDelLogItem
* RevDelRevisionItem

Bug: T149346
Change-Id: I96f83d06b4d3ccf3f76ccfca843a6aaf76d89063

7 years agoMerge "registration: Provide credits information to callbacks"
jenkins-bot [Tue, 6 Dec 2016 19:07:01 +0000 (19:07 +0000)]
Merge "registration: Provide credits information to callbacks"

7 years agoMerge "registration: Refactor validation logic to avoid duplication"
jenkins-bot [Tue, 6 Dec 2016 19:06:57 +0000 (19:06 +0000)]
Merge "registration: Refactor validation logic to avoid duplication"

7 years agoMerge "Convert Special:DeletedContributions to use OOUI."
jenkins-bot [Tue, 6 Dec 2016 18:14:41 +0000 (18:14 +0000)]
Merge "Convert Special:DeletedContributions to use OOUI."

7 years agoMerge "registration: Don't let extensions load late"
jenkins-bot [Tue, 6 Dec 2016 18:09:31 +0000 (18:09 +0000)]
Merge "registration: Don't let extensions load late"

7 years agoobjectcache: Remove broken apcu_set() calls
Aaron Schulz [Tue, 6 Dec 2016 06:03:21 +0000 (01:03 -0500)]
objectcache: Remove broken apcu_set() calls

The method call was misnamed (should be apcu_store) and not needed anyway,
since the other BagOStuff classes fail if no key is present.

Change-Id: I726965e665c2d0c5843d8dd33504810d130b9e98

7 years agoAPI: i18n for warnings and errors
Brad Jorsch [Wed, 19 Oct 2016 16:54:25 +0000 (12:54 -0400)]
API: i18n for warnings and errors

API warnings and error messages are currently hard-coded English
strings. This patch changes that.

With a few exceptions, this patch should be compatible with non-updated
extensions:
* The change to ApiBase::$messageMap will blow up anything trying to
  mess with it.
* The changes to the 'ApiCheckCanExecute' hook will cause a wrong
  (probably unparsed) error message to be emitted for extensions not
  already using an ApiMessage. Unless they're currently broken like
  Wikibase.

Bug: T37074
Bug: T47843
Depends-On: Ia2b66b57cd4eaddc30b3ffdd7b97d6ca3e02d898
Depends-On: I2e1bb975bb0045476c03ebe6cdec00259bae22ec
Depends-On: I53987bf87c48f6c00deec17a8e957d24fcc3eaa6
Depends-On: Ibf93a459eb62d30f7c70d20e91ec9faeb80d10ed
Depends-On: I3cf889811f44a15935e454dd42f081164d4a098c
Depends-On: Ieae527de86735ddcba34724730e8730fb277b99b
Depends-On: I535344c29d51521147c2a26c341dae38cec3e931
Change-Id: Iae0e2ce3bd42dd4776a9779664086119ac188412

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 5 Dec 2016 21:19:57 +0000 (22:19 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I74a8995410784d438e0168919c5216aacadfc723

7 years agoMerge "phpunit: Make getResourceLoaderContext() more extendable"
jenkins-bot [Mon, 5 Dec 2016 19:57:21 +0000 (19:57 +0000)]
Merge "phpunit: Make getResourceLoaderContext() more extendable"

7 years agoMisleading messages on Special:Userrights
Huji Lee [Mon, 5 Dec 2016 19:03:50 +0000 (14:03 -0500)]
Misleading messages on Special:Userrights

Corrects what is not addressed by I57e9ca4f20fe557e4024c4f5a4865170f02ebb45

Bug: T152428
Change-Id: I105be73acc5a2bc088b557ccafbdf9db726480da

7 years agoMerge "OOjs UI: Backport I73f95965694ec7fb0fa9a474742286e1105e5c85"
jenkins-bot [Mon, 5 Dec 2016 16:45:21 +0000 (16:45 +0000)]
Merge "OOjs UI: Backport I73f95965694ec7fb0fa9a474742286e1105e5c85"

7 years agoUse single quotes
Niklas Laxström [Mon, 5 Dec 2016 13:02:00 +0000 (14:02 +0100)]
Use single quotes

Follow-up to Icc9bc096

Change-Id: I4863e0e7946fd59022846198e86302f556fee617

7 years agoOOjs UI: Backport I73f95965694ec7fb0fa9a474742286e1105e5c85
Bartosz Dziewoński [Mon, 5 Dec 2016 00:58:03 +0000 (01:58 +0100)]
OOjs UI: Backport I73f95965694ec7fb0fa9a474742286e1105e5c85

Bug: T151061
Change-Id: I715d2ac077c5a6f9de420d90f19ef4b631168f26

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 4 Dec 2016 20:53:04 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Idc4a0a2896c29601b3f099c3bb2a622e995cfc4e

7 years agoRemoved deprecated class RevisiondeleteAction
rlot [Sun, 4 Dec 2016 15:05:49 +0000 (16:05 +0100)]
Removed deprecated class RevisiondeleteAction

RevisiondeleteAction was deprecated in release 1.25

Bug: T61113
Change-Id: I9238d0558b21fccde70e7e23a169e114362f793e

7 years agoregistration: Don't let extensions load late
Florian Schmidt [Sat, 3 Dec 2016 17:46:48 +0000 (18:46 +0100)]
registration: Don't let extensions load late

We want all extensions to be queued together and load at the same time
so in the future we can properly evaluate dependencies as a whole. If
extensions load late, they would bypass this, potentially causing
issues.

Bug: T117277
Change-Id: I09b306bd6f6ccf4210f36be0118e7f17f2c3d264

7 years agoMerge "Add integration test for MWHttpRequest user/pass options"
jenkins-bot [Sun, 4 Dec 2016 06:31:50 +0000 (06:31 +0000)]
Merge "Add integration test for MWHttpRequest user/pass options"

7 years agoMerge "Replaced Linker::link() usage with LinkRenderer in some special pages"
jenkins-bot [Sun, 4 Dec 2016 06:19:39 +0000 (06:19 +0000)]
Merge "Replaced Linker::link() usage with LinkRenderer in some special pages"

7 years agoReplaced Linker::link() usage with LinkRenderer in some special pages
Subin Siby [Sat, 3 Dec 2016 08:01:49 +0000 (13:31 +0530)]
Replaced Linker::link() usage with LinkRenderer in some special pages

Bug: T149346
Change-Id: I73c2b7402012a49e4419b6214f1d03f2e819220b

7 years agoregistration: Provide credits information to callbacks
Kunal Mehta [Thu, 1 Dec 2016 07:19:37 +0000 (23:19 -0800)]
registration: Provide credits information to callbacks

Registration callbacks now provide basic credits information (name,
path, type, authors, license-name, version, etc.) as the first argument.
The main use case right now for this is to support extension VERSION
constants for backwards-compatibility.

In addition, callbacks now run *after* attributes are exposed, so
callbacks could use data from them if they wanted to.

Bug: T151136
Change-Id: Ic5965dd4e259e1f46222ac92b8e78750e67b51d6

7 years agoMerge "Add $magicWords translation for Bengali (bn)"
jenkins-bot [Sun, 4 Dec 2016 01:27:18 +0000 (01:27 +0000)]
Merge "Add $magicWords translation for Bengali (bn)"

7 years agoAdd integration test for MWHttpRequest user/pass options
Gergő Tisza [Sat, 3 Dec 2016 23:36:09 +0000 (23:36 +0000)]
Add integration test for MWHttpRequest user/pass options

Change-Id: I5bcb263a725e8042ee51109080d2075744fe7001

7 years agoMerge "Clarify in emailuserfooter that by responding one reveals their email address"
jenkins-bot [Sat, 3 Dec 2016 22:56:05 +0000 (22:56 +0000)]
Merge "Clarify in emailuserfooter that by responding one reveals their email address"

7 years agoClarify in emailuserfooter that by responding one reveals their email address
Huji Lee [Fri, 2 Dec 2016 21:25:23 +0000 (16:25 -0500)]
Clarify in emailuserfooter that by responding one reveals their email address

Bug: T152242
Change-Id: I686f7bb8dd1d225620266ac9cbecadcf06bd7705

7 years agoAdd $magicWords translation for Bengali (bn)
Pmlineditor [Mon, 21 Nov 2016 07:35:41 +0000 (13:05 +0530)]
Add $magicWords translation for Bengali (bn)

Bug: T151134
Change-Id: I81ce473668e3712ea575dc38f5eb76abb45498ac

7 years agoArticleViewCustom, EditPageGetDiffText and ShowRawCssJs were removed
Reedy [Thu, 1 Dec 2016 13:12:55 +0000 (13:12 +0000)]
ArticleViewCustom, EditPageGetDiffText and ShowRawCssJs were removed

Bug: T145728
Change-Id: Iddf29005abbaceaa1e3cc2c79e4becfb46294414

7 years agoArticle::getAutosummary() and WikiPage::getAutosummary() were removed
Reedy [Thu, 1 Dec 2016 12:45:36 +0000 (12:45 +0000)]
Article::getAutosummary() and WikiPage::getAutosummary() were removed

Bug: T145728
Change-Id: I233571658b902c93a148a992ea99eb159551e732

7 years agoRemove ContentHandler functions with no usages at all
Reedy [Thu, 1 Dec 2016 12:40:05 +0000 (12:40 +0000)]
Remove ContentHandler functions with no usages at all

Bug: T145728
Change-Id: Ia0d7a5eb7e79b586c3b30688c80bb8b4b723fff6

7 years agophpunit: Make getResourceLoaderContext() more extendable
Timo Tijhof [Sat, 3 Dec 2016 00:46:53 +0000 (16:46 -0800)]
phpunit: Make getResourceLoaderContext() more extendable

This makes it easier to add other options in the future,
such as setting 'modules' in the context to something else.

Change-Id: I53c25fa7ad705cc34e44f95e4f87eb53612d800e

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Fri, 2 Dec 2016 20:56:05 +0000 (20:56 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoMerge "Avoid use of DatabaseBase in /includes"
jenkins-bot [Fri, 2 Dec 2016 20:54:26 +0000 (20:54 +0000)]
Merge "Avoid use of DatabaseBase in /includes"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 2 Dec 2016 20:53:57 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifb9f00278f2dc7589efa501dd4ee8fba3087ea60

7 years agoAvoid use of DatabaseBase in /includes
Aaron Schulz [Fri, 2 Dec 2016 19:18:27 +0000 (11:18 -0800)]
Avoid use of DatabaseBase in /includes

Change-Id: Ia3b7f9cb7d40f4ec9f19c924904e8a096880ec6a

7 years agoMerge "Ignore query cache in LoadMonitorMySQL"
jenkins-bot [Fri, 2 Dec 2016 19:59:21 +0000 (19:59 +0000)]
Merge "Ignore query cache in LoadMonitorMySQL"

7 years agoMerge "Set token properly when creating in User::newSystemUser()"
jenkins-bot [Fri, 2 Dec 2016 19:47:47 +0000 (19:47 +0000)]
Merge "Set token properly when creating in User::newSystemUser()"

7 years agoMove link-underline user preference rule to body class
Ed Sanders [Wed, 7 Sep 2016 22:51:48 +0000 (15:51 -0700)]
Move link-underline user preference rule to body class

ResourceLoaderUserCSSPrefsModule is now empty and can be removed.

Change-Id: I806e117131765b859e990c14735bb9494db9a37e

7 years agoReplace Linker::link() usage with LinkRenderer
rlot [Fri, 2 Dec 2016 15:43:12 +0000 (16:43 +0100)]
Replace Linker::link() usage with LinkRenderer

Replaced deprecated Linker:link() with LinkRenderer

Bug: T149346
Change-Id: Iab158d49b186835a14c357c91a1c5c4f78986238

7 years agoSet token properly when creating in User::newSystemUser()
Brad Jorsch [Sat, 19 Nov 2016 00:54:58 +0000 (19:54 -0500)]
Set token properly when creating in User::newSystemUser()

Otherwise callers that don't use 'steal' is going to break because it'll
think it needs to steal the user.

If such a user exists on a wiki, it can be fixed by setting the token to
the invalid token. The easiest way is probably to just call
User::newSystemUser( $name, [ 'steal' => true ] ) with eval.php.

Note there's no way for anyone to use these users unless they steal the
token from the DB, since they still don't have a password, email, or any
other method of authentication or account recovery set up.

Change-Id: I9efd2d2f5fffb4e4411a894f9514cdf2c66663a9

7 years agoMerge "mediawiki.notification: Improve scroll performance"
jenkins-bot [Fri, 2 Dec 2016 13:00:22 +0000 (13:00 +0000)]
Merge "mediawiki.notification: Improve scroll performance"

7 years agoslave -> replica in SessionConsistentConnectionManager
Amir Sarabadani [Fri, 2 Dec 2016 10:42:40 +0000 (14:12 +0330)]
slave -> replica in SessionConsistentConnectionManager

Change-Id: Ie59c90fa5f4b18d4321f7924a4facd7ea9049f4a

7 years agoIgnore query cache in LoadMonitorMySQL
Aaron Schulz [Fri, 2 Dec 2016 09:09:44 +0000 (01:09 -0800)]
Ignore query cache in LoadMonitorMySQL

Change-Id: I0b3c27ca6d2f8805297d91557cc40bd4bbc1a677

7 years agoRemoved Xml::escapeJsString()
Reedy [Wed, 30 Nov 2016 00:38:00 +0000 (00:38 +0000)]
Removed Xml::escapeJsString()

Change-Id: Iead8385a72a79632a90594a8828080a6d572e039

7 years agoUser::edits() was removed
Reedy [Wed, 30 Nov 2016 00:41:47 +0000 (00:41 +0000)]
User::edits() was removed

Change-Id: I3ebe2cceb94a0d61a9e0ab5bb0599e8a03146046

7 years agoMerge "SpecialActiveUsers: escape group names"
jenkins-bot [Fri, 2 Dec 2016 06:09:37 +0000 (06:09 +0000)]
Merge "SpecialActiveUsers: escape group names"

7 years agoMerge "Remove Atomic methods from ConnectionManagers"
jenkins-bot [Fri, 2 Dec 2016 05:07:53 +0000 (05:07 +0000)]
Merge "Remove Atomic methods from ConnectionManagers"

7 years agoRemove Atomic methods from ConnectionManagers
addshore [Thu, 1 Dec 2016 00:13:16 +0000 (00:13 +0000)]
Remove Atomic methods from ConnectionManagers

Change-Id: I697f63f45975b13af52bc22fced6e4d07e35115f
Depends-On: I4341a1b4ff6a67e4c1770faae38e9b126f1bf0bf

7 years agoresourceloader: Add test coverage for ResourceLoaderContext::msg()
Timo Tijhof [Fri, 2 Dec 2016 04:47:05 +0000 (20:47 -0800)]
resourceloader: Add test coverage for ResourceLoaderContext::msg()

Brings ResourceLoaderContext coverage to 100%.

Change-Id: I3ccc6aa87c89f69158b8d8684be565403afb4036

7 years agoDon't hard fail when we couldn't find an entry point for an extension
Chad Horohoe [Mon, 28 Nov 2016 22:53:40 +0000 (14:53 -0800)]
Don't hard fail when we couldn't find an entry point for an extension

It doesn't make a ton of sense, it's just pointing out that we have
a weird extension for which we cannot detect a standard entry point
for. These (unfortunately) exist, but they're easily worked around
using --list-file

Removing the hard failure allows you to use the two options in
tandem... --extension-dir for the initial pass and then --list-file
for the weirdo outstanding ones

Change-Id: I3d9cf1d614dacaa91fb2092019ccf1d14d61ccab

7 years agoMerge "SpecialFewestrevisions: Allow pages with only 1 revision to be shown"
jenkins-bot [Fri, 2 Dec 2016 00:10:26 +0000 (00:10 +0000)]
Merge "SpecialFewestrevisions: Allow pages with only 1 revision to be shown"

7 years agoRemove $purpose parameter from password validity check
Brad Jorsch [Thu, 1 Dec 2016 23:30:23 +0000 (18:30 -0500)]
Remove $purpose parameter from password validity check

This was added in I56b6600 in an attempt to work around a bug in
CentralAuth, but the bug has since been fixed in a better way. No hook
functions in Gerrit use the parameter (or ever have, as far as I can
tell), and anything that was passing a value other than the default
'login' has since been removed. So let's just get rid of it instead of
keeping it around doing nothing.

Change-Id: Ie604e03d268706221161ac93eb866f477e466fb4

7 years agoinstaller: Restore link text in default main page content
Kunal Mehta [Thu, 1 Dec 2016 22:55:49 +0000 (14:55 -0800)]
installer: Restore link text in default main page content

Accidentally got dropped in b85a17b7543.

Change-Id: I30b7a8d42877a54749792e97e49670087a85ca2b

7 years agoMerge "ApiSandbox: Better handling of parsed messages"
jenkins-bot [Thu, 1 Dec 2016 22:17:02 +0000 (22:17 +0000)]
Merge "ApiSandbox: Better handling of parsed messages"

7 years agoIDatabase::delete() table name parameter should be a string
Reedy [Thu, 1 Dec 2016 21:32:09 +0000 (21:32 +0000)]
IDatabase::delete() table name parameter should be a string

Change-Id: I7ba2cdb6cdddf04819ff80e27814f704f41d15f1

7 years agoMerge "Replace Linker::link() usage with LinkRenderer"
jenkins-bot [Thu, 1 Dec 2016 20:24:51 +0000 (20:24 +0000)]
Merge "Replace Linker::link() usage with LinkRenderer"

7 years agoMerge "http: Support HTTP Basic Authentication"
jenkins-bot [Thu, 1 Dec 2016 20:09:02 +0000 (20:09 +0000)]
Merge "http: Support HTTP Basic Authentication"

7 years agoReplace Linker::link() usage with LinkRenderer
Haikal Izzuddin [Wed, 30 Nov 2016 01:07:37 +0000 (09:07 +0800)]
Replace Linker::link() usage with LinkRenderer

Bug: T149346
Change-Id: Ie384566617f18ad6c3bf836b39702365d59f714d

7 years agoMerge "Replace Linker::link() with LinkRenderer in some special pages"
jenkins-bot [Thu, 1 Dec 2016 19:56:18 +0000 (19:56 +0000)]
Merge "Replace Linker::link() with LinkRenderer in some special pages"

7 years agohttp: Support HTTP Basic Authentication
Chrisludt [Tue, 8 Nov 2016 13:22:50 +0000 (13:22 +0000)]
http: Support HTTP Basic Authentication

Adds two new options (username and password) to the
MWHttpRequest (and HTTP helper class) to enable
support for HTTP Basic Authentication on outgoing HTTP
connections.

Change-Id: If83f025bbe63769ba7bb4a824c5f12d5f1ec640a

7 years agoMerge "Replace Linker::link() with LinkRenderer in includes directory"
jenkins-bot [Thu, 1 Dec 2016 19:45:09 +0000 (19:45 +0000)]
Merge "Replace Linker::link() with LinkRenderer in includes directory"

7 years agoMerge "mediawiki.storage: Provide a wrapper for sessionStorage too"
jenkins-bot [Thu, 1 Dec 2016 17:13:25 +0000 (17:13 +0000)]
Merge "mediawiki.storage: Provide a wrapper for sessionStorage too"

7 years agoMerge "Fix typo in $fallback so Russian fallback is applied"
jenkins-bot [Thu, 1 Dec 2016 13:29:39 +0000 (13:29 +0000)]
Merge "Fix typo in $fallback so Russian fallback is applied"

7 years agoFix typo in $fallback so Russian fallback is applied
Siebrand Mazeland [Thu, 1 Dec 2016 13:00:53 +0000 (14:00 +0100)]
Fix typo in $fallback so Russian fallback is applied

Change-Id: I25ab7b58dedff895b60737d45b6fcf48f9484001

7 years agoMerge "Align search result CSS with Wikimedia UI color palette"
jenkins-bot [Thu, 1 Dec 2016 10:49:35 +0000 (10:49 +0000)]
Merge "Align search result CSS with Wikimedia UI color palette"

7 years agoMerge "Rank aliases in search in order they appear in the messages file."
jenkins-bot [Thu, 1 Dec 2016 09:54:21 +0000 (09:54 +0000)]
Merge "Rank aliases in search in order they appear in the messages file."

7 years agoReplace Linker::link() with LinkRenderer in some special pages
Yuriy Shnitkovskiy [Wed, 30 Nov 2016 22:56:33 +0000 (00:56 +0200)]
Replace Linker::link() with LinkRenderer in some special pages

* SpecialEditTags
* SpecialEmailuser
* SpecialFewestrevisions
* SpecialImport
* SpecialListgrouprights
* SpecialMediaStatistics
* SpecialMergeHistory
* SpecialMIMEsearch
* SpecialMostcategories
* SpecialMostinerwikis
* SpecialMostlinked

Bug: T149346
Change-Id: Idee566dbff87f2e8bf909ba8371d551aaf0dd08b

7 years agoReplace Linker::link() with LinkRenderer in includes directory
Yuriy Shnitkovskiy [Wed, 30 Nov 2016 21:28:55 +0000 (23:28 +0200)]
Replace Linker::link() with LinkRenderer in includes directory

* CategoryViewer
* OutputPage
* Preferences

Bug: T149346
Change-Id: I9f9bcd9b461884817e8ceefbc6757c436221e331

7 years agoregistration: Refactor validation logic to avoid duplication
Kunal Mehta [Thu, 1 Dec 2016 07:04:27 +0000 (23:04 -0800)]
registration: Refactor validation logic to avoid duplication

Previously, logic to validate extension.json files was in two places:
validateRegistrationFile.php maintenance script, and the
ExtensionJsonValidationTest.php structure test. This caused duplication
as validation became more complex (e.g. usage of spdx-licenses library).

A generic ExtensionJsonValidator class now handles most of the
validation work, while the maintenance script and test case just wrap
around it for their output formats.

Change-Id: I47062a4ae19c58ee1b1f2bb4877913259bf19c8b

7 years agomediawiki.storage: Provide a wrapper for sessionStorage too
Ori Livneh [Mon, 30 Nov 2015 20:41:43 +0000 (12:41 -0800)]
mediawiki.storage: Provide a wrapper for sessionStorage too

T119146 provides a use-case for using sessionStorage. So far mw.storage
was localStorage-specific. With a small modification, we can allow the
Storage object to passed to the constructor, which allows us to create a
wrapper around sessionStorage (mw.storage.session) with minimal code duplication.

Bug: T121646
Change-Id: I73bc82d9fa2359148fe1e50b6535bfa0dbe8bd3e

7 years agoMerge "Clean up http classes a bit"
jenkins-bot [Thu, 1 Dec 2016 03:32:47 +0000 (03:32 +0000)]
Merge "Clean up http classes a bit"

7 years agoClean up http classes a bit
Gergő Tisza [Wed, 26 Oct 2016 04:08:14 +0000 (21:08 -0700)]
Clean up http classes a bit

* added integration tests. We probably don't want automated tests
  to make external requests but these make manual testing more
  convenient. Documented some oddities discovered by testing.
* made ::$status, ::proxySetup() and ::getHeaderList()
  protected; they were not referenced in any gerrit-hosted extension
  and they provide no useful functionality to external callers.
  Similarly, marked ::read() and ::errorHandler() as internal
  (these are used as callbacks so can't be protected)
* removed inheritance abuse in ::execute()
* documented ::execute() as returning a StatusValue (but
  keep returning a Status for now)
* changed setCookie argument defaults to ones that make sense
* replaced MWException
* moved unit tests to the correct location
* fixed some code style issues

Change-Id: I5852fc75badc5d475ae30ec2c9376bde7024bd95

7 years agoMerge "SpecialBrokenRedirects: fix up LinkRenderer conversion"
jenkins-bot [Thu, 1 Dec 2016 01:48:33 +0000 (01:48 +0000)]
Merge "SpecialBrokenRedirects: fix up LinkRenderer conversion"

7 years agoSpecialBrokenRedirects: fix up LinkRenderer conversion
MtDu [Wed, 30 Nov 2016 22:51:41 +0000 (16:51 -0600)]
SpecialBrokenRedirects: fix up LinkRenderer conversion

$options is no longer supported, use makeBrokenLink() instead.

Follows-up d8c56ec84f.

Change-Id: If2025232a2e09ab99b1bdc6d58a77f347f3dbf5e