Commit graph

117320 commits

Author SHA1 Message Date
Roan Kattouw
3c76e31b17 Update OOUI to v0.47.3
Release notes:
 https://gerrit.wikimedia.org/g/oojs/ui/+/v0.47.3/History.md

Bug: T149654
Bug: T216780
Bug: T326557
Bug: T337515
Bug: T338145
Bug: T338165
Bug: T338344
Bug: T338832
Bug: T339839
Depends-On: If9f7607eb676070938409a60d156a2ae292c3c56
Change-Id: Ia845a593cef68e4456d50c6ef213bf9255507eef
2023-07-06 11:09:38 -07:00
jenkins-bot
1cca78c098 Merge "ExternalLinks: Make order by and continue only rely on el_id in READ NEW" 2023-07-05 17:35:47 +00:00
jenkins-bot
6c94c74fb5 Merge "Don't parse HTML as wikitext on grants/rights special pages" 2023-07-05 15:38:12 +00:00
jenkins-bot
5a332bd980 Merge "search: disallow negative offsets" 2023-07-05 15:27:32 +00:00
jenkins-bot
a29d5c3565 Merge "api: Make linksearch APIs also default to http and https in READ_NEW" 2023-07-05 14:05:37 +00:00
jenkins-bot
7d94e330b4 Merge "Language: Prefer mb_str_split and strtr function" 2023-07-05 13:54:10 +00:00
jenkins-bot
e3630b49d0 Merge "Add a test for SelectQueryBuilder::merge caller merging" 2023-07-05 13:47:59 +00:00
jenkins-bot
f74a79dc4f Merge "Migrate several wfGetDB() to use ICP" 2023-07-05 10:50:57 +00:00
Amir Sarabadani
3e157496ff Migrate several wfGetDB() to use ICP
And doing proper dependency injection.

Bug: T330641
Change-Id: I4978c158e513f88f5547343c4fbbe4b39078dc09
2023-07-05 11:00:59 +02:00
Amir Sarabadani
dfa188838a ExternalLinks: Make order by and continue only rely on el_id in READ NEW
This way of doing continue was built when when externallinks didn't have
el_to as an auto_increment PK. Now that it has had something to use for
continue, it doesn't need to rely on those fields in order by nor
continue. These fields are set in the query and order by on a field
that's already specified in WHERE condition is not useful nor gives any
value.

Bug: T341000
Bug: T47237
Change-Id: I5c3bea57792bdce0ea611c3b33b4259b8cafc9d0
2023-07-05 10:31:17 +02:00
thiemowmde
5d3a55af16 Don't parse HTML as wikitext on grants/rights special pages
These pieces are known to be trivial HTML. The content is known to
be a plain text identifier. We don't need to parse it again as if it
is wikitext. rawParams() is the way to mark such parameters as "show
as is, don't parse again".

This also removes some double escaping that was added as part of
Ida2b686 in 2015. It was most certainly never doing anything because
the incoming identifiers are plain ASCII with nothing to escape.

