提交图

7969 次代码提交

作者 SHA1 备注 提交日期
jenkins-bot 7421b6747d Merge "i18n: Replace mw: interwiki with url to mediawiki.org" 2024-05-16 15:23:42 +00:00
Amir E. Aharoni f3dcbe9354 Remove a double space from a message
Change-Id: I0c539de1c98123244ad601b3e09b13f2cbbe5270
2024-05-16 08:48:28 -04:00
jenkins-bot ab68026128 Merge "Switch to CommunityConfiguration for SuggestedEdits config" 2024-05-16 12:44:53 +00:00
Translation updater bot 9470228c9f Localisation updates from https://translatewiki.net.
Change-Id: I8e7d21324222d9c724ab172c417028b3a77af079
2024-05-16 09:26:34 +02:00
Umherirrender 2121a5a6d3 i18n: Replace mw: interwiki with url to mediawiki.org
The interwiki table must not contains an interwiki link with prefix mw:

Change-Id: I66961c090ac9e401d442e173b7ccbe4f787febb3
2024-05-15 23:42:22 +02:00
jenkins-bot e2ffcb89a6 Merge "fixLinkRecommendationData: Add --force when a production run is needed" 2024-05-15 15:36:10 +00:00
Martin Urbanec 39de0c9583 Switch to CommunityConfiguration for SuggestedEdits config
Bug: T364717
Change-Id: Ied0c13cf072365d1aae13176f746d1b998f500c5
2024-05-15 15:48:30 +02:00
Translation updater bot d166f388a0 Localisation updates from https://translatewiki.net.
Change-Id: I8418f599500a67622d4cd0cb9aa8cf952a6970dd
2024-05-15 09:21:42 +02:00
jenkins-bot def0c44ec4 Merge "Suggested edits: update task queue before loading" 2024-05-14 09:21:26 +00:00
Translation updater bot fcd381b91a Localisation updates from https://translatewiki.net.
Change-Id: Ia71d56ea3a3c8b8b46f726e9827e8b03750bee45
2024-05-14 09:26:27 +02:00
jenkins-bot a7e9983bd3 Merge "HomepageHooks: Inherit documentation for contributions hook" 2024-05-13 16:35:11 +00:00
jenkins-bot 63865d1213 Merge "Config: support config transforms for some options" 2024-05-13 16:18:29 +00:00
Thalia b9a0b88685 HomepageHooks: Inherit documentation for contributions hook
Reduce the maintenance burden of needing to update the documentation
when the interface changes.

This is needed for T363358, which refactors some classes that build
Special:Contributions.

Bug: T364569
Change-Id: Ia14784908790dc2cfd1b65b738730f759c780642
2024-05-13 13:54:54 +01:00
Sergio Gimeno 2748bf052e Config: support config transforms for some options
In I05e1c6dc322939619855a690a55d07adcb6b55ae two
enum config options GEHelpPanelAskMentor and
GEHelpPanelHelpDeskPostOnTop. However GE code
still expects these options to be booleans.

Introduce a wrapper config reader that relies
on CommunityConfiguration WikiPage reader but maps
new values to old values. This is in order to keep
the config code intact for eventual roll backs of
the CommunityConfiguration extension/migration.

Bug: T364053
Change-Id: I279040fef9ebcb42d333096d6675b3051e4101ed
2024-05-13 12:53:59 +02:00
Translation updater bot 85e2435d64 Localisation updates from https://translatewiki.net.
Change-Id: Ibd7663e99d10f65033845a980bb610b1d3a15166
2024-05-13 09:27:19 +02:00
Martin Urbanec e192edb942 fixLinkRecommendationData: Add --force when a production run is needed
Why:
fixLinkRecommendationData currently refuses to run
in production when --db-table is passed as an argument.
This is because the search index is delayed, and it
takes hours (if not days) to recognize update commands
coming from GrowthExperiments.

Unfortunately, when recovering from broken search index
scenario (T362367), the only solution for dangling DB
records is to drop them all, and deal with possible
incorrect removals later (by re-running the script
with --search-index).

What:
Add --force, which bypasses the "unsafe for production"
check. I documented it as "use with care", as during normal
operation, there is no reason to ever need to force it,
and understanding why the check is there is critical
to avoid breakages.

Patch also updates docstrings, as batching is in fact
implemented, and replication lag is checked in
commitTransaction(). The script indeed does not
handle search index update lag, so it has some risky
aspects, but assuming one is aware of the risks
(mainly increasing dangling search records, which
are more visible and problematic), it is executable
in production.

Bug: T364341
Change-Id: Ic8c563ce8fc36e67eeeb8a892e8f327f62a7b146
2024-05-12 22:24:51 +02:00
Sergio Gimeno a9d5a82401 Config: fix property name in HelpPanel schema
A spelling mistake was made for the property
GEHelpPanelHelpDeskPostOnTop. This is relevant
for migrating existing wiki configs to the new
config files structure without having to special
case this option.

