Commit graph

126577 commits

Author SHA1 Message Date
jenkins-bot
6aa500ccd8 Merge "wdio-mediawiki: Fix incorrect async execute() usage" 2024-09-10 20:01:23 +00:00
C. Scott Ananian
7249c4c982 parserTests.txt: Update documentation about cat/ill options
Parsoid does support these options now.

Change-Id: I9caedd10b8f7229602ad4f963275b62777aca104
2024-09-10 19:30:07 +00:00
jenkins-bot
d9bfb09ad6 Merge "SUL3: Enable multiple auth providers to refresh "remember me" status" 2024-09-10 18:51:03 +00:00
jenkins-bot
4a611caaa7 Merge "UserOptionsManager: Allow global prefs for users without local accounts" 2024-09-10 18:22:53 +00:00
jenkins-bot
4e22eeefc0 Merge "phpunit: Drop unused complexity from RandomImageGenerator" 2024-09-10 18:11:08 +00:00
jenkins-bot
550dfab968 Merge "Clean up a few comments in HtmlOutputRendererHelper (typos, etc.)" 2024-09-10 17:27:38 +00:00
jenkins-bot
7fa2b33fb4 Merge "Add missing documentation to class properties in NameTableStoreFactory" 2024-09-10 15:42:30 +00:00
Atieno
90b0c03a53 Update credits ahead of the 1.43 release
Bug: T372295
Change-Id: I617f7aead0b3a4b638afce1d551f06f7c23542fb
2024-09-10 09:38:22 -04:00
jenkins-bot
c561dff5bf Merge "mailmap: Add new CREDITS duplicate entries" 2024-09-10 13:22:11 +00:00
jenkins-bot
0de8854427 Merge "Avoid use of deprecated wfExpandUrl in various places" 2024-09-10 12:57:54 +00:00
jenkins-bot
d025f36645 Merge "Avoid use of deprecated global functions in MWHttpRequest" 2024-09-10 12:57:47 +00:00
jenkins-bot
0395261733 Merge "Add release notes for CentralIdLookup::isOwned()" 2024-09-10 10:58:09 +00:00
Atieno
26a9cd7982 mailmap: Add new CREDITS duplicate entries
Bug: T372295
Change-Id: Ia1a097acdceccdf39188894a4729d8020f863263
2024-09-10 12:14:30 +03:00
thiemowmde
18ee885652 phpunit: Drop unused complexity from RandomImageGenerator
I believe we don't need this any more. A test should never leave an
uploaded image behind, but delete it. It should be totally fine when
the same trivial test uploads the same image over and over again. All
the extra complexity to trick MediaWiki's duplicate detection shouldn't
be necessary (any more).

Also change the default to svg instead of jpg. Again, this creates much
smaller files with much less effort.

Note this code was already mostly unused because of the previous patch
I7f3d586.

Change-Id: I5c16ba7bed0fffa43549b786e50d6d1dd5592ad0
2024-09-10 11:05:22 +02:00
Derick Alangi
361e056b17
SUL3: Enable multiple auth providers to refresh "remember me" status
This allows a primary auth providers to update the "remember me" status
of another primary provider in the same login request flow. If authentication
that happened elsewhere and a "remember me" / "keep me logged in" (extended
login period is selected), the value of this action applied by the remote
primary provider should be applied to the local wiki when the user is
redirected back to continue authentication there.

This is useful because:

In the case of Wikimedia's central domain wiki in SUL3 mode, we want to
apply the remember me (keep me logged in) flag value from the central domain
to the local domain.

Bug: T369668
Change-Id: I6e2e2d892d2b777cb4757c7c0d222afad9da506c
2024-09-10 10:05:00 +01:00
Translation updater bot
3d2c3032fd
Localisation updates from https://translatewiki.net.
Change-Id: Ia965b94753aa0a16be1deef703977b909b1f4dce
2024-09-10 09:01:15 +02:00
jenkins-bot
710f7d4660 Merge "Move EditRecovery's delete button to start of each item" 2024-09-10 06:39:43 +00:00
Bartosz Dziewoński
d1ca18d4a4 Add release notes for CentralIdLookup::isOwned()
Follow-up to 49f4bab141.

