Commit graph

1232 commits

Author SHA1 Message Date
Kunal Mehta b41e74ce8b Hardcode category ids
Instead of having a complex auto-increment category manager that had
additional caching, just hardcode the (currently 6) ids for each
category, which allows us to simplify a lot of code.

If Parsoid sends a lint error in a category that we don't know about, it
is silently dropped.

Bug: T151287
Change-Id: Ice6edf1b7985390aa0c1c410d357bc565bb69108
2016-11-22 18:31:17 -08:00
Translation updater bot 03be9d61c0 Localisation updates from https://translatewiki.net.
Change-Id: Ife6b67db3375c586d9ad769d76162a4141637d32
2016-11-22 23:25:00 +01:00
Justin Du 9970699910 API: Fix example URL for list=linterrors
The prefix should be lnt, not le.

Bug: T151284
Change-Id: Ib8ffbc9ee181e93da6b990ef8c788da7e49767cd
2016-11-21 20:25:29 -08:00
Translation updater bot 83b1003e6e Localisation updates from https://translatewiki.net.
Change-Id: Id6348fde3f5f397c2cc1c86d1b40f9c0426d629f
2016-11-20 22:19:03 +01:00
Translation updater bot d204de99e7 Localisation updates from https://translatewiki.net.
Change-Id: Ice589f18f39c9e540860e7b9fadda5e4e640fbff
2016-11-19 22:07:09 +01:00
Translation updater bot 18f9409dac Localisation updates from https://translatewiki.net.
Change-Id: I3b494371a68e9188f7850138b95f2ed812e18707
2016-11-18 22:15:18 +01:00
Translation updater bot 95f599ffd4 Localisation updates from https://translatewiki.net.
Change-Id: I7e316101614cf356b2ef2f207a0f7cd59eb92650
2016-11-17 22:53:42 +01:00
Arlo Breault 958623f0fb Display self-closed tags
Change-Id: I6c084a6c72114b57a21cd367d398c673c5c4d991
2016-11-17 12:32:46 -08:00
Translation updater bot 7e4bd54edb Localisation updates from https://translatewiki.net.
Change-Id: I15e06c49f1842cad48113d00e291848a8f51ce5c
2016-11-16 22:48:03 +01:00
jenkins-bot ff8ccb69c6 Merge "Update lint errors via the job queue" 2016-11-16 16:50:39 +00:00
Kunal Mehta 9ecf62ead3 Update lint errors via the job queue
The job queue will allow us to have better flood control and rate
limiting instead of trying to do all the database writes as soon as
parsoid contacts MediaWiki.

On the downside, this means it may take longer for changes to be
reflected in the database and to users, but we already have no promise
for that, so it seems okay.

Note that if you don't have a job queue runner set up, you'll need to
run the runJobs.php script every time to have the jobs execute.

Change-Id: I25fd54734aca4dab09711e7f6aee027654931300
2016-11-15 11:31:45 -08:00
Translation updater bot 86218c9c7f Localisation updates from https://translatewiki.net.
Change-Id: I5ea53b2125a1d09e8a6ad9cc9af21b47a245a9f8
2016-11-13 22:48:33 +01:00
Translation updater bot 881f69a997 Localisation updates from https://translatewiki.net.
Change-Id: I3b98b1b74414453713ec60fd0469feec6263f4c3
2016-11-12 22:54:15 +01:00
Translation updater bot 7b3eba647a Localisation updates from https://translatewiki.net.
Change-Id: I6c1621a7b5a8a392272c73d1bd55ea5c6a7bbb41
2016-11-11 22:57:05 +01:00
Translation updater bot 73a5da149b Localisation updates from https://translatewiki.net.
Change-Id: I44004c2c838b4e7c253bbbe16c37baa270bd6d51
2016-11-10 23:31:39 +01:00
Translation updater bot ad14ea3d98 Localisation updates from https://translatewiki.net.
Change-Id: Ib2cd4e4dedd5f9c3882b53fae1dcb996977d6c6a
2016-11-09 22:43:13 +01:00
Translation updater bot d2b5387c07 Localisation updates from https://translatewiki.net.
Change-Id: I7618c308bbd9dd82ddc864c05acd1f6a26436eb4
2016-11-08 22:46:38 +01:00
Translation updater bot 3a7867e193 Localisation updates from https://translatewiki.net.
Change-Id: I7a2f1891afa1228cd5b3315fbd4818df37f8a1ab
2016-11-04 22:50:40 +01:00
jenkins-bot 56426c2b73 Merge "Add index on linter.linter_cat" 2016-11-03 22:02:54 +00:00
jenkins-bot 14677f0408 Merge "Store linter_cat names in a separate table" 2016-11-03 22:01:25 +00:00
Kunal Mehta 3d12f762e6 Add index on linter.linter_cat
For queries that list all errors of a certain type.

This patch needs to be applied manually, update.php won't work.

Change-Id: I42abded9df3ef2ff242be2b16f4c57bafc03ae39
2016-11-03 14:53:31 -07:00
Kunal Mehta ec6f4722aa Store linter_cat names in a separate table
linter_cat is now an int ID that points to a row in the new
lint_categories table.

The mapping between category names and ids is all handled in PHP, and
cached in APC.

Note that you will need to drop the `linter` table manually and re-run
update.php for this to take effect.

Change-Id: I369d9b4d8d08289b4a20d1cd29a2e327bad28ef8
2016-11-03 14:51:10 -07:00
Translation updater bot 56b95a242a Localisation updates from https://translatewiki.net.
Change-Id: Icc2e7e8ca7eac3aa2a84b506d9d57cbc93af879e
2016-11-02 22:50:24 +01:00
Translation updater bot 42592112e6 Localisation updates from https://translatewiki.net.
Change-Id: I051573f219bd788b185d554215961056762311ec
2016-11-01 22:44:45 +01:00
Translation updater bot 79b3b09a3b Localisation updates from https://translatewiki.net.
Change-Id: I4a1885ecbf347da162f466e2837a5aa238114ab3
2016-10-30 22:43:27 +01:00
Arlo Breault e75b94d226 Fix schema for sqlite
Change-Id: Iacc26fb2dc6b31914d000a186f61be8244405b47
2016-10-26 01:28:41 +00:00
Chad Horohoe a2394bbb71 Whoops, track not trace 2016-10-24 17:02:51 -07:00
Chad Horohoe 0d80ef838e Swapping defaultbranch for trace
The former is a maintenance nightmare when branching.

Bug:T146293
2016-10-24 16:37:47 -07:00
Kunal Mehta c33361e980 Show tag name for missing-end-tag too
Added in Parsoid 6d432a61f.

Change-Id: Ia716949f4fadacc3c8aab25337897c9b039f1e54
2016-10-20 14:03:25 -07:00
Kunal Mehta fa095f07c6 Adjust phpcs rules
Excluse MediaWiki.Commenting.FunctionComment.MissingReturn for now
because of a false positive

Change-Id: I0f0833f80374c70b9e40056cc83db68568ba790c
2016-10-20 14:03:25 -07:00
Kunal Mehta bce5b31616 Initial commit
This configures a MediaWiki extension to recieve Parsoid's lint errors
and expose them to users.

Change-Id: Ie0776aecf145eb1c87c2a539ddf3ea8d35a899f5
2016-10-17 16:02:53 -07:00
Kunal Mehta 44a0126f3a Add .gitreview
Change-Id: I75df24153d09c5a86b56c14497677fca94314756
2016-10-13 01:13:21 -07:00