Commit graph

1217 commits

Author SHA1 Message Date
Translation updater bot 78652dbf5f Localisation updates from https://translatewiki.net.
Change-Id: I0d50a44d573e8e0331a84a8592df0f4b2027b731
2023-04-11 09:14:00 +02:00
Raimond Spekking a78e469407 Merge "Localisation updates from https://translatewiki.net." 2023-04-10 12:35:04 +00:00
Translation updater bot e7d507e8b5 Localisation updates from https://translatewiki.net.
Change-Id: I693e7266a53ed8a81fcd345c70ffaa0edd675483
2023-04-10 09:45:56 +02:00
Translation updater bot f7730f9aa7 Localisation updates from https://translatewiki.net.
Change-Id: I33bd2944d6fb02f766bea9e1ca31b070082c4e9c
2023-04-10 09:21:56 +02:00
Translation updater bot abd0cdca7a Localisation updates from https://translatewiki.net.
Change-Id: I8505241bf8b4101eb62ad5a0a718c9d3c802e3b2
2023-04-05 09:08:04 +02:00
Translation updater bot a73ce9fe25 Localisation updates from https://translatewiki.net.
Change-Id: I1583583795fac391046b33644bb0c65e82c6586f
2023-03-30 09:02:02 +02:00
Translation updater bot 7e5d813f7e Localisation updates from https://translatewiki.net.
Change-Id: I6582d32f8c50c117c64d84437964804379b0221b
2023-03-28 08:40:37 +02:00
jenkins-bot 66b6aae1a8 Merge "Replace use of select or selectRow with QueryBuilder" 2023-03-25 15:19:44 +00:00
sbailey bef1042e69 Replace use of select or selectRow with QueryBuilder
* All database methods using old access methods converted to use
   queryBuilder except row counters

Bug: T312434
Change-Id: I8796adf63179c4505fbb76ab6fd71cf3775c9b89
2023-03-25 15:13:59 +00:00
libraryupgrader 055ade7cb6 build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1

Change-Id: Ie4bd357a940f7166f72ba3562b40259b36394eaa
2023-03-16 02:11:20 +00:00
Translation updater bot eea0d24d03 Localisation updates from https://translatewiki.net.
Change-Id: Iadcc2b0846623268863fb8f8f92cc89b28eada26
2023-03-15 08:50:03 +01:00
libraryupgrader a855e2f8e1 build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: I5cb9604b17c4dc771fb5375e65561e1c068f6820
2023-03-12 05:23:58 +00:00
Translation updater bot e1691bbc11 Localisation updates from https://translatewiki.net.
Change-Id: I0178963c4ca78b70097049c6cb2be08872af5423
2023-03-09 09:05:25 +01:00
Translation updater bot 4d7f1fe448 Localisation updates from https://translatewiki.net.
Change-Id: I7a56cfdffa8bc243b14138aa90e06b264644b862
2023-03-08 08:42:25 +01:00
Translation updater bot 0521181440 Localisation updates from https://translatewiki.net.
Change-Id: I638f28167abb015ad6a314c1523d1e7c629313d3
2023-03-07 08:45:33 +01:00
Translation updater bot b0fd26926e Localisation updates from https://translatewiki.net.
Change-Id: Ia412cca247baae086ad644309c4f8cf2708ab46c
2023-03-06 08:33:34 +01:00
Translation updater bot cf967642e4 Localisation updates from https://translatewiki.net.
Change-Id: Ic94f701a7656c903adc40cac97e75d42991bffa1
2023-03-03 09:32:12 +01:00
Translation updater bot f06e43c240 Localisation updates from https://translatewiki.net.
Change-Id: I632602fbbe8c94656c27e1a77639e4c60f9b9d8c
2023-03-03 08:48:24 +01:00
Translation updater bot 27ab0ff2fc Localisation updates from https://translatewiki.net.
Change-Id: Ided9143061285f3a3f2d35fcb2a9dc7d0de90c3d
2023-03-02 08:43:04 +01:00
Translation updater bot fd64cf1395 Localisation updates from https://translatewiki.net.
Change-Id: I9f0dcf81e2d530c33f58357e605e028bf1080a48
2023-03-01 08:24:24 +01:00
Translation updater bot b267ae6595 Localisation updates from https://translatewiki.net.
Change-Id: I9033e31b18bb92f340f3d17d0e089fe92554bfad
2023-02-28 08:29:12 +01:00
sbailey 6aa4cdeba9 Linter Tag and Template search feature, UI and report code
* Tag and Template search is enabled using config variable
   'LinterUserInterfaceTagAndTemplateStage' and also checks for
   the linter table column 'linter_tag' to exist to protect the
   report code from error if the column is absent. As the linter
   table alter maintenance added both the linter_tag and
   linter_template at the same time, there is no reason to check
   both. The user interface code does not check for the field
   presence only the config variable.

 * This code depends on the recordLintJob code writing the tag
   and template data which is enabled by the config variable
   'LinterWriteTagAndTemplateColumnsStage' and also assumes the
   data migration maintenance script migrateTagTemplate.php has
   been run to populate linter error records created prior to
   the table alter and the write code being enabled.

