Commit graph

126622 commits

Author SHA1 Message Date
Amir E. Aharoni
3353abe82c Add plural forms for Levantine Arabic
Bug: T363690
Change-Id: I9d451e1fa53424ccccb1ef0df21e28fc1d2cfdf4
2024-09-04 13:35:57 +00:00
James D. Forrester
7dbaf561c6 ContributionsSpecialPage::getUserLinks: Hide UserRights like RenameUser for temp accounts
Bug: T373988
Change-Id: I186458ee7c05b90f610e305b9b5d359746b6aece
2024-09-04 08:39:37 -04:00
Ebrahim Byagowi
f903bae012 Remove UIDGenerator, deprecated since 1.35
Change-Id: I5e47ecd560218df7e48af68e6aee351bc2a57823
2024-09-04 14:38:30 +03:30
jenkins-bot
2a9b9675e2 Merge "build: Use inline ignore for Generic.CodeAnalysis.AssignmentInCondition" 2024-09-04 11:07:40 +00:00
jenkins-bot
45ee8e263f Merge "filerepo: Avoid assignment in condition in File::getThumbnailSource" 2024-09-04 11:07:33 +00:00
MusikAnimal
0f95e00e61 mediawiki.special.block [vue]: add new ExpiryField to enter block expiry
This uses a new three-part form to allow the features of manually typing
an expiry (i.e. "31 hours") but allowing to do so for non-English users,
who previously didn't have this capability unless it was set in
MediaWiki:Ipboptions. The ability to use MediaWiki:Ipb-default-expiry to
set a default expiry is still supported, assuming it is either a valid
option in MediaWiki:Ipboptions or in the new "Custom duration" field
(i.e. "31 hours"). See https://w.wiki/B65S for more, though this
functionality doesn't appear to be used anywhere on the WMF cluster.

"Expiration" is renamed in the code to "Expiry" to match the naming of
other MW components (ExpiryDef), but the user-facing message is still
"Expiration".

No validation is done yet, but will be added in a future patch.
Similarly, pre-supplying values via URL params is saved for T368583.

Bug: T359684
Change-Id: Iffb6fa3f539d29ed25802a19f4c13c627208259c
2024-09-03 21:24:56 -04:00
jenkins-bot
5e258de06e Merge "tests: Use const for some static data in test files" 2024-09-04 00:51:07 +00:00
jenkins-bot
45e790aa69 Merge "Indicate IP contributions are legacy when temporary accounts enabled" 2024-09-03 23:23:38 +00:00
jenkins-bot
470f84880f Merge "Use more modern JS syntax in jquery.spinner" 2024-09-03 21:08:59 +00:00
Srishakatux
3ab689526c Merge "Add a Messages file for Haryanvi in Arabic script" 2024-09-03 20:46:24 +00:00
James D. Forrester
482222931f ParserOutput::collectMetadata: Log if given value is non-numeric and also non-string, for easier debugging, and don't fatal
Bug: T373920
Change-Id: I68c28b0d5d23decc058a46c55e767a83c80452f8
2024-09-03 15:21:13 -04:00
jenkins-bot
3b1c9bca23 Merge "Expand ProtectTest" 2024-09-03 18:37:46 +00:00
jenkins-bot
0feebaab4e Merge "Test validateRegistrationFile.php" 2024-09-03 17:13:20 +00:00
jenkins-bot
f6c944ce54 Merge "Test changePassword.php" 2024-09-03 16:44:40 +00:00
jenkins-bot
02ccf6f6a7 Merge "Test makeTestEdits.php" 2024-09-03 16:44:32 +00:00
jenkins-bot
79e3c005ac Merge "Test parse.php" 2024-09-03 16:20:44 +00:00
jenkins-bot
c33e2c3b16 Merge "Test getReplicaServer.php" 2024-09-03 16:20:36 +00:00
jenkins-bot
f48e9e34a8 Merge "Test runJobs.php" 2024-09-03 16:15:06 +00:00
Ebrahim Byagowi
db4d77fbba Use more modern JS syntax in jquery.spinner
Change-Id: I1b309cfff46936581f69653edbefd4dd0fa5d9a4
2024-09-03 19:39:30 +03:30
jenkins-bot
da70c2080f Merge "Add xml version declaration where possible" 2024-09-03 15:23:37 +00:00
jenkins-bot
e51961ecc2 Merge "Test LoggedUpdateMaintenance" 2024-09-03 15:23:30 +00:00
Ebrahim Byagowi
ca95ced062 Add xml version declaration where possible
It should always have XML version declaration per
https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG

