Commit graph

3528 commits

Author SHA1 Message Date
Translation updater bot 3ceeca8865 Localisation updates from https://translatewiki.net.
Change-Id: I19e6a6a8ee34c5c17a225b13b7d69ad3fb4fd4ad
2023-07-18 09:49:22 +02:00
Winston Sung 96d4107bb4 Follow-up of "Localisation updates from https://translatewiki.net."
Change-Id: I34551783e7d9d6fe8f2a14eece020fd70f53f22c
2023-07-17 09:20:29 +00:00
Translation updater bot 4e219040ce Localisation updates from https://translatewiki.net.
Change-Id: I0b1cca2bdee85f4768b1ef5266bd44526a14d133
2023-07-17 10:16:56 +02:00
Bartosz Dziewoński 1b80b1ffcf ThreadItemStore: Look harder for invisible rows
This reverts 08e1073f58 (T322701),
which does not work, and instead uses the same solution as
4439e934429617cc77f34cc9c783f0b52a06c920 (T247553).

Bug: T339882
Change-Id: I1b6772b1cdfd0d7e1c603333a2e43152d3591c38
2023-07-16 00:45:52 +02:00
Translation updater bot 4b776e4bcf Localisation updates from https://translatewiki.net.
Change-Id: I09960b7b30bd2a08874a3d64c282e279221a8abf
2023-07-14 09:33:37 +02:00
Translation updater bot f51043c338 Localisation updates from https://translatewiki.net.
Change-Id: I91cd635d16c4f6c81d227c545f6f49988895f262
2023-07-13 10:48:57 +02:00
Translation updater bot 7583ce6ffc Localisation updates from https://translatewiki.net.
Change-Id: I6074995303e3453524bed369c0bd8fd4900fbeed
2023-07-12 08:55:24 +02:00
jenkins-bot 218d3aea38 Merge "Backend changes related to topic subjects in message body" 2023-07-11 15:21:50 +00:00
jenkins-bot 7b147cffbf Merge "ApiDiscussionToolsPageInfo: Allow excluding signatures" 2023-07-11 15:17:02 +00:00
jenkins-bot 5b2d1046ad Merge "Reload page or redirect when saving an edit creates a temp account" 2023-07-11 15:16:59 +00:00
jenkins-bot ce286af8dc Merge "Suppress the empty state in previews again" 2023-07-11 13:59:49 +00:00
Translation updater bot 1f5be8f504 Localisation updates from https://translatewiki.net.
Change-Id: I3d9d1b0428a5c088dc761d6b4ac6096d88f6ee95
2023-07-11 08:49:13 +02:00
Bartosz Dziewoński 90f8fe5ec1 Reload page or redirect when saving an edit creates a temp account
Depends-On: I6cdc014fb39d35ce1f091b53dc3a9c4a3c95f9e9
Depends-On: I01e13ce1ebab462eeb0ba3847d4205a88965a127
Bug: T338002
Change-Id: I768e4fa2030d781bbc65428371bda17a87bd6a42
2023-07-10 22:55:58 +00:00
Translation updater bot 24cd817cee Localisation updates from https://translatewiki.net.
Change-Id: I10ece58ae0930e13af08620a2ea871d6d1ff0bac
2023-07-10 09:37:29 +02:00
jenkins-bot 671ee1c685 Merge "Replace the last use of mediawiki.Uri" 2023-07-07 15:00:37 +00:00
Translation updater bot 23536535d0 Localisation updates from https://translatewiki.net.
Change-Id: Ia06e72264fd692320a77b9c87d4e37648ef67171
2023-07-07 09:08:17 +02:00
Translation updater bot fe8e16fe6d Localisation updates from https://translatewiki.net.
Change-Id: Ifc9f2b4842fbaa3442a54287768e4798b2aa63a3
2023-07-06 10:11:51 +02:00
Translation updater bot 02c8844db6 Localisation updates from https://translatewiki.net.
Change-Id: Ib7b9620a37a230b62257d8af7aa566d4edd78eab
2023-07-05 08:29:04 +02:00
jenkins-bot 772280126f Merge "ThreadItemStoreTest: Update workaround for T256006" 2023-07-04 18:11:05 +00:00
jenkins-bot 541bd37b03 Merge "Update reference to tests/phpunit/phpunit.php" 2023-07-04 15:45:23 +00:00
Bartosz Dziewoński 43731ac2d6 ThreadItemStoreTest: Update workaround for T256006
Change-Id: Ib07d1a9817f28d1c43ef8e44a4ec4fd758d7c06c
2023-07-04 17:38:54 +02:00
Translation updater bot eaa482371c Localisation updates from https://translatewiki.net.
Change-Id: I52c99c50420c93f30b17e15f95defdbbaa0f7d59
2023-07-04 09:20:44 +02:00
Translation updater bot e691955fdb Localisation updates from https://translatewiki.net.
Change-Id: Ifae8f9d7cdf6354c1bf0de53ced77383fd09557f
2023-07-03 10:14:55 +02:00
Daimona Eaytoy f491a7e3bc Update reference to tests/phpunit/phpunit.php
Bug: T90875
Change-Id: I19e3375d49bc5230eed1fee36bbd89246879ffcc
2023-07-02 16:25:53 +00:00
Translation updater bot 6ea3c7099d Localisation updates from https://translatewiki.net.
Change-Id: Iba996777a1b69df39436f3df0da3dbc5d75eeb3a
2023-06-28 17:32:51 +02:00
David Lynch 9482ec0841 Unregister existing topic subscription handlers on init
Bug: T340402
Change-Id: If6907e183b0301e14679b61d7af5119bea006c2b
2023-06-26 11:43:54 -05:00
Translation updater bot 4ef9903d32 Localisation updates from https://translatewiki.net.
Change-Id: I8e38ac8e6701e2767aa09218cbb4ed3520c3588c
2023-06-26 12:38:44 +02:00
jenkins-bot cb700abb8c Merge "SpecialFindComment: Allow spaces instead of underscores in the input" 2023-06-24 10:40:20 +00:00
Bartosz Dziewoński 80746017bb SpecialFindComment: Allow spaces instead of underscores in the input
Our IDs and names are correctly written with underscores, but allow
spaces too for consistency with the behavior of internal wiki links
when linking to a subpage of Special:FindComment.