Bug: T175177
Change-Id: I2f951dfcd34e3dc6ca17e8754cfaeba8baa3e835
2023-02-27 06:55:06 -08:00
sbailey 499a1c3796 Use new linter_namespace column and index in the Linter table
* This performance improvement patch uses the namespace from the
   new field 'linter_namespace' in the linter table instead of
   the 'page_namespace' in the page table. It checks for and
   requires the presence of the linter_namespace field in the
   linter table, as well as the config variable
   'LinterUseNamaspaceColumnStage' being set true.

 * If the linter_namespace field is present and aforementioned
   config variable is true, the code assumes that the config
   variable 'LinterWriteNamespaceColumnStage' is set true and
   recording the linter_namespace for new lint errors is
   active and the migrateNamespace.php migrate code has been
   run to migrate the page_namespace data into existing linter
   records that were created before the linter_namespace column
   existed and were left NULL during the table alter maintenance
   operation.

 * A follow on patch should remove the configuration variables and
   conditional code producing the final, refactored code dependent
   on the new namespace column index.

Bug: T299612
Change-Id: I4a1497d9e4dcd6a9a7befdaccf3e34c61694365d
2023-02-24 06:54:08 -08:00
Translation updater bot 073b0913f9 Localisation updates from https://translatewiki.net.
Change-Id: Iff04a425cf7f9f7dd55d7eb63785c3c8d49af036
2023-02-22 09:00:58 +01:00
jenkins-bot f01ada78ae Merge "Remove API action=record-lint" 2023-02-21 19:30:40 +00:00
Kunal Mehta eaf2d26db8 Remove API action=record-lint
The action=record-lint was a hack that allowed Parsoid/JS to send data
to MediaWiki to be stored in the linter database. Thankfully we no
longer need it in the glorious Parsoid/PHP world because it can write
directly to the database.

The API module, i18n messages and $wgLinterSubmitterWhitelist are all
removed.

Bug: T329992
Change-Id: Iba70e05a2e28f4ecd02101cff51993ebe65f19d0
2023-02-20 20:44:00 -05:00
Translation updater bot 1610285468 Localisation updates from https://translatewiki.net.
Change-Id: I6074176ae3428910e9e36b5e0aead19fc323424a
2023-02-20 09:46:49 +01:00
Translation updater bot 1728fde678 Localisation updates from https://translatewiki.net.
Change-Id: I093eab9c98a4240f8fc110780805a6451538938a
2023-02-17 08:56:12 +01:00
sbailey d12bf639f6 Change linter maintenance scripts to use existing config varaibles
* Having separate config variables to enable the maintenance
   migrateNamespace and migrateTagTemplate scripts is duplicitous
   and should be shared with the write enable config variables.

Bug: T329342
Change-Id: I4cb453fc0678b065cb42a2ca59863da1ab9cdbe4
2023-02-14 09:43:54 -08:00
Translation updater bot bb89c3966e Localisation updates from https://translatewiki.net.
Change-Id: I082b800600776deb081e2daf26153172753df74d
2023-02-13 08:30:24 +01:00
Translation updater bot bcee4b9b3b Localisation updates from https://translatewiki.net.
Change-Id: I936065a659f413108e2b9272648cb92df24401c6
2023-02-10 08:44:03 +01:00
jenkins-bot f82904c185 Merge "Link to detailed Special:LintErrors from action=info" 2023-02-10 02:10:20 +00:00
jenkins-bot 107b89a901 Merge "Move LoadExtensionSchemaUpdatesHook handler to separate class" 2023-02-10 02:10:19 +00:00
sbailey 2768a70218 Fix migrate data error when params has excessively long strings
* The linter migrate code for linter_tag field and linter_template
   field are constrained by the database schema to 32 characters
   for the tag field and 255 characters for the template field.
   In some anomalous circumstances parsoid can report tag and or
   template fields in the linter_params object that exceed those
   character limits. This code truncates these excessively long
   strings to protect the database migrate update code from a
   length exceeded error.