Change-Id: Ib205235f939a05e4ea667b150d73b83a343bb521
2024-09-10 05:56:08 +02:00
bpirkle
c308465d52 Clean up a few comments in HtmlOutputRendererHelper (typos, etc.)
Change-Id: I26a23dd3d7f858cd28a12ff9f0dd739e746829f0
2024-09-09 21:38:30 -05:00
jenkins-bot
22a1bf31a4 Merge "rdbms: make table name parameter comments more complete and uniform" 2024-09-10 01:44:43 +00:00
jenkins-bot
52791dc19a Merge "mediawiki.special.block [vue]: add new ExpiryField to enter block expiry" 2024-09-10 00:43:22 +00:00
jenkins-bot
18b9186546 Merge "REST: Change content.v1 to content/v1 match new conventions" 2024-09-09 23:59:01 +00:00
jenkins-bot
953918491f Merge "Bump wikimedia/parsoid to 0.20.0-a20" 2024-09-09 23:47:08 +00:00
Bartosz Dziewoński
949c34b205 UserOptionsManager: Allow global prefs for users without local accounts
Bug: T371340
Change-Id: I5eba0fa558ad7f111988c17cfcee260c5a272baf
2024-09-10 00:01:58 +02:00
Umherirrender
386f8ccf3e skins: Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation.

Once the sniff is enabled it avoids that new code is missing type
declarations. This is focused on documentation and does not change code.

Change-Id: I1106dd167dc2188ed91d1884e979b5cea303f722
2024-09-09 21:21:15 +00:00
Ebrahim Byagowi
aa16b5e7e6 Avoid use of deprecated wfExpandUrl in various places
Bug: T319340
Change-Id: I98e8e3a8fd135a554a85f6399033756c88ea415f
2024-09-09 20:55:52 +00:00
Ebrahim Byagowi
a5c7a67fca Avoid use of deprecated global functions in MWHttpRequest
Bug: T319340
Change-Id: I757180bd8aa59bd51bd42661724dc99f8d56016f
2024-09-09 20:55:47 +00:00
C. Scott Ananian
04305cb930 Bump wikimedia/parsoid to 0.20.0-a20
Bug: T374356
Change-Id: Ia99943c29657703dac8b1fd54e6eb60834f9a326
Depends-On: Ica4a7269a9fbbe8d453a5d166ff30f82a6627d1d
2024-09-09 16:09:41 -04:00
jenkins-bot
2d0ee0b35a Merge "Avoid use of deprecated wfExpandUrl in ExtractBody" 2024-09-09 19:51:56 +00:00
jenkins-bot
766c824327 Merge "Make MultiHttpClient free from MediaWiki URL global functions" 2024-09-09 19:42:08 +00:00
jenkins-bot
f18dd1405a Merge "Replace mw.Uri with browser provided URL object in two places" 2024-09-09 19:15:34 +00:00
daniel
dcde8f0101 REST: Change content.v1 to content/v1 match new conventions
Conventions for extension REST module names, and the associated
versions, are being established. Initial speculation was to use
a period as a separator, but consensus instead was to use a slash.
Modify the content module's paths accordingly.

Change-Id: Iea9e3fda8d274ebd341d9331458d37247a0384e2
2024-09-09 20:57:40 +02:00
jenkins-bot
29b407432c Merge "ResourceLoader: Test DependencyStore with indirect styles dependencies" 2024-09-09 18:36:11 +00:00
Ebrahim Byagowi
fb05f32141 Make MultiHttpClient free from MediaWiki URL global functions
It removes use of already deprecated global functions,
wfParseUrl and wfAssembleUrl by use of PHP's parse_url
and use of UrlUtils::assemble copy.

Change-Id: I07a5b351973228ea2e4545d042bb53ddf2c5730a
2024-09-09 22:02:58 +03:30
Hannah Okwelum
9fffe0a559 ResourceLoader: Test DependencyStore with indirect styles dependencies
Bug: T343492
Change-Id: Ic6f34fbedd47962e2df9cb00c32df6fc93912c02
2024-09-09 18:07:35 +00:00
jenkins-bot
65f6dcb558 Merge "editstash: migrate ApiStashEdit to statslib" 2024-09-09 18:06:12 +00:00
Aaron Schulz
c08ea2e813 rdbms: make table name parameter comments more complete and uniform
Better emphasize that there should only be one string that callers use
to reference a given table. This is what ChangedTablesTracker relies on
for write queries. For read queries, databases can be vertically sharded
on different servers or remapped using virtual domains, so the use of
"db.table" notation should be discouraged there as well.