Change-Id: Ib9f67ac02d963395db9d56951946b9747a410a88
2023-06-24 10:47:48 +02:00
jenkins-bot 6de3603990 Merge "ApiDiscussionToolsEdit: Allow not returning the new revision content" 2023-06-22 21:31:32 +00:00
Bartosz Dziewoński 14d9652a78 Backend changes related to topic subjects in message body
Our edit API now recognizes topic subjects in the message body,
generates edit summaries from them, and optionally returns an error
if no subject is provided.

Bug: T334163
Bug: T338390
Change-Id: Iac3778a4a88a4def234be9d10b80d9796d35bceb
2023-06-22 10:35:04 +02:00
Bartosz Dziewoński aa239a1ad1 Suppress the empty state in previews again
It wasn't appearing in normal previews thanks to some redundant checks
elsewhere, but it was appearing in our own internal previews using
ApiDiscussionToolsTrait::previewMessage(). It wasn't causing any
problems until change Iac3778a4a88a4def234be9d10b80d9796d35bceb, which
detects headings in the preview, and it was detecting the empty state
heading.

Follow-up to commits 8fb467896f and
ab40ef62c0, where I replaced a HTML
comment with ParserOutput extension data to indicate this, and then
accidentally removed the cleanup code from removeInteractiveTools()
with no replacement.

Change-Id: I4b650f82c711d65e200758e981ce338202deeaa6
2023-06-22 10:31:29 +02:00
Bartosz Dziewoński cd6bccbb5a Replace the last use of mediawiki.Uri
Depends-On: Ia95a27c7d7ebc9e4779f82598152145f02993b29
Change-Id: I5bd5f1ea0c708d685fbfa104a03844275c61dae7
2023-06-21 15:33:15 +02:00
Translation updater bot 28fdcfc132 Localisation updates from https://translatewiki.net.
Change-Id: I0fedc713d112c09effb898dd32e71c6fd7e29684
2023-06-20 09:50:29 +02:00
Bartosz Dziewoński 9ba9081efb Clean up old localStorage entries
Bug: T339042
Change-Id: Ia07c0234d23f16b04dd6c729fefd33c99f8cf9c6
2023-06-19 15:55:37 +00:00
jenkins-bot 7c0f099529 Merge "Redo wrapper for localStorage integration" 2023-06-19 15:54:16 +00:00
Bartosz Dziewoński f7d98d7690 Redo wrapper for localStorage integration
I think the issues in T329299 are caused by partially autosaved
comments. We store data in multiple localStorage keys, and if some of
them are stored but others are not (due to exceeding storage quota),
our code can't handle the inconsistent state.