Change-Id: I74fcdab3bbd9fb4f692176a6ac4cef6202db7f7e
2023-07-05 08:57:30 +02:00
Translation updater bot
443b1b7ea5 Localisation updates from https://translatewiki.net.
Change-Id: Ib319f6d36ed1e8613f0d7aca2ecf283209894937
2023-07-05 08:02:38 +02:00
jenkins-bot
77e2974aa8 Merge "Optimise DifferenceEngine::addLocalisedTitleTooltips()" 2023-07-05 05:21:40 +00:00
Umherirrender
7ebeb84d20 build: Fix file name for stylelintrc.json in grunt-watch
Follow-Up: I19e00ca6503b0212642bdb3a4735e0a52e43d670
Change-Id: I89e69042db78f68b1af74e3f123d2cbfebd17a3e
2023-07-04 21:32:23 +02:00
jenkins-bot
254c022d55 Merge "Use native assertGreater/LessThan in HandlerTestTrait" 2023-07-04 16:50:14 +00:00
jenkins-bot
b84cd84b43 Merge "More specific array type hints in ParserOutput/OutputPage" 2023-07-04 16:45:04 +00:00
jenkins-bot
fc66c0a7e7 Merge "Avoid minor code duplication in mediawiki.page.watch.ajax" 2023-07-04 16:36:15 +00:00
jenkins-bot
a46042f0d3 Merge "Cleanup LogEventsList" 2023-07-04 16:25:31 +00:00
jenkins-bot
446e1dddbf Merge "LogEventsList: Remove support of deprecated usage of hooks" 2023-07-04 16:03:09 +00:00
jenkins-bot
aa09f36852 Merge "Improve performance of HTMLFormField::shouldInfuseOOUI" 2023-07-04 15:14:39 +00:00
jenkins-bot
953a7c1251 Merge "Localisation updates from https://translatewiki.net." 2023-07-04 12:37:51 +00:00
jenkins-bot
b2841034b3 Merge "DeleteAction: Avoid displaying the form unconditionally" 2023-07-04 09:33:12 +00:00
jenkins-bot
0c705aa587 Merge "Disable autopromote-once for temporary users" 2023-07-04 08:13:04 +00:00
Translation updater bot
0292707b06 Localisation updates from https://translatewiki.net.
Change-Id: Icf40fd1490601e77df36528be85c614dd718105e
2023-07-04 08:59:43 +02:00
jenkins-bot
4b854fa68c Merge "Remove hard-deprecated public properties of DifferenceEngine" 2023-07-04 06:58:24 +00:00
jenkins-bot
bfb0b34ebf Merge "Do not parse trivial HTML as wikitext on Special:Version" 2023-07-04 06:55:08 +00:00
Func
3cdf06b03e DeleteAction: Avoid displaying the form unconditionally
Also, turned to override checkCanExecute() in FileDeleteAction instead,
to preserve the behaviour before the commit 3e43d318.

Bug: T341002
Change-Id: I8faa2ae97373d332d8c126d02d4969565489bf90
2023-07-04 04:07:00 +08:00
jenkins-bot
7a7eb2d09e Merge "ResourceLoader: Make SpecialJavaScriptTest loading more robust" 2023-07-03 19:59:31 +00:00
Marius Hoch
8f88d35066 ResourceLoader: Make SpecialJavaScriptTest loading more robust
Locally this page doesn't load reliably for me, as
I have extensions which register broken resource loader
modules (eg. Math depends on VE, which I don't have
locally). This will lead to mw.loader.using rejecting
its promise directly, before any of the (working) tests
have been loaded. In order to work around this, wait for
each test module seperately and only start qunit
once all are resolved/ rejected.

Note: This shouldn't start more requests than the old
version as all modules will already be requested by
a single mw.loader.load call running before this logic
is invoked.

Change-Id: Ibee18d5a96068a6f00e5e0bae58355662324c2b4
2023-07-03 19:39:41 +00:00
jenkins-bot
a74eaea765 Merge "Add temporary users to a 'temp' group, and stop adding them to 'user'" 2023-07-03 17:05:56 +00:00
jenkins-bot
b96df5287e Merge "Sync up core repo with Parsoid" 2023-07-03 16:12:27 +00:00
Arlo Breault
9b0df5337c Sync up core repo with Parsoid
This now aligns with Parsoid commit 6bc2181083b69fa94758da6ed35ef6d8e672dfa0

Change-Id: Ic48bf017f7ed89554bb8c7591f8bbb4b02c40458
2023-07-03 11:49:21 -04:00
jenkins-bot
cf4d427945 Merge "Revert "Throw an error from UserGroupManager::addUserToGroup if called on a temporary user"" 2023-07-03 15:17:28 +00:00
Tchanders
0074a7ddb7 Revert "Throw an error from UserGroupManager::addUserToGroup if called on a temporary user"
This reverts commit df1312b799.

Reason for revert: More updates to callers are needed to prevent
throwing errors.

Bug: T340468
Change-Id: I604bef13a550c1bd8fc10396284505f24cf17802
2023-07-03 14:56:24 +00:00
thiemowmde
ce879de2d0 Avoid minor code duplication in mediawiki.page.watch.ajax
Change-Id: If419aece09fb2e518eb56402e80011b6b8afe302
2023-07-03 16:22:52 +02:00
thiemowmde
131258cae4 Use native assertGreater/LessThan in HandlerTestTrait
The main benefit is that we can see the actual value, instead of
"expected true".

