Commit graph

1275 commits

Author SHA1 Message Date
Kunal Mehta db5e5e9003 Use estimateRowCount() instead of actually counting everything
On large wikis with lots of lint errors, counting the entire table can
be problematic from a performance perspective, sometimes taking minutes.

Instead, use Database::estimateRowCount(), which uses EXPLAIN SELECT
COUNT(*) to get an approximate value for the number of rows. We do make
sure that if the category actually has no rows, that it will return 0.

This should be considered a temporary solution, and we should look into
doing something like the SiteStats incremental updates table in the long
run.

Bug: T184280
Change-Id: I2d4dcc615477fd60e41dfed4a3d1a3ad52a9f4af
2018-02-01 13:15:06 -08:00
Translation updater bot 7ba5f25eeb Localisation updates from https://translatewiki.net.
Change-Id: I6d44dd545cd7c29d9befa1fbdad9e1ba21d780e6
2018-01-31 22:20:10 +01:00
Translation updater bot b4a8152e0b Localisation updates from https://translatewiki.net.
Change-Id: If8724d183d7d4b55510b076e7afc6af513e05f3f
2018-01-29 22:20:23 +01:00
jenkins-bot bc17845032 Merge "Fix NWE integration to use new tempWikitextEditor" 2018-01-29 17:22:26 +00:00
Translation updater bot 549319a033 Localisation updates from https://translatewiki.net.
Change-Id: Ie359bc1eb81065e937a18ff37384bab8d0c5384d
2018-01-24 22:20:53 +01:00
Translation updater bot c42b3d4400 Localisation updates from https://translatewiki.net.
Change-Id: Icfe843b1b429b8ccea4bfb8b1bb6e9a24cd46622
2018-01-23 22:22:49 +01:00
Ed Sanders 6e379107c3 Fix NWE integration to use new tempWikitextEditor
Bug: T185279
Depends-On: I3678996bcf644cc889dd168ac3ce48b5c3633ec1
Change-Id: I31a21e10b3fcd88fbce6881475f02a9d37df39c2
2018-01-22 10:28:36 -08:00
Reedy ecd8769508 Update IPSet use statement
Bug: T182273
Change-Id: I4f04462d13a37efd10e1e530a9b79e45cfb90309
2018-01-21 04:45:55 +00:00
Translation updater bot ecc5e35ce2 Localisation updates from https://translatewiki.net.
Change-Id: I8a5d310ec89e33d675e9fbbcc98b6c9c81376671
2018-01-20 14:42:50 +01:00
Translation updater bot 83b3c5724c Localisation updates from https://translatewiki.net.
Change-Id: Ia7febf91818248d5166c3f9500bd07128148c44a
2018-01-18 22:49:32 +01:00
Translation updater bot 31766d17aa Localisation updates from https://translatewiki.net.
Change-Id: I30a0bdaf11aafc2aff09f980f2d308b5f2d476d2
2018-01-17 22:45:49 +01:00
Translation updater bot 755724b441 Localisation updates from https://translatewiki.net.
Change-Id: I8ec60b002958c1fcd6a3df6b288dde51b7c44c9e
2018-01-16 22:49:29 +01:00
Translation updater bot 679d14f35f Localisation updates from https://translatewiki.net.
Change-Id: Iad366192a02db1d2d93d8451352f8ea502039c0b
2018-01-15 22:25:15 +01:00
Translation updater bot be9cded2c1 Localisation updates from https://translatewiki.net.
Change-Id: I9d584c425a46901119ea75b0f243bfe1bce9f35f
2018-01-14 22:17:07 +01:00
Translation updater bot c4b6cd26cc Localisation updates from https://translatewiki.net.
Change-Id: I9efe3829a0e1895bc12e35659a3fa22ef1ef3772
2018-01-13 22:15:17 +01:00
Translation updater bot b769de5e4b Localisation updates from https://translatewiki.net.
Change-Id: If4a162561457cdb793c471a385aaec8888784723
2018-01-09 22:29:39 +01:00
Translation updater bot 6bbe3670f3 Localisation updates from https://translatewiki.net.
Change-Id: I2fa1699729bb42b6c15d56d7438ca4e63a471f31
2018-01-08 22:35:52 +01:00
Translation updater bot 3affaf05bc Localisation updates from https://translatewiki.net.
Change-Id: I6d1431b25ece072d50dad4fbde46f8f208b28c5d
2018-01-06 09:14:16 +01:00
Translation updater bot 53e94320fe Localisation updates from https://translatewiki.net.
Change-Id: I19212ce514e7c067fc5e5b8bd7415c5c6703546d
2018-01-05 09:22:33 +01:00
Kunal Mehta 34b160621c Use SPDX 3.0 license identifier
SPDX released version 3 of their license list (<https://spdx.org/licenses/>),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.

Bug: T183858
Change-Id: Iecbc1b73bf7a4f3e52f8a4ed4aba9442707516ab
2018-01-04 01:32:59 +00:00
Translation updater bot a34951d1b7 Localisation updates from https://translatewiki.net.
Change-Id: I82b025ae93d9b4ccc4c8465766be5a43c30f9477
2018-01-01 09:18:59 +01:00
Umherirrender f3166dee38 Require MediaWiki 1.31 in extension.json for AutoloadNamespaces
AutoloadNamespaces is a new feature in 1.31

Change-Id: If877db9d628598f3d91a55b767be421cfa8a50b1
2017-12-31 14:05:31 +01:00
Translation updater bot 5aa928fb1f Localisation updates from https://translatewiki.net.
Change-Id: I6a5ba413beca3772bb4ad451d93d7ba501890ba0
2017-12-31 09:46:46 +01:00
libraryupgrader 226f13cce5 build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
Change-Id: Id9dfab7b519cb7fd99998d72c3d8626aa3ac96ef
2017-12-29 22:37:21 +00:00
Translation updater bot 113a73b1d3 Localisation updates from https://translatewiki.net.
Change-Id: I8a3a34da6b49978b7f6a0ca9c127d38b6f4d61aa
2017-12-29 10:06:30 +01:00
Translation updater bot f11f90525a Localisation updates from https://translatewiki.net.
Change-Id: I89597011b69dee69f7cc4c76c1e30baee34f68aa
2017-12-27 10:31:11 +01:00
Translation updater bot 1691ec4e8b Localisation updates from https://translatewiki.net.
Change-Id: I84072578c696cefd2096b90aab1bec372e569fe9
2017-12-23 22:26:59 +01:00
Translation updater bot 39e87015e6 Localisation updates from https://translatewiki.net.
Change-Id: If391ce795e55b16fbfcc83886f52ae33b938bdc7
2017-12-22 22:23:10 +01:00
Translation updater bot 4d80429580 Localisation updates from https://translatewiki.net.
Change-Id: I775890da1ce3a84125b2a4a79313f81b96380b89
2017-12-21 23:15:19 +01:00
jenkins-bot 2e740a8312 Merge "Move category IDs into the extension.json information" 2017-12-21 18:40:24 +00:00
Translation updater bot 6157c1e3d9 Localisation updates from https://translatewiki.net.
Change-Id: Ic99e499cebe2c03e576fd8ce639a3d9a4428729d
2017-12-20 23:22:55 +01:00
Translation updater bot 99421d2caa Localisation updates from https://translatewiki.net.
Change-Id: Iea19ecee06103ca67a0cdbbcdd5bf9d3857598b2
2017-12-19 22:34:29 +01:00
Translation updater bot f07e91341e Localisation updates from https://translatewiki.net.
Change-Id: I4c22e2470fd4d240e0553c1bfd7125c2f424570f
2017-12-18 23:06:39 +01:00
Translation updater bot 3357fe4690 Localisation updates from https://translatewiki.net.
Change-Id: I5fe09c42b5cc707d9ab99bc8ad09ad2630d78f66
2017-12-17 22:26:04 +01:00
Translation updater bot ef865f2473 Localisation updates from https://translatewiki.net.
Change-Id: Ib44065911fae650c0c01e53440b4be1200ea2be4
2017-12-15 22:37:58 +01:00
Translation updater bot d75e05a9aa Localisation updates from https://translatewiki.net.
Change-Id: If8a57bbd2cdc2cabfe5c1f4a4d36fed1ef3837a3
2017-12-14 23:12:24 +01:00
Subramanya Sastry b98e04e065 Update en/i18n message for multiple-unclosed-formatting-tags
* Looks like I missed other instances :(

Change-Id: If28d3127ca93af575d8b7c2b8e1539efde0639c2
2017-12-13 17:29:18 -06:00
Translation updater bot bf43e07357 Localisation updates from https://translatewiki.net.
Change-Id: I56d564b927cd2641fe7e8ae91d0bf0ffa20bf374
2017-12-13 23:34:21 +01:00
Translation updater bot ac2472106d Localisation updates from https://translatewiki.net.
Change-Id: Id6ee39bdb3a2b66b363d9553e8e9e78b69537307
2017-12-12 22:52:52 +01:00
jenkins-bot 3879150f47 Merge "Update en/i18n message for multiple-unclosed-formatting-tags" 2017-12-12 02:12:09 +00:00
Kunal Mehta 33dcc7211e Switch to using a PSR-4 autoloader
Change-Id: Iea8f1348f7911e0e094a40db2e9dbe294e8dbe7f
2017-12-11 17:20:02 -08:00
Subramanya Sastry b416e84f80 Update en/i18n message for multiple-unclosed-formatting-tags
* On the Parsoid side, we update the use of this linter category
  for more than small and big tags.

Change-Id: I55ac9e3cc16135ac4e353a03d4d9223a599b58b8
2017-12-11 17:04:11 -06:00
Translation updater bot 7a7ff2b87e Localisation updates from https://translatewiki.net.
Change-Id: Iccc8939835758622744656575444dacd1701a673
2017-12-11 23:38:54 +01:00
Translation updater bot 5d7ab916bf Localisation updates from https://translatewiki.net.
Change-Id: I74f96b40a77c0f7cb4c4cbf9587b938bc9a019a6
2017-12-10 22:33:17 +01:00
libraryupgrader 172dcb6bb0 build: Updating mediawiki/minus-x to 0.2.1
Change-Id: I71e39df4823a60271d03abd2343d1a66c3486d25
2017-12-10 00:28:24 +00:00
Translation updater bot e8eba36700 Localisation updates from https://translatewiki.net.
Change-Id: I8de4cca6bdfa04bf5843b5e5978a1cf97809d325
2017-12-09 22:19:43 +01:00
Translation updater bot a3ba3e0d23 Localisation updates from https://translatewiki.net.
Change-Id: I03a2ccbc020b7f791586ede709607401c04cb474
2017-12-08 22:37:26 +01:00
C. Scott Ananian 2e49c745d7 Move category IDs into the extension.json information
This reduces the number of different files that need to be modified
in order to add a new linter category.

Change-Id: Id095317d6d761c57e2ce632d34ebd962bf85e785
2017-12-08 11:28:21 -05:00
C. Scott Ananian 60562e74fc Move $hasNameCats into the information in extension.json
Change-Id: Id4f01a2929ce43ac9d6c33655eed25bfd2cf37e3
2017-12-08 06:42:43 +00:00
C. Scott Ananian c0ad96898d Add 4 new high priority linter categories
* multiple-unclosed-formatting-tags: this is a subset of the unclosed
  formatting tag lint, but is higher priority because unclosed tags
  like <small> and <big> compound their effects

* unclosed-quotes-in-heading: unclosed wikitext i/b tag with a heading
  ancestor (this causes breakage which leaks out of the table of
  content to affect the rest of the page)

* multiline-html-table-in-list: html table with newline breaks nested
  in a list

* misc-tidy-replacement-issues: this is a catchall category for
  infrequent long-tail issues, used to enable speedy deployment of new
  linter categories during tidy replacement as wikis get RemexHtml
  enabled.  These will have a subtype property to identify the
  specific issue.

Change-Id: Ic2c965132f7a09679574489865bdc81df9e43845
2017-12-08 06:39:16 +00:00