Go to file
Daimona Eaytoy 53b9f38888 Refactor data load in ViewEdit
Instead of having a single loadRequest method (which could end up
loading from the DB...), split it in a DB-only method and a request-only
one. Simplify the logic used to show the filter editor. Show the page
without changes or warnings if the user lost editing rights in the
meanwhile. Avoid two static properties, and pass them in when relevant
instead. Bonus: optimize a query to sort by afh_id instead of afh_timestamp to avoid filesort.

This will allow a subsequent patch to clean the $row object in
loadRequest.

Change-Id: Iabd0ae5b18571f8cad44ef2d86bcf2519e7f95ba
2020-01-21 14:15:41 +01:00
.phan Migrate to new phan 2019-03-16 09:41:23 +00:00
db_patches Add new schemas for splitting afl_filter 2019-09-22 16:04:45 +00:00
i18n Localisation updates from https://translatewiki.net. 2020-01-21 08:15:13 +01:00
includes Refactor data load in ViewEdit 2020-01-21 14:15:41 +01:00
maintenance Fix silly bug in fixOldLogEntries 2019-12-16 17:26:15 +00:00
modules ext.abuseFilter.tools.js: Replace deprecated editToken with csrfToken 2019-09-22 01:54:34 +00:00
tests Refactor data load in ViewEdit 2020-01-21 14:15:41 +01:00
.eslintrc.json build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0 2019-04-03 15:44:45 -07:00
.gitignore Add config for Selenium and basic tests 2019-09-17 16:23:07 +00:00
.gitreview Whoops, track not trace 2016-10-24 17:01:30 -07:00
.phpcs.xml build: Updating dependencies 2020-01-21 07:38:54 +00:00
.stylelintrc.json build: Bump devDependencies to latest 2018-02-10 21:00:53 +00:00
AbuseFilter.alias.php Add aliases for Serbian language 2018-12-24 02:16:55 +00:00
abusefilter.tables.pg.sql Add new schemas for splitting afl_filter 2019-09-22 16:04:45 +00:00
abusefilter.tables.sql Add new schemas for splitting afl_filter 2019-09-22 16:04:45 +00:00
abusefilter.tables.sqlite.sql Add new schemas for splitting afl_filter 2019-09-22 16:04:45 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.4.0 2018-09-01 05:29:54 +00:00
composer.json build: Updating dependencies 2020-01-21 07:38:54 +00:00
COPYING Add COPYING 2014-01-22 21:21:10 +00:00
extension.json Add a base class for parser transition 2019-12-15 13:29:56 +00:00
Gruntfile.js build: Updating dependencies 2020-01-21 07:38:54 +00:00
hooks.txt Add a hook to determine whether the current action should be filtered 2019-08-13 10:31:29 +02:00
package-lock.json build: Updating dependencies 2020-01-21 07:38:54 +00:00
package.json build: Updating dependencies 2020-01-21 07:38:54 +00:00