Commit graph

113132 commits

Author SHA1 Message Date
Acamicamacaraca
a573bea01b Implement LanguageConverter for sh.wiki
This patch will implement a one-way transliterator (Latin->Cyrillic), per community consensus.

Bug: T268033
Change-Id: I6f3e7efe3630e9960584dca3a5ee55cb92ea722c
Co-Authored-By: Deni <deni@deni.dk>
Co-Authored-By: Winston Sung <winston21.sung@gmail.com>
2022-11-15 06:29:11 +00:00
Winston Sung
bb228fff7e Split "static default variant" language code from "language code with converter"
for LanguageConverter

"Static default variant" language code won't always be the same of
 "language code with converter" when there's one of the variant form
 specified as the "default variant language" instead of "mixed-form".
We would like to specify "sh-latn" instead of "mixed-script sh" as the
 static default variant language for ShConverter.
The function "getMainCode" was not renamed for compatibility.

Bug: T268033
Change-Id: Ibd0fadf9ba1f740cf4aed06e11138549c9d6dc9f
2022-11-15 04:48:53 +00:00
jenkins-bot
76ed376eb5 Merge "rdbms: Remove @internal from SelectQueryBuilder constructor" 2022-11-15 03:03:01 +00:00
jenkins-bot
20a0a891d1 Merge "ParsoidHandler: test that selser will re-parse" 2022-11-15 01:24:56 +00:00
jenkins-bot
6393fe4603 Merge "Track the reason for rendering." 2022-11-14 23:23:27 +00:00
Rinish Sam
deaa9652b3 Remove deprecated search page title getter/setter methods
Skin::getSearchPageTitle and Skin::setSearchPageTitle are deprecated
since 1.38 and hence are removed.

Bug: T320351
Change-Id: I312ba7e170883c0b45c71b42f29eea2b7f842273
2022-11-14 21:23:24 +00:00
jenkins-bot
59c936a14d Merge "Remove unnecessary wrappers for generator functions" 2022-11-14 20:50:23 +00:00
Bartosz Dziewoński
af6b4e91c2 Remove unnecessary wrappers for generator functions
We define an anonymous function just to immediately call it.
Why not run the code directly?

Follow-up to:
* I8f1ed821cf1d8a4ef5b073e788386920dc337e0c (BacklinkCache)
* Ibcb37affa9ba1c891bc62964a3dd34b67214cfa1 (PageSelectQueryBuilder)
* Ibb1c58016e3956a46bfaf1a9f51f265114bb9ace (UserQueryBuilder)

Change-Id: I5a7827623c93ce524761ba501a6c6c75d17d6aae
2022-11-14 18:34:54 +00:00
Subramanya Sastry
86b3acdf6d Add bcp47 as a dev dependency to unbreak API testing in Parsoid
Change-Id: Ib558cf2610c72b9cc78fc9cc169410c784a02e2e
2022-11-14 12:03:15 -06:00
jenkins-bot
bf210a8739 Merge "Style revision deleted content on Special:ProtectedPages as strike-grey" 2022-11-14 16:37:35 +00:00
Lucas Werkmeister
e4a1bf9540 rdbms: Remove @internal from SelectQueryBuilder constructor
I believe this was missed in change Idfc16a5033 (commit d5b44e46fd) – if
we want extensions to define subclasses, we also need the constructor to
be public, otherwise those subclasses can’t call the parent constructor
without technically violating the stable interface policy.

Logically, the constructor should probably be protected; however, it
can’t be PHP-protected (since newSelectQueryBuilder() has to access it),
and we don’t really seem to use the PHPdoc @protected tag in MediaWiki
(see code search [1]), so let’s just mention in prose that it’s for
subclasses only.

[1]: https://codesearch.wmcloud.org/search/?q=%40protected&files=\.php%24