Mention that "information_schema." is allowed as well as unqualified
table names.

Change-Id: I0b6295d0dd58aafd09a5c99aaf0ae9a81641d55a
2024-09-09 10:35:50 -07:00
jenkins-bot
e6d0f05427 Merge "Return early in ApiLogout if user not logged in" 2024-09-09 17:34:51 +00:00
Ebrahim Byagowi
f6ce7cd66b Replace mw.Uri with browser provided URL object in two places
So mediawiki.Uri dependency of the modules can be dropped.

Bug: T374314
Change-Id: Ic9d7f1654e31c2c25365a71fb79d87aeeda7ff11
2024-09-09 20:22:58 +03:30
Aaron Schulz
e63f87b0dc editstash: migrate ApiStashEdit to statslib
Bug: T359465
Change-Id: Id5aa4000e8b8bbb13b0ccd4d7cdf8bb355963ad7
2024-09-09 09:39:16 -07:00
Ebrahim Byagowi
825f7b5e13 Avoid use of deprecated wfExpandUrl in ExtractBody
Change-Id: Ic68ecf6654c8e73a643adce2ef5dccb53b7a632a
2024-09-09 19:38:04 +03:30
jenkins-bot
7de2cb299f Merge "search: Simplify host name logic in InterwikiSearchResultSetWidget" 2024-09-09 14:58:38 +00:00
jenkins-bot
c79c070737 Merge "selenium: Remove engines from wdio-mediawiki" 2024-09-09 14:02:07 +00:00
jenkins-bot
1397b8db2c Merge "search: Add missing documentation to class properties" 2024-09-09 13:29:43 +00:00
Dreamy Jazz
24d8b04558 Return early in ApiLogout if user not logged in
Why:
* The 'logout' API allows users to logout of their account
* This calls the "UserLogoutComplete" hook which users assume
  is only called when a logout is successful.
* However, the hook is called by the API even if the user making
  the request was not logged in
* The Special:UserLogout page does not call the hook if the user
  performing the request is already logged out.

What:
* Return early in ApiLogout::execute if the user is not logged
  in, and also add a warning to the response to indicate this.

Bug: T374353
Change-Id: I72e73c2391a475cec2e5cb24250f9aa2b792e5de
2024-09-09 13:47:50 +01:00
jenkins-bot
48453384d1 Merge "Avoid use of deprecated wfAssembleUrl" 2024-09-09 12:28:22 +00:00
Máté Szabó
92715a924b wdio-mediawiki: Fix incorrect async execute() usage
Why:

- In WDIO < 9, the function to be run by browser.execute() must be
  synchronous.[1] Asynchronous code should be run via executeAsync()
  instead.[2]
- isTargetNotWikitext() however runs asynchronous code via execute(),
  which may be interfering with tests.

What:

- Have isTargetNotWikitext() use executeAsync() instead.

[1] https://v7.webdriver.io/docs/api/browser/execute/
[2] https://v7.webdriver.io/docs/api/browser/executeAsync/

Change-Id: I05aaf8d89c5b52ffc94f70a4f887a98a99037027
2024-09-09 14:27:12 +02:00
jenkins-bot
7b0ff4c7ab Merge "Improve labels color of Special:RecentChanges in dark mode" 2024-09-09 12:13:10 +00:00
Ebrahim Byagowi
1c2f320f1a Avoid use of deprecated wfAssembleUrl
Change-Id: I198e862d1dd6eb73f4610a771b5c5e0cd43ce8c7
2024-09-09 15:18:12 +03:30
Željko Filipin
e2341256c7 selenium: Remove engines from wdio-mediawiki
Bug: T373684
Change-Id: I2d482b61d6a3bf037f43c9050b46f989c06bc559
2024-09-09 13:48:09 +02:00