Bug: T329113
Change-Id: I8af7c44759f172eae77d3519a6eac47110e9b1e7
2023-02-09 18:20:46 +00:00
sbailey 07046457f0 Fix write error when linter_params has excessively long strings
* The linter write code for linter_tag field and linter_template
   field are constrained by the database schema to 32 characters
   for the tag field and 255 characters for the template field.
   In some anomalous circumstances parsoid can report tag and or
   template fields in the linter_params object that exceed those
   character limits. This code truncates these anomalous strings
   to protect the database update code from a length exceeded
   error.

Bug: T328979
Change-Id: I057ae2e32a9e1a7735b5300409e5693e8db5c764
2023-02-08 10:40:12 -08:00
Msz2001 e2ce10d548 Translate special page name (LintErrors) into Polish
Change-Id: I220fb8e91bef512f23ea668ad2c1ce474462ffb9
2023-02-07 01:44:25 +00:00
Kunal Mehta cb84f3a872 Link to detailed Special:LintErrors from action=info
action=info has a summary table of number of lint errors by category,
but we have richer information available via Special:LintErrors. If
there is a "Lint errors" section, provide a link below the table to
Special:LintErrors for the errors on this page.

Update ApiRecordLint for the new Hooks constructor and leave a FIXME
to eliminate the coupling.

Bug: T301374
Change-Id: Ic1fcf42b50d1392ac53201ceb256691133cf62ff
2023-02-06 20:41:45 -05:00
Kunal Mehta b5a7aaf7e0 Move LoadExtensionSchemaUpdatesHook handler to separate class
This hook is not allowed to have a service, so before we can add
services to the main Hooks class, it needs to be split out.

Change-Id: Ia7b4b8bf7c91ebb851c5de9f0f54f56b0993bf83
2023-02-06 20:36:45 -05:00
Translation updater bot f38c88c1ce Localisation updates from https://translatewiki.net.
Change-Id: I97fb32d1feb9d5634d80c10c893588eee4fa3315
2023-02-06 08:45:24 +01:00
Translation updater bot c72260fa61 Localisation updates from https://translatewiki.net.
Change-Id: Iab78305c80403f3ba80e0af04deba3ba76ab392c
2023-02-03 08:47:57 +01:00
jenkins-bot 54752eb953 Merge "Fix linter table linter_params definition to not be nullable" 2023-01-30 08:42:04 +00:00
Translation updater bot 7d18c60cbf Localisation updates from https://translatewiki.net.
Change-Id: Ica698fa9699b49f5f82f5a55233cd19da454301d
2023-01-30 08:30:21 +01:00
sbailey abbcc17511 Fix linter table linter_params definition to not be nullable
* update all schema files to correct linter_params being set nullable by accident in
   2020 during abstract definition update

 * include hook to provide 3rd party support, use $updater->modifyExtensionField(

Bug: T327806
Change-Id: I7fea08280cf2fa7956e5b300dc3365dc3561ca52
2023-01-26 12:47:36 -08:00
Translation updater bot 74730c5943 Localisation updates from https://translatewiki.net.
Change-Id: I4d1939cb2f7730fb871ef080d563de7ca4abe1a7
2023-01-10 08:25:04 +01:00
Translation updater bot 5609854d75 Localisation updates from https://translatewiki.net.
Change-Id: I56889bc4940f2a93f8342ced4278967e2d71b867
2023-01-05 09:09:00 +01:00
Translation updater bot 233543ce53 Localisation updates from https://translatewiki.net.
Change-Id: I8baaec23ba854da12a526e30dbe8169f664233e4
2022-12-29 10:01:49 +01:00
Umherirrender eb31c6c4dc Replace deprecated HTMLForm::addHeaderText
Bug: T325474
Change-Id: If1a4b14b6cec480f600065c913cb1f27260fbc5f
2022-12-27 12:48:42 +01:00
Translation updater bot c1abd29656 Localisation updates from https://translatewiki.net.
Change-Id: Ia4acd32cf4103f1471ad4e783afc55d47c92b221
2022-12-26 09:10:14 +01:00
Translation updater bot a52faf181f Localisation updates from https://translatewiki.net.
Change-Id: Ib0ed4e182943361a29fa986fce52a6ff15b5ae91
2022-12-21 09:16:16 +01:00
jenkins-bot 97cef36597 Merge "maintenance script for linter extension tag and template migration" 2022-12-16 15:38:11 +00:00