Bug: T311866
Change-Id: Ic9307d55ffd690e311bd0ffed94ac6a1e587a030
2022-11-14 16:37:34 +01:00
jenkins-bot
1441e79085 Merge "Fix division by zero in FullSearchResultWidget" 2022-11-14 12:32:07 +00:00
jenkins-bot
23c5303e88 Merge "Allow users to go to the article by clicking on thumb in special:search" 2022-11-14 12:31:32 +00:00
jenkins-bot
a529c0c048 Merge "PageArchive: Fix weird use of Database::makeList() with one-item array" 2022-11-14 10:06:58 +00:00
jenkins-bot
91639c6ec5 Merge "article: Replace deprecated User::isBlockedFrom" 2022-11-14 09:33:00 +00:00
jenkins-bot
bc427fb653 Merge "api: Remove compat code for expiry in action=userrights" 2022-11-14 09:18:35 +00:00
jenkins-bot
894890b3ce Merge "api: Do not use rctitle and rcnamespace together" 2022-11-14 08:51:41 +00:00
Translation updater bot
d3d9700cb0 Localisation updates from https://translatewiki.net.
Change-Id: I24966a6bbc7125c192cc2a29cb1586af0cb2cbd5
2022-11-14 07:54:49 +01:00
Tim Starling
45dd6e44f5 Fix division by zero in FullSearchResultWidget
Change-Id: If7803901d7a87d1a63cd024e8b1f9162ae4e7105
2022-11-14 14:50:11 +11:00
Umherirrender
3bd4254075 api: Remove compat code for expiry in action=userrights
CentralAuth no longer extends this class (29d5fb9)

Change-Id: I704705c243e68ce37715ec2c983093b8f32b35b9
2022-11-13 01:07:05 +01:00
Umherirrender
b45cd71336 article: Replace deprecated User::isBlockedFrom
Bug: T276371
Change-Id: I9392a85487f25ed5aaabaaf7319695d932b301ca
2022-11-12 22:44:29 +01:00
Reedy
116b71452c tests: Simplify some nested ->will( $this->return assertions
Change-Id: Ic861ce5604784b7fa600844d81387b84230bc0e1
2022-11-12 11:57:12 -07:00
jenkins-bot
f53279b7f5 Merge "Api Testing: Enable some variant tests in Transform.js" 2022-11-11 12:06:06 +00:00
jenkins-bot
323fd8c899 Merge "Fix Special:AutoblockList showing normal blocks after reblocks" 2022-11-11 11:26:03 +00:00
jenkins-bot
87b9bb0b5b Merge "QueryPage: Improve query logging on recaching special pages" 2022-11-11 10:41:12 +00:00
jenkins-bot
5f94ebace3 Merge "utils: Use str_starts_with/str_ends_with/str_contains" 2022-11-11 10:41:04 +00:00
jenkins-bot
4b8ef05fe2 Merge "session: Use wfTimestampNow() in PHPSessionHandler::gc for now" 2022-11-11 10:13:01 +00:00
Umherirrender
6474d423a1 api: Do not use rctitle and rcnamespace together
The sql contains the namespace twice, which is not useful:
WHERE rc_namespace = ? AND (rc_namespace = ?) AND rc_title = '?' )

Change-Id: Ia0d50ad70dc4962b888b8baac8fc11be2ba537bb
2022-11-11 08:55:24 +00:00
jenkins-bot
b39a52aeba Merge "api: Do not add extra infos on generator=querypage" 2022-11-11 08:36:39 +00:00
Abijeet
ad5b43f8a2 Api Testing: Enable some variant tests in Transform.js
Change-Id: Idf1f736eb958b093eafce4ee1cd138f52cfae986
2022-11-11 13:48:40 +05:30
Translation updater bot
ea1b9534be Localisation updates from https://translatewiki.net.
Change-Id: Ie64dbfd956787fd46738ef6357006f71d996d189
2022-11-11 08:15:06 +01:00
jenkins-bot
573930d0e9 Merge "Split "main variant language code" from "language code with converter" for LanguageConverterFactoryTest.php" 2022-11-11 00:08:36 +00:00
jenkins-bot
8a6ab5bccd Merge "Remove pre PHP 7.4 serialize()/unserialize()" 2022-11-10 20:10:49 +00:00
Reedy
27ee63f8c9 Remove pre PHP 7.4 serialize()/unserialize()
Depends-On: I3b893152ed278a72b5e74ccf91a3381f319bfcd9
Change-Id: I9f69a9316eaec23103262ec2ffd5b85baaf16f3f
2022-11-10 19:25:01 +00:00
C. Scott Ananian
adc70adc89 Update wikimedia/shellbox to 4.0.0.
This in turn allows shellbox to work with wikipeg 3.0.0, which contains
fixes for PHP 8.1.