Change-Id: Ib620348911a9612aa630cb331b2b23b66207d57b
2023-07-03 16:13:58 +02:00
thiemowmde
3c631a59f2 More specific array type hints in ParserOutput/OutputPage
Change-Id: I7dbecebb8b26e57afda13f46d3b895f085c4e95e
2023-07-03 15:52:18 +02:00
thiemowmde
4ae624e6e6 Improve performance of HTMLFormField::shouldInfuseOOUI
While this is not really a bottleneck, I found this does quite a lot
of unnecessary things that are not used in this particular context.
All we want to know is if one or more help messages exist. We don't
need the actual, parsed help messages in this context.

Note this patch changes the code in a way that is not 100% the same as
before. Let's say there is only 1 message, and it's disabled. Since
the possibly expensive exists() check is delayed shouldInfuseOOUI()
might return true in rare edge-case situations where it returned
false before. I would like to argue this is worth it. We just trade
one performance optimization for another.

Change-Id: Ib4550e954853355f361249b13ec877478de9c789
2023-07-03 14:12:33 +02:00
thiemowmde
4df062d8fb Do not parse trivial HTML as wikitext on Special:Version
This showed up as a major time sink in a profile run I did. What this
code does is turning the two fields "homepage" and "name" into a
wikitext snippet and do a separate wikitext parser run just to create
an <a> element. This adds up because it happens almost 300 times.

Instead we can create the <a> element directly.

External libraries are not expected to contain wikitext in a "name"
field.

Change-Id: Iba6ecf68d527f11d81be3f2dcc2d968a75a9db70
2023-07-03 13:24:38 +02:00
jenkins-bot
9a384e79cb Merge "SpecialLog: Fix issues related to IP users" 2023-07-03 11:21:06 +00:00
jenkins-bot
e6204467cf Merge "Migrate assertSelect() to SelectQueryBuilder" 2023-07-03 10:52:04 +00:00
Func
576bd23069 SpecialLog: Fix issues related to IP users
Bug introduced in I370dcca6 and I7e9ad460, sorry.

Bug: T338042
Bug: T340929
Change-Id: Ia9d74caa93eb03ea11fb22265ac7b47334689988
2023-07-03 18:15:06 +08:00
jenkins-bot
e1f64c1bc0 Merge "Add extension subheadings to table of contents on Special:Version" 2023-07-03 09:09:05 +00:00
Tim Starling
f1d1092f73 Optimise DifferenceEngine::addLocalisedTitleTooltips()
* Remove unnecessary regex
* Move message expansion outside the loop

Change-Id: I44c273f1d798c436687be1a43b3aa94be0a8fdcc
2023-07-03 18:44:31 +10:00
Translation updater bot
95a84c9d6c Localisation updates from https://translatewiki.net.
Change-Id: I531ba62d1e7af67b40621291335bc2e17dc6e83c
2023-07-03 09:42:25 +02:00
Tim Starling
4d0604d8fa Remove hard-deprecated public properties of DifferenceEngine
And remove commented-out code also dating from 1.32 with no near-term
prospect of being implemented.

Change-Id: I526c558b2efae4b77ae38d0b5bb8127c8b31c280
2023-07-03 16:51:22 +10:00
Meno25
e079f1f685 doc: Update redirected link
Change-Id: I5a2cd33efe494ac8d476f619077506d4f684f48f
2023-07-03 00:29:16 +00:00
jenkins-bot
a7df9868c1 Merge "Localisation updates from https://translatewiki.net." 2023-07-02 11:51:21 +00:00
jenkins-bot
d84efbc32a Merge "api: Change ApiBase::errorArrayToStatus to Authority" 2023-07-01 19:38:47 +00:00
jenkins-bot
4a938aa487 Merge "DoubleRedirectJob: Inject appropriate service into job p.1" 2023-07-01 18:47:13 +00:00