We already have a wrapper around localStorage that tries to cover up
these issues. Change it so that all values specific to an instance of
a reply tool are stored under one localStorage key. This ensures that
all updates consistently succeed or fail, with no partially stored
state.

One of the reasons we haven't done this is because this requires the
whole data to be serialized to JSON every time, but our experience
with VE change 4355d697aa shows that this is fast enough.

Extra changes:
* Remove storagePrefix, now redundant
* Remove use of createConflictableStorage, now redundant
* Prefix the key with 'mw' as advised by mw.storage documentation
* Use ES6 syntax for the new code (just for fun)
* Use consistent expiry (T339042)

Bug: T329299
Change-Id: I347115f7187fd7d6afd9c6f368441e262154233b
2023-06-19 16:45:08 +02:00
jenkins-bot 0c7c7de242 Merge "Support ISO 8601 timestamps in the parser" 2023-06-19 12:31:58 +00:00
Translation updater bot a6a267f368 Localisation updates from https://translatewiki.net.
Change-Id: I338af9ae81410e809d74840f63942d6936ed320c
2023-06-19 11:06:46 +02:00
Theodore Dubois 4ca17b8c33 Support ISO 8601 timestamps in the parser
https://wikipesija.org is currently using ISO 8601 as the default date
format. The format is xnY-xnm-xnd"T"xnH:xni:xns and 'xn', 'm', and 's'
need support added.

Change-Id: I235098a578eb92ddd23ea47fa23d60df4b28f590
2023-06-17 11:36:43 -07:00
jenkins-bot e749702d2a Merge "Remove broken code" 2023-06-15 17:46:12 +00:00
jenkins-bot 3a796a228c Merge "Remove a mobile hack for post-edit messages" 2023-06-15 16:33:43 +00:00
jenkins-bot cb77ab66a3 Merge "Make topic subscriptions unavailable to temp users" 2023-06-15 16:33:40 +00:00
jenkins-bot cf1a509313 Merge "Don't try to prefix browser title if a custom message is incompatible" 2023-06-15 05:34:28 +00:00
Ed Sanders 306ae10e0c Remove broken code
The wrong 'this' was being used. I don't think this additional
call is required because we have already disabled the section earlier.

Change-Id: I7c9005463223a3de94de5924bf5d5da22e7ca67c
2023-06-14 18:55:45 +01:00
Ed Sanders 8a8c7270cf Set URL fragment when recovering auto-save on mobile
This triggers Toggler.js in MF to open the section, which
may not be stored in sessionStorage, as DT can recover
from localStorage.

Bug: T338920
Change-Id: I695e2d423b5159ef4cdcefc0f4d4d0a05f46879b
2023-06-14 18:04:19 +01:00
Translation updater bot 98a7afe26e Localisation updates from https://translatewiki.net.
Change-Id: Ib5f9621c8b77abfee12a193790ce070129dc6c16
2023-06-14 13:06:40 +02:00
Bartosz Dziewoński b405fd9b40 Make topic subscriptions unavailable to temp users
Bug: T332432
Change-Id: Icf91f0900ef3435cf3e9eedcf983e61ad9aeea69
2023-06-13 01:05:55 +02:00
Bartosz Dziewoński 6bf6105d2a ApiDiscussionToolsEdit: Allow not returning the new revision content
Sometimes we call this API and then reload the page (or navigate to
another URL), without using the page content it returns. Save some
work and some data transfer and don't generate it in those cases.

Depends-On: Ic5fac61f3ef9b2dfce6ff757f1d414a9f41f217d
Change-Id: If1aea90488e3f22cc31ac1f360139ae65acf000a
2023-06-12 20:28:45 +00:00
Bartosz Dziewoński f6e24150e9 Remove a mobile hack for post-edit messages
No longer needed since Ie0a49e5f37ac5e47066ce74d7e618d933cb30809
in MediaWiki core.

Change-Id: Id8f19cddd594cd82e2348992634015348e356e28
2023-06-12 20:28:36 +00:00