Change-Id: Id51365fe13dd2ed641f194e4154776bedc5d59b0
2022-11-10 14:08:33 -05:00
jenkins-bot
ea75c68ad5 Merge "ParsoidHandler: remove subst feature from wt2html" 2022-11-10 17:27:12 +00:00
jenkins-bot
00d44e1db2 Merge "Revert "Treat search result suggestions like clicks"" 2022-11-10 16:23:42 +00:00
Lucas Werkmeister (WMDE)
8ad9ad1bd2 Revert "Treat search result suggestions like clicks"
This reverts commit 5d5ee8014f.

Reason for revert: Needs to wait until the next Codex release.

Change-Id: Ia893484173e6623fbaf75133a0d7dc9cf7251444
2022-11-10 16:01:01 +00:00
Simone Cuomo
6788a8bd06 Allow users to go to the article by clicking on thumb in special:search
- [x] Add custom URL to thumbnail
- [x] Make sure correct url is set for files

Bug: T321361
Change-Id: I4b754a13f5153abf8af336eb5260aaa758527f52
2022-11-10 16:22:10 +01:00
jenkins-bot
06bc770f8e Merge "Treat search result suggestions like clicks" 2022-11-10 13:43:54 +00:00
jenkins-bot
83b81816fe Merge "SessionConsistentConnectionManager: deprecate *Ref() methods" 2022-11-10 13:16:37 +00:00
jenkins-bot
484b982dc2 Merge "Remove separate checks for global blocks from APIUpload and SpecialUpload" 2022-11-10 13:15:52 +00:00
daniel
1dfe1f9f51 ParsoidHandler: remove subst feature from wt2html
Per discussion with Subbu and Bartosz, this is unused and dubious.
The client side feature that needs this ability was never implemented,
it has been sitting around since 2013.

Bug: T73161
Bug: T51904
Change-Id: I81dd90189d267b2799b63c972d7d8cf5f431d7b0
2022-11-10 14:08:38 +01:00
Lucas Werkmeister
dfdfedf729 SessionConsistentConnectionManager: deprecate *Ref() methods
I missed these in change I72713a7a11 (commit 8287e2814d), my bad.

I’m not sure if @deprecated is usually expected to apply to overriding
methods, but at least my IDE wasn’t showing calls to these methods in
“strikethrough” style, so let’s deprecate them explicitly.

Change-Id: Ic9ced6e2d4ab32791d5157d06325706664eecc47
2022-11-10 12:38:43 +01:00
jenkins-bot
af9efedb55 Merge "Remove references to Suhosin and its INI settings" 2022-11-10 08:36:01 +00:00
Lucas Werkmeister
dadd9942f3 site: Hard-deprecate MediaWikiSite::getFileUrl() without $path
All callers available in codesearch pass in a $path (and for all callers
except getFileUrl()’s own test, that path is 'api.php'); omitting the
path hasn’t worked correctly for almost ten years (see change
I5ed7e169c9, commit 779df10df7).

Change-Id: I50819efb66fd72f2b5a1cd83d5cdd3a148742299
2022-11-10 08:02:32 +00:00
Translation updater bot
53de1ee480 Localisation updates from https://translatewiki.net.
Change-Id: Ib47a9777b345e95193a166657cac95c9b04231f4
2022-11-10 07:58:26 +01:00
jenkins-bot
9ffcd6fe2a Merge "Improve RestAPIAdditionalRouteFiles path expansion" 2022-11-10 00:42:49 +00:00
jenkins-bot
5b0fb2f8b2 Merge "Parser: Fix quadratic regexp edge case" 2022-11-10 00:02:43 +00:00
jenkins-bot
ec82e6b9d6 Merge "HTMLFormField: Treat null as missing value" 2022-11-09 23:55:02 +00:00