Commit graph

100555 commits

Author SHA1 Message Date
Umherirrender
8f80236a6f [FileTest] Do not assume /tmp exists on windows
Needs to be a real path, not relative one

6) FileTest::testGetThumbnailSource with data set #2 (array(true,
array('/tmp'), 1024, 2048, '/tmp', 'Temporary path because temp f...
found'))
Temporary path because temp file was found
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'/tmp'
+'fsFilePath'

The file_exists in File::getThumbnailSource gets the path '/tmp' and
that does not exists on windows, because it is relative to one of the
core folder

Change-Id: I8618c8b34261451da42f88360a9d65353960e91f
2020-12-12 14:56:12 +00:00
Umherirrender
f46ca9a63c build: Updating mediawiki/mediawiki-phan-config to 0.10.5
Change-Id: I343d2bae626a3903eb1e67c05bf5caef4314b7dd
2020-12-12 14:42:25 +01:00
Martin Urbanec
a68ef8bbd8 [i18n] Change gor translation of NS_USER_TALK
Bug: T269991
Change-Id: Ib22a399dc6d98b7264eaf922b42b3f761d63e8f9
2020-12-12 13:41:10 +01:00
Matěj Suchánek
4633339894 Compute experience level correctly for accounts without registration date
These accounts are usually very old and User::getRegistration returns
null for them because user_registration is null. Treat these accounts
as old enough to be in the most experienced group and only decide
on edit count. Fix queries in recent changes to avoid comparisons
with nulls as well.

Also improve documentation of User::getExperienceLevel.

Change-Id: I6090cf9b9097069469e8e547b217f0d16f0fe372
2020-12-12 13:07:20 +01:00
Kaleem Bhatti
dcb24120b2 Adding $digitTransformTable for Punjabi (pnb)
Bug: T269921
Change-Id: I202657465f5f3f40c1d16677db7e5d7d2152b9f1
2020-12-12 11:03:44 +00:00
jenkins-bot
f49e8f4f56 Merge "Clean up temp files correctly after unit tests" 2020-12-12 10:33:19 +00:00
jenkins-bot
931e410624 Merge "Suppress taint-check issues in maintenance scripts/cli context" 2020-12-12 04:11:29 +00:00
jenkins-bot
83e30d3711 Merge "Explicitly parse messages on Special:ChangeCredentials" 2020-12-12 02:11:29 +00:00
jenkins-bot
9664b23100 Merge "Use Html::rawElement on api help header" 2020-12-12 02:09:36 +00:00
jenkins-bot
a8954201e3 Merge "Add taint hints for message creation method" 2020-12-12 02:09:29 +00:00
Umherirrender
76697b0174 Explicitly parse messages on Special:ChangeCredentials
Change-Id: Ide8004d1bce2a215c54107d77ba6325194d9b433
2020-12-12 01:35:05 +00:00
jenkins-bot
c78433169f Merge "Document HttpError to help taint-check" 2020-12-12 00:56:27 +00:00
Umherirrender
ab635c52c3 Use Html::rawElement on api help header
Also escape the module names for sanity

Change-Id: Id28d4870cd6dcfed26ee8719267f9f932ad35225
2020-12-12 00:23:09 +01:00
Umherirrender
6a2c2548a4 Document HttpError to help taint-check
This does not help to avoid the suppression inside the class,
but it avoids the suppression for all callers

Remove unneeded local vars while looking at the code

Bug: T269895
Bug: T216348
Change-Id: I5ce9a2dddca2b3bb556eb7adb5305178db09a71a
2020-12-12 00:06:00 +01:00
jenkins-bot
ad4db7e920 Merge "Migrate logging to abstract schema" 2020-12-11 22:45:57 +00:00
jenkins-bot
355c5782ab Merge "Add dependency injection to RevDelList classes" 2020-12-11 22:11:28 +00:00
jenkins-bot
339f945940 Merge "Make ParserCache use CachedBagOStuff" 2020-12-11 21:58:29 +00:00
DannyS712
649d20f6be Add dependency injection to RevDelList classes
Bug: T268713
Change-Id: I9ee516f4aa35e493a630299e8ba2c60edd4f06ba
2020-12-11 21:43:23 +00:00
Ammar Abdulhamid
b9094b0248 Migrate logging to abstract schema
Some changes needed for the migration:

Postgres:
 - Add default to five fields that have it in MySQL
 - Make log_params not nullable
 - Change log_comment_id and log_actor type to big integer
 - Change log_namespace to integer
 - Drop logging_actor_time index

MySQL/SQLite
 - Change log_title to varbinary/BLOB

Bug: T230428
Bug: T164898
Change-Id: Iad59d2a78f61d93637917ca320d3e173863ce5e1
2020-12-11 21:40:28 +00:00
jenkins-bot
8a53d3c2df Merge "objectcache: make BagOStuff key encoding more consistent" 2020-12-11 20:35:23 +00:00
jenkins-bot
17c9533b45 Merge "Split mw.Feedback.Dialog class into its own file" 2020-12-11 20:01:41 +00:00
jenkins-bot
122f4a1949 Merge "Add Parsoid media styling for audio elements as well" 2020-12-11 19:59:20 +00:00
jenkins-bot
86ce9075ba Merge "Share Parsoid's media styling with content" 2020-12-11 19:55:53 +00:00
jenkins-bot
4b8853ffde Merge "Add a feature flag to use the new media structure" 2020-12-11 19:10:50 +00:00
DannyS712
7ccfddc050 apisandbox.js - split OptionalParamWidget to separate file
Bug: T269952
Change-Id: I43b71ddfa59d47fd27f1840b7728e9c42b795965
2020-12-11 18:32:03 +00:00
DannyS712
6f1b9b326e Split mw.Feedback.Dialog class into its own file
Independent of the rest of mw.Feedback, cleaner/clearer
to define separately.

Change-Id: Iac12ea3764472fd2e65ee15e6907c383d1011c12
2020-12-11 18:09:47 +00:00
Arlo Breault
2cb99f1e09 Add Parsoid media styling for audio elements as well
As a result of I6514b9b0a85588c7eaae5e6989789656cfc3253a

Change-Id: I21ac578dcf1f4406818fe994efd941e566897e05
2020-12-11 11:47:00 -05:00
Arlo Breault
a6c769e976 Share Parsoid's media styling with content
Since the legacy parser will also be emitting the new media structure
that requires these styles.  For now, the feature is only shipped by
default when $wgUseNewMediaStructure is enabled.

Bug: T51097
Bug: T266148
Change-Id: Id20d716ce145e0bae37621fd6e218a793b5332ae
2020-12-11 11:47:00 -05:00
Arlo Breault
48f0aed7e2 Add a feature flag to use the new media structure
Described at https://www.mediawiki.org/wiki/Parsing/Media_structure

This flag is only intended to be around for a few months as we make the
transition.

Bug: T51097
Bug: T266148
Change-Id: I08eb34123b40bbe1cdfa4b1fb8e405680b441011
2020-12-11 11:46:51 -05:00
jdlrobson
8384efc2d5 getFooterIcons should not return empty arrays
empty arrays are not valid icons and cannot be output.
Rather than expecting skins to handle this, this should be taken care
of in the getFooterIcons method

Bug: T269776
Change-Id: Ie4474cee5f618569604b0d84d9290b5bcc53f495
2020-12-11 08:35:19 -08:00
C. Scott Ananian
a471ce8e00 api: Inject dependencies into ApiQueryInfo
Change-Id: I8a2f53c69a5fc7efa9e0b93244115ef68d479357
2020-12-11 10:57:35 -05:00
jdlrobson
f44a272488 vue: Log component errors
Log errors in Vue.js components to:

- The console via console.error(), the default behavior of the Vue.js
  runtime; and

- Any subscriber of the global.error analytics event topic. On the
  Wikipedias, for example, global.error analytics events make their way
  to Wikimedia's Logstash instance via EventGate.

Bug: T249826
Change-Id: I3038e88ac82992bf50e966f52cc800626b020860
2020-12-11 14:18:48 +00:00
jenkins-bot
f7cba788fa Merge "Add skin versioning" 2020-12-11 12:24:36 +00:00
jdlrobson
a26ebbf615 Add skin versioning
As we further develop the capabilities of the skin, we will make
breaking changes as we fold functionality of extensions into
core (e.g. DismissableSiteNotice) and deprecate/change the data
provided in SkinMustache::getTemplateData