Change-Id: I80458c71bc32ed8501731f71e387a485ae3cb68b
2024-09-03 17:24:33 +03:30
jenkins-bot
c029c7a891 Merge "auth: Split TemporaryPasswordPrimaryAuthenticationProviderTest cases" 2024-09-03 13:53:17 +00:00
jenkins-bot
45d6e10f09 Merge "Remove unused ajax-loader.gif and spinner.gif of mediawiki.skinning" 2024-09-03 12:04:05 +00:00
jenkins-bot
2c45a87e1c Merge "Use a more modern JS syntax in jquery.confirmable" 2024-09-03 11:21:06 +00:00
Ebrahim Byagowi
86980f17e6 Remove unused ajax-loader.gif and spinner.gif of mediawiki.skinning
They doesn't seem to be used anywhere, let's get rid of them.

There is a reference of ajax-loader.gif in WebInstallerPage.php but
that should refer to mw-config/images/ajax-loader.gif rather than
mediawiki.skinning one.

Change-Id: I27c2b0d8cff6b6094c818ce4e184a195e40352a0
2024-09-03 14:39:50 +03:30
jenkins-bot
98d41e46f5 Merge "Turn mediawiki.action.view.metadata to Less" 2024-09-03 11:03:54 +00:00
jenkins-bot
2a9ba7d9a3 Merge "Use const/let in jquery.highlightText" 2024-09-03 11:01:49 +00:00
jenkins-bot
88bcb4c6f5 Merge "ResourceLoader: Avoid assignment in condition in ForeignResoureManager" 2024-09-03 10:14:46 +00:00
jenkins-bot
5b6859aab1 Merge "api: Avoid assignment in condition in ApiLogin" 2024-09-03 10:10:23 +00:00
Ebrahim Byagowi
c3624faf59 Turn mediawiki.action.view.metadata to Less
And use user-select mixin

Change-Id: If27339e595a510cd0d5c84fb9dd4a8c2d3048a2a
2024-09-03 13:39:41 +03:30
Ebrahim Byagowi
55770b3094 Use const/let in jquery.highlightText
Change-Id: I16cb587e9f1712f1ed9fd729961a6ec04d17258c
2024-09-03 13:27:59 +03:30
Ebrahim Byagowi
ff20055e95 Use a more modern JS syntax in jquery.confirmable
Change-Id: I911dd0f3f6531f5ab60234c69313b3970c33a5d6
2024-09-03 13:24:54 +03:30
jenkins-bot
1db5d0fca6 Merge "Mark FakeMaintenance as excluded for test coverage" 2024-09-03 09:28:03 +00:00
Dreamy Jazz
b1c13e3dfb Test LoggedUpdateMaintenance
Why:
* The LoggedUpdateMaintenance class is not tested and testing it
  will help avoid regressions/bugs.

What:
* Create LoggedUpdateMaintenanceTest

Bug: T371167
Change-Id: I84f5399bf67cc98d7c731d75ee668481ce0817b2
2024-09-03 10:21:04 +01:00
jenkins-bot
e545467dfa Merge "StreamFile: Support streaming webp from thumb_handler.php" 2024-09-03 08:04:07 +00:00
Translation updater bot
b7b9c62b89
Localisation updates from https://translatewiki.net.
Change-Id: I62e6e477fbdd0807f7ed90c0e3b05bbed9adbf5b
2024-09-03 09:04:05 +02:00
Func
0c889c7fdc StreamFile: Support streaming webp from thumb_handler.php
Bug: T366422
Change-Id: Ib3ba7dccc10f8308fc706500c74a2beca357efdf
2024-09-03 14:39:04 +08:00
Kevin Israel
6d85c2ba87 Revert "Break accidental references in Parser::__clone"
The $mStripState and $mVarCache properties have been private since
3056737420 and a5afda55bf respectively, so other code is
unable to create a reference directly. The getStripState() method
does not return a reference, and the hooks called by Parser do not
do not receive references to these properties either.

