Commit graph

4181 commits

Author SHA1 Message Date
jenkins-bot ae7df33ec1 Merge "Only include one set of DiscussionTools buttons in the page HTML" 2024-03-04 17:30:29 +00:00
Translation updater bot 209fcca0e6 Localisation updates from https://translatewiki.net.
Change-Id: I9d118b26d974a181519dbbc0e2c0327d2a5e2f8c
2024-03-04 08:23:15 +01:00
Bartosz Dziewoński 4958416caf Only include one set of DiscussionTools buttons in the page HTML
We no longer need to support toggling visual enhancements without
reloading the page, so we can remove the extraneous set of buttons
to reduce HTML size.

Bug: T322457
Change-Id: I54e57c754c54b7e611069f9832d1ebabf141a396
2024-03-01 16:51:17 +00:00
Translation updater bot 601fe334c0 Localisation updates from https://translatewiki.net.
Change-Id: If0444be2789725fe7013ab4931dcf6d15cf710b2
2024-03-01 08:33:00 +01:00
jenkins-bot eeeb6e7eab Merge "Fix PHP getTitleFromUrl() when $wgArticlePath is '/$1'" 2024-02-29 17:53:16 +00:00
Translation updater bot 97939f9681 Localisation updates from https://translatewiki.net.
Change-Id: I2843779e2819f6b6b39ec151e6b52d85bee6345c
2024-02-29 08:35:50 +01:00
jenkins-bot c3ca1ef3c8 Merge "Remove TemporaryParsoidHandlerParserCacheWriteRatio hack" 2024-02-28 17:20:38 +00:00
Translation updater bot fb3367c188 Localisation updates from https://translatewiki.net.
Change-Id: Ia51f0b2944edd3132bfedec061a913330a4a7ed2
2024-02-28 08:14:11 +01:00
Bartosz Dziewoński a9966234ac Fix collapsed sections when recovering autosave on mobile, take 3
We need to more carefully wait for mobile section toggling to happen.
Follow-up to 3957d7ac25.

Bug: T338920
Change-Id: I1bd31483c5be9428075f07494e89b06f19f8bf23
2024-02-28 04:43:59 +01:00
Translation updater bot 1812ac44ac Localisation updates from https://translatewiki.net.
Change-Id: I19bbb7f389135176ee40f97618b0e26a8f2cb9ff
2024-02-27 08:19:55 +01:00
jenkins-bot 545d17d2c9 Merge "Replace spaces in link fragments before searching for topics/comments" 2024-02-26 19:21:11 +00:00
Ed Sanders 16e308119f Replace spaces in link fragments before searching for topics/comments
MediaWiki should never generate links like this, but users or 3rd
party tools probably create them accidentally quite regularly, and
we do a similar thing with Title normalisation.

Change-Id: Ia467f422578bcb9b4d3fb8feab0b85f4b6436f7e
2024-02-26 18:59:00 +00:00
Translation updater bot f485dc3f00 Localisation updates from https://translatewiki.net.
Change-Id: I0deca42859446b81be2f26dd232c0d22cd083c5d
2024-02-26 08:35:54 +01:00
Bartosz Dziewoński 6419c19d1e Fix PHP getTitleFromUrl() when $wgArticlePath is '/$1'
In this case, the generated regexp would match the '/local' part in
the generated URL. Prefixing 'https://local' is no longer necessary
since 10899af666.

Add tests for this, and some tests to cover T261711 as well.

Bug: T358321
Change-Id: Idf54deba13f30b799b7b8d17de1897bc90f95701
2024-02-24 02:03:17 +01:00
Bartosz Dziewoński cf9f11167d CommentFormatterTest: Set ArticlePath in the test
Tests would fail if your wiki's config was different than this.