Also rename the property associated messages.

Change-Id: Ibc61716ea5d7cecbe9dfdfa8ea41a75d84088512
2024-05-11 11:00:44 +00:00
Cyndy 5cbb18d608 Add `helpLink` and `helpURL` to extension.json
`HelpPanel`, `GrowthHomepage`, `Mentorship`, and
`GrowthSuggestedEdits` configurations have been
updated to include links to their respective help
resources

Bug: T362203
Depends-On: Ic459a2d96c0963e891e8355cd4a10d09effab357
Change-Id: I5a3380ea0a5b70c0f71913f8bbc04a43edf79ec7
2024-05-10 11:38:08 +00:00
Translation updater bot 772903dddd Localisation updates from https://translatewiki.net.
Change-Id: I484a1b4170a38a54c4c4db7f2de850048a65fa90
2024-05-10 09:29:12 +02:00
Translation updater bot b055eacc99 Localisation updates from https://translatewiki.net.
Change-Id: Ice36cb1e9b6b9f1fa17a2c69dec4c42383d41f93
2024-05-09 09:39:10 +02:00
jenkins-bot d07d529a8f Merge "Config: add missing provider description" 2024-05-08 19:16:52 +00:00
Sergio Gimeno 9fb399282b Config: add missing provider description
Change-Id: I9d7a1708cc984b003da37d1bde806e1010bdafee
2024-05-08 11:50:23 +02:00
Translation updater bot 1dfda54e02 Localisation updates from https://translatewiki.net.
Change-Id: I15bd650e6aee88c19452fbde6f7f2f821c164612
2024-05-08 09:23:53 +02:00
jenkins-bot f714dc3e9e Merge "Use new body validation in the handlers" 2024-05-07 10:38:20 +00:00
Translation updater bot 00d5128cac Localisation updates from https://translatewiki.net.
Change-Id: Idb24ee45307d81be15fcc3737267dd1f5963913f
2024-05-07 09:22:56 +02:00
Translation updater bot a558d17349 Localisation updates from https://translatewiki.net.
Change-Id: I4fb75cea0d52a5e805ba48736842f408e1598762
2024-05-06 09:25:57 +02:00
Sergio Gimeno ec26bb0b27 Config: use type integer instead of number
Use TYPE_INTEGER for pressumably int values and
keep TYPE_NUMBER for float values.

Bug: T363733
Depends-On: Ida3964c0293c67766607dcf437b8d26892418459
Change-Id: Ie5c9523758b660674af4a751275d6820f73f6876
2024-05-03 19:04:35 +00:00
Taavi Väänänen 997c3a8351
documentation: Convert eslint config to JSON
To allow LibUp to automatically work with it.

Change-Id: Ie505e035d321abba45322715d746502554b42b4f
2024-05-03 15:18:03 +03:00
Sergio Gimeno 26cf3280b6 Suggested edits: update task queue before loading
The store was emitting QUEUE_LOADING/false events before the
task queue was actually updated. Consumers of the loading
event were getting an outdated task count.

In I75dcffaa35138165be22658f1844d98ea9af6384 we introduced
the same approach but it caused issues in the post edit dialog,
see T360469. The issues were caused by the store methods
hasPreviousTask and hasNextTask returning false while the
loading property has not yet been updated after fetching
tasks.

Emit the queue loading event after the queue
is updated and make store getters return the prev/next
computed value independently from the task queue loading
or not.

Note: the source problem remains in FiltersDialog.updateLoadingState
being only subscribed to TASK_QUEUE_LOADING and not task queue
changes. Consider refactoring it in follow-up in two different
handlers, one for loading state and another for new task counts.
Also consider using a state management solution eg Pinia.

Bug: T359992
Change-Id: Ib545b9f24ea6b84504a8ba4d2c4561737be9be0b
2024-05-03 12:59:40 +02:00
Translation updater bot f550b5dc5d Localisation updates from https://translatewiki.net.
Change-Id: Ic062f507f02c74a2adf483c7e28e115f0502ff69
2024-05-03 09:28:55 +02:00
jenkins-bot fbe8ee96e7 Merge "Use user_properties.up_value with string in database query" 2024-05-03 05:10:09 +00:00
Umherirrender cf6bb3b393 Use user_properties.up_value with string in database query
The field up_value is a varbinary and should be provided as string,
not all rdbms implicit converts int/strings