MessageCache also no longer clones Parser since 937ebeb585.

This reverts commit 8eeb906f93.

Change-Id: Ia71424bf984fdec23e5cd599bf48e0e7454eab9a
2024-09-03 02:01:00 -04:00
jenkins-bot
817314fa4e Merge "Rest: Reduce code duplication in ConditionalHeaderUtil" 2024-09-03 05:15:58 +00:00
Umherirrender
e57f444a1f page: Remove unused ImageHistoryList::$repo
Unused since addition in 164bb322f2 (r24808)

Change-Id: I8a45487483c54b50576c8cbef3f8ea7b3b19969a
2024-09-02 23:23:53 +02:00
jenkins-bot
88012543d5 Merge "tests: Use getNewTempFile to simplify test setup" 2024-09-02 21:07:05 +00:00
jenkins-bot
a4a6da9ff1 Merge "qunit: Support 'component' param on Special:JavaScriptTest" 2024-09-02 19:17:18 +00:00
Umherirrender
c28ffec986 tests: Use getNewTempFile to simplify test setup
Avoid own teardown as MediaWikiIntegrationTestCase tracks the file and
delete the file on teardown

Remove unused tempnam (added unused in 3db119428a)

Change-Id: Ic53398c89c885f1c263dfcdbc59f6129f605f5a7
2024-09-02 21:14:48 +02:00
jenkins-bot
9042133541 Merge "qunit: Replace slow mw.messages reset with empty object reset" 2024-09-02 19:00:33 +00:00
jenkins-bot
c94d1a1d82 Merge "specials: Improve SpecialExpandTemplates form" 2024-09-02 18:54:51 +00:00
jenkins-bot
ea7005551f Merge "search: Replace IResultWrapper::fetchObject()/next() with foreach loop" 2024-09-02 18:42:38 +00:00
Timo Tijhof
ca7ae7705c qunit: Support 'component' param on Special:JavaScriptTest
It is already supported via `npm run qunit`, but now supported in the
GUI as well, e.g. /index.php/Special:JavaScriptTest?component=EventLogging

Bug: T250045
Change-Id: Id0c00352ed0d5420f218c0567c43236673e2a998
2024-09-02 16:27:29 +00:00
Timo Tijhof
8ba0fd1c8f qunit: Replace slow mw.messages reset with empty object reset
Use an empty object, which is fast to create, instead of deep clone
that preserves and restores the initial server response for mw.messages

On mediawiki-wmf-quibble with 2000 tests, reduces newMwEnvironment_beforeEach
from 3.7s to 0.7s, saving 3 whole seconds on the CI run.

The total for QUnit is ~37s after this, down from ~40s.

ResourceLoader runs tests with lang=qqx so tests shouldn't rely on
these anyway since all mw.messages contains is thousands of key-value
pairs with qqx placeholder data like `{"foo":"(foo)"}`.

== Changes ==

* Fix qqx mode to work for non-existent messages,
  for consistency with how MediaWiki does this in PHP.

  Otherwise, tests that expect "(foo)" or "(foo: abc)" as part of
  an assertion, would start to fail. As of writing, no frontend tests
  in MediaWiki core assert data containing localisation messages, but
  there are 27 tests in bundled/WMF-deployed extensions that do so,
  including CheckUser (ext.checkUser.checkuser.getUsersBlockForm),
  Wikibase (jquery.wikibase.descriptionview),
  and VisualEditor (ve.ui.MWAddParameterPage).

* Document why this code checks for "(foo)",
  which was added in I3f2a6ceb24 (616b6176db, T222944).

Bug: T225730
Bug: T250045
Depends-On: I6348e5ae00776c2c01d91fa90a431b6ffe3da25d
Change-Id: I3a4024ccf90e50558152d4ee012e492f49e14a0e
2024-09-02 16:27:12 +00:00
Yiannis Giannelos
084f43a6a3 Bump wikimedia/parsoid to 0.20.0-a19
Bug: T373593
Depends-On: I3f013d457fafcebf1651770012c0044a7f1ef3b9
Change-Id: I6674cf31c164005582437568ab8ed3f1ddd51817
2024-09-02 18:39:37 +03:00