Change-Id: I148851a9d7b777f1fad5f17b01b835b0b9384a80
2024-02-24 01:19:16 +01:00
Translation updater bot 5ebdb052c7 Localisation updates from https://translatewiki.net.
Change-Id: I6feb874b7e50765bcd35b0061d6d871c8bb59a54
2024-02-23 08:44:15 +01:00
jenkins-bot 402f5de391 Merge "Support for core section heading formatting in post-cache transform" 2024-02-23 05:01:19 +00:00
Translation updater bot c72881f60d Localisation updates from https://translatewiki.net.
Change-Id: Ib12b065143c4ea92b292b47fca4a5facb0592509
2024-02-22 08:43:24 +01:00
Ed Sanders bf7dc0d983 ThreadItemStore: Only pass *Content*ThreadItemSet to insertThreadItems
We never a DatabaseThreadItem back into the database. If someone
wants to do this in the future they should be thinking very
hard about it first.

Change-Id: Ie073c030905e31d81cb75bc9c46d5bb7c5d85b04
2024-02-21 16:10:25 +00:00
Ed Sanders b4e4f30234 ThreadItemStore: Remove "ButTryHarder" from method name
This appears to reference the retry that happens due to
REPEATABLE_READ, but that seems like an implementation
detail so not really useful to have in in the function
name, nor does it disambiguate it from another function.

Change-Id: Iacc95b74f25c166545734818efb1b30e18a1754e
2024-02-21 15:56:32 +00:00
Translation updater bot 1bd3a78966 Localisation updates from https://translatewiki.net.
Change-Id: I7f73b9e8a4a1ed44476fc3bb2edd873fa8a229f6
2024-02-20 08:38:22 +01:00
Ed Sanders 5ba0bfa026 Remove temporary newsectionlink_enable config
This was intended as a temporary config to facilitate a
staged rollout (T331635) which has now completed.

Change-Id: I432ec0a24b8e8c12b62556ff6703abff32a2fced
2024-02-19 17:34:23 +00:00
Translation updater bot db5ced1db0 Localisation updates from https://translatewiki.net.
Change-Id: I602cd51c8f07b4dc1287788635d98e7574e873c2
2024-02-19 08:40:06 +01:00
jenkins-bot c12427f150 Merge "tests: Rebuild expected 'timestamplink' output" 2024-02-17 03:20:19 +00:00
Bartosz Dziewoński 08f61b2609 Support for core section heading formatting in post-cache transform
We already supported plain headings without the 'mw-headline'
wrappers, but now we need to parse the 'id' from a different
attribute.

Needed-By: If04d72f427ec3c3730e757cbb3ade8840c09f7d3
Bug: T357723
Change-Id: If85f89c40834618f23dc0ace2e599efb3b6d5ed4
2024-02-16 20:28:53 +00:00
Bartosz Dziewoński 7bee77d5fd Remove unused '*-formattedreply.html' test files
They were renamed in 9c68e058ef, but
b82af45735 accidentally added them back.

Change-Id: Ic0eaa09492d637f4dc54904856621ee1eb930a58
2024-02-16 19:28:05 +01:00
Bartosz Dziewoński 37257d68cf tests: Rebuild expected 'timestamplink' output
When rebuilding expected outputs by running the tests with
'DISCUSSIONTOOLS_OVERWRITE_TESTS=1', our code outputs the
JSON keys in a specific order (not alphabetical).

Change-Id: Ice57948ef1d4b780ae18cfcbb2e7373f518c8abc
2024-02-16 19:27:55 +01:00
jenkins-bot 85f75fb8ed Merge "Parser: Minor code cleanup" 2024-02-16 12:40:19 +00:00
jenkins-bot a386c3a251 Merge "Remove "Read as wiki page" feature on mobile talk pages" 2024-02-15 23:42:09 +00:00
Translation updater bot 6441b78bd7 Localisation updates from https://translatewiki.net.
Change-Id: I299dc07b3801034800a18953327c83bd633fd178
2024-02-15 13:28:04 +01:00
Bartosz Dziewoński ef13c65d55 Use standard gray color for timestamp links
Bug: T275729
Change-Id: I122155f02a7cd771f358b7536909bc5f59abee2c
2024-02-15 03:23:53 +01:00
Subramanya Sastry 3b2de5b10e Properly handle preview scenario for Parsoid rendering
* Removed a wikiech-specific hack and use the now available
  ParserOutput flag.