Change-Id: I3d016969559401ecc54bb27c192b66183d47345b
2024-05-02 23:26:01 +02:00
Umherirrender 7bd60806e0 Migrate TaggedEditsForUsers to IReadableDatabase::newSelectQueryBuilder
Bug: T312330
Change-Id: Ib42f74c6372c56dd0bc9382d911e44b51890d44b
2024-05-02 21:58:09 +02:00
jenkins-bot 190557ed3a Merge "Remove an unnecessary space from a message" 2024-05-02 11:56:47 +00:00
Translation updater bot ee9cc38674 Localisation updates from https://translatewiki.net.
Change-Id: I30e7ed374e19cce7b4f4cc09355672c89ee7046b
2024-05-02 09:19:40 +02:00
Amir E. Aharoni 95a7f120e6 Remove an unnecessary space from a message
Change-Id: Ifd4702c83e25e97249b51bd2ead99db4a5fae1df
2024-05-01 10:32:33 +03:00
Translation updater bot 8be5ae7ebf Localisation updates from https://translatewiki.net.
Change-Id: I029e9bf215b792ca6b32f3e1b8f6cb154b5b78d8
2024-05-01 09:22:19 +02:00
Atieno eac25ef9f1 Use new body validation in the handlers
Bug: T361995
Change-Id: Ie48ac3a2b99320ca40c0d2597eb59ff79faabb2d
2024-04-30 18:02:29 +03:00
jenkins-bot 3c659e2c27 Merge "Community configuration: Fix labels for Suggested edits" 2024-04-30 12:19:36 +00:00
Michael Große 1d2c691fd0 Add support for ask-mentor and post-on-top community config enums
Bug: T362685
Depends-On: Ia58213956daea1972415d6b41a235ef478a18fe4
Change-Id: I05e1c6dc322939619855a690a55d07adcb6b55ae
2024-04-30 13:08:14 +02:00
Martin Urbanec 8e36e160ee Community configuration: Fix labels for Suggested edits
Prior to this patch,
Special:CommunityConfiguration/GrowthSuggestedEdits
had wrong labels in two places:

* `disabled` checkboxes were unlabeled in all places
   except copyediting
*  Add a link fields were unlabeled

In addition to this, two disabled labels were present,
both for the field and the control, which is inconsistent
with how we decided to represent booleans (cf. Mentorship).

This patch updates the labels for the form to meet expectations.

Bug: T360471
Change-Id: Ib92599555204966709c057a648f840838ebf543a
2024-04-30 10:49:16 +02:00
Translation updater bot 30ba08ae6d Localisation updates from https://translatewiki.net.
Change-Id: I5a740c2caadd786f25d6e1b451db008931744665
2024-04-30 09:20:56 +02:00
jenkins-bot c73c0420bf Merge "Add SuggestedEditsSchema" 2024-04-29 16:17:08 +00:00
Translation updater bot 99ac6a5993 Localisation updates from https://translatewiki.net.
Change-Id: I218760c7c053b9023fab161cb0117abc6d53d0d4
2024-04-29 09:23:30 +02:00
Umherirrender d91fa9a1ba Migrate to IReadableDatabase::newSelectQueryBuilder
Also use expression builder to avoid raw sql

Bug: T312330
Bug: T350954
Change-Id: Iaa1b114954da723bef14d1a59953aeffb85f4a8c
2024-04-28 10:23:32 +02:00
Martin Urbanec 456a16f5a7 Add SuggestedEditsSchema
Immediately after merging the patch,
Special:CommunityConfiguration/GrowthSuggestedEdits will work,
but it will look very broken. This is because of T363477 and
T362098, which will make the form look (mostly) normally.

The form should now look like https://ctrlv.cz/1zNn, and
the config for the three structured tasks should work
as expected.

Bug: T360471
Depends-On: I6b6470ac05316f475660294740fecb4e35296229
Change-Id: I0a25dd94c5f88b2a887dc7879623dd9e3219e2c8
2024-04-26 18:33:06 +02:00
Jonghyo Lee 2b1aa56370
Add EnrollAsMentor Korean alias
Change-Id: I6acd7669ff663bc5551418e88a689dd1472eefd5
2024-04-26 20:33:01 +09:00
Translation updater bot 48e1740b2c Localisation updates from https://translatewiki.net.
Change-Id: I6267013f2ff1b50105c94d696730045dfac4ec63
2024-04-26 09:48:26 +02:00
Martin Urbanec f1aa3924b2 Help panel: Do not break when CommunityConfiguration is used
`GEHelpPanelLinks` is represented as associative arrays in
CC1.0, but in CC2.0, it is returned as a stdClass. Fix
that by adding a casing.

Also remedy PHP Warnings by renaming `label` to `text`,
which is expected in HelpPanel class. Otherwise,
the following notice would be displayed:

Warning: Undefined array key "text" in
/var/www/html/w/extensions/GrowthExperiments/includes/HelpPanel.php
on line 68.

Bug: T363459
Change-Id: I1507dcb6739cb22c5cf049d19b7e3bad8db2c0da
2024-04-25 11:03:38 +00:00
Translation updater bot fa9e14da99 Localisation updates from https://translatewiki.net.
Change-Id: I7f3f0263e21f3f7c87b030ca9a930e672f280f1f
2024-04-25 09:17:51 +02:00