Providing a skin version which changes with major changes, allows
us to safely update extensions and skins.

It will be used immediately in I276325d

Change-Id: Ib4799e5380b472f6c2372c5982b24a404b756a7e
2020-12-11 12:18:18 +01:00
Translation updater bot
af1d62ce0e Localisation updates from https://translatewiki.net.
Change-Id: I9d753c5a623083cfbe8cf262617af7784eaf46e1
2020-12-11 08:33:41 +01:00
jenkins-bot
90f4bac62d Merge "eval.php: add --ignore-errors option" 2020-12-10 22:26:25 +00:00
Umherirrender
4c51a42ba7 Add taint hints for message creation method
Some function using union type string|Message where string is a message
key and not html. This can be marked as tainted to avoid double escape
issues from taint-check

Bug: T216348
Change-Id: I40a305b5e49d67b3f6d7737c0846b93a80b78fa9
2020-12-10 23:18:18 +01:00
jdlrobson
2a7b914066 i18n: The translation for the search within pages will change
From "containing.." to the more descriptive
"search within pages for the term"

Bug: T249299
Change-Id: I50c177c32c5045654b5db8fd941091251025b7be
2020-12-10 21:45:42 +00:00
VolkerE
f0b509fede Revert "RCFilters: Temporarily fix TagItemWidget remove button size"
This reverts commit 05821b8c0d.

Reason for revert: Fixed with backport in OOUI lib itself, instead of masking only one (popular) instance. Backport at I468cf0bbee9de896e75a9a3e926d31a9f934e204

Change-Id: Iaa82bfdd4728481789404aecd64215f3f8705209
2020-12-10 21:12:29 +00:00
Volker E
5a359ce3a2 OOUI: Backport I18799e54ef46232a54d36e86e2b3d08c3ee0a3d5
Bug: T269477
Change-Id: I468cf0bbee9de896e75a9a3e926d31a9f934e204
2020-12-10 12:59:33 -08:00
Sam Smith
9334e77734 mediawiki.base: Add mw.errorLogger.logError()
Create mw.errorLogger.logError() so that developers can log errors that,
for whatever reason, won't cause the JavaScript runtime to raise an
error event on the window object.

A motivating usecase is logging thrown by Vue.js components. Those
errors are caught by the Vue.js runtime and logged via console.error().

Bug: T249826
Change-Id: Icdb5ea4678df61d8cb7fd5cba5091cab1ec5b7cb
2020-12-10 17:32:49 +00:00
jenkins-bot
2b53f3f92f Merge "mw-warning class is replaced with warningbox" 2020-12-10 17:15:25 +00:00
jenkins-bot
aee4106d9b Merge "Special:Search find variant links before showing the create page link" 2020-12-10 16:54:59 +00:00
jenkins-bot
ff8a4ca305 Merge "Make /page/{title}/html emit etags in RESTBase format" 2020-12-10 12:16:11 +00:00
jenkins-bot
1e9aea3f73 Merge "Add baseline MW REST API client for frontend" 2020-12-10 12:12:18 +00:00
Lucas Werkmeister
d573e3a529 Fix prev/next links on Special:WhatLinksHere
When the previous/next texts are proper links (i.e. we’re not at the end
of that range), we don’t want them to be escaped for the message.

Bug: T269830
Change-Id: I2bd214d8df7153c5780332998600251b191b6396
2020-12-10 10:45:28 +01:00
jenkins-bot
c0da256344 Merge "Improve code around internal queries in sqlite database class" 2020-12-10 08:49:39 +00:00
Translation updater bot
64d3b5b4c4 Localisation updates from https://translatewiki.net.
Change-Id: I3f3a3dd9bfa09a8cfb377fd6726906b5011390ad
2020-12-10 08:33:02 +01:00
Tim Starling
92acbdee4d eval.php: add --ignore-errors option
An option which causes eval.php to not exit on error. For interactive
debugging.

Change-Id: Ic1db8fd0e5fb4a757985ee8146a3f89a351060c7
2020-12-10 15:27:15 +11:00
jenkins-bot
5ebb7dd4d0 Merge "Add db group documentation" 2020-12-09 23:41:21 +00:00