Change-Id: Ia06025c131485a9dc67afd8258fa4b3753d165b9
2024-02-14 15:32:47 -06:00
Translation updater bot 46a3e15dfb Localisation updates from https://translatewiki.net.
Change-Id: Ic0a87cf2a005c8f81a6490aed480166ddf28d7d6
2024-02-14 08:18:40 +01:00
jenkins-bot 6da23e4d00 Merge "Comment MonoBook fixes which are actually Apex fixes" 2024-02-13 16:45:56 +00:00
Ed Sanders c99e07881d Comment MonoBook fixes which are actually Apex fixes
Change-Id: I44ddc7ad4cef556b71fb3f6710d92500dfd4e9ac
2024-02-13 13:54:38 +00:00
jenkins-bot 0abf8517cc Merge "CommentParser: Add test case for already-linked timestamp" 2024-02-12 20:41:13 +00:00
Ed Sanders 9590a7297d CommentParser: Add test case for already-linked timestamp
Follow-up to 8069585489.

Bug: T356142
Change-Id: Iae9e165f00cc8bfedeb057f113e1c8c5ba7e3bf1
2024-02-12 20:33:06 +00:00
Translation updater bot 533dc4ca27 Localisation updates from https://translatewiki.net.
Change-Id: I000f57da42778ab775b7d224718145c55dea3763
2024-02-12 14:49:24 +01:00
libraryupgrader 6cd913cdc1 build: Updating mediawiki/mediawiki-phan-config to 0.14.0
Change-Id: Ib8324bc6a0a63d5153f278f6b5e6af1b1b4be9fd
2024-02-10 16:48:20 +00:00
jenkins-bot 7c33fe3950 Merge "ThreadItemStore: Add ->caller() in queries" 2024-02-10 05:40:22 +00:00
jenkins-bot 7e5104ced8 Merge "Reduce opacity of overflow menu button" 2024-02-10 00:10:08 +00:00
Ed Sanders bb579ef4c6 Reduce opacity of overflow menu button
This is still an experimental feature and not deployed
anywhere, but as we mute the timestamp to indicate it
is more part of the interface than the content, we should
do the same with this overflow menu button.

Change-Id: I30391912377692fffa9e67e8c4ca63db715878bf
2024-02-09 23:53:20 +00:00
Bartosz Dziewoński fc4d70f9f5 ThreadItemStore: Add ->caller() in queries
It makes it easier to find the queries in debug logs in production.

Change-Id: I80f94d1fc8c49227218b07234e162445cc43ca00
2024-02-09 19:16:55 +01:00
Translation updater bot ddea94a867 Localisation updates from https://translatewiki.net.
Change-Id: Ic755252251bfba62512c68cc86b1f23b488808a0
2024-02-09 08:43:45 +01:00
jenkins-bot 8d97a28ada Merge "Add test cases for the main loop getting stuck on some signatures" 2024-02-08 17:28:31 +00:00
jenkins-bot 26abd2383d Merge "Fix collapsed sections when recovering autosave on mobile, take 2" 2024-02-08 16:38:22 +00:00
Bartosz Dziewoński 6a1f2accee Parser: Minor code cleanup
We had some unused variables and roundabout checks.

Change-Id: I454b60ffa05c1cc12288c5de88c849a25aa35447
2024-02-08 16:59:04 +01:00
Bartosz Dziewoński f4090865d4 Add test cases for the main loop getting stuck on some signatures
Follow-up to 9db35873a4.

Bug: T356884
Change-Id: Ifef490209fdee2b9f52d3ef81a92ea20c5ff2155
2024-02-08 16:59:01 +01:00
Translation updater bot ddba94eb88 Localisation updates from https://translatewiki.net.
Change-Id: I98c45b2a474188dbc1dc088fbf62100b920beb88
2024-02-08 09:15:03 +01:00
jenkins-bot 297f4f01dd Merge "Parser: Fix the main loop getting stuck on some signatures" 2024-02-07 22:01:56 +00:00