* Update extensions/AbuseFilter from branch 'REL1_43'
to f16f3d042e37223141df777b7f22ade857cd3c80
- Protected variables logging: Only compute protected variable values
Why:
* To log when a user views the value of a protected variable,
the AbuseFilter code needs to determine if the value of those
protected variables are not null and the variable is set.
** To do this we need to compute all protected variable values
even if the values are lazily loaded.
** However, the code that does this also loads all other lazily
loaded variables.
* Loading all the lazily loaded variables causes expensive
variables to be loaded even if they are not used.
** This causes noticeable issues when testing filter conditions
against a set of recent actions.
* Instead of computing all lazily loaded variables, the code only
needs to compute lazily protected variables.
** In some cases we can also not load any variable values, because
the code was only looking for the list of defined variables
and not their values.
What:
* Update CheckMatch, SpecialAbuseLog, AbuseFIlterViewExamine,
and AbuseFilterViewTestBatch to not compute all lazily loaded
variables via VariablesManager::dumpAllVars:
** In cases where it is possible, the ::dumpAllVars call is replaced
with a calls to VariableHolder to get the variables.
** In all other cases update the second argument to ::dumpAllVars
from `true` to the list of all protected variables.
Bug: T400673
Change-Id: I7136c61f4e4574de8ffde21076df1c6645a36f81
(cherry picked from commit 7d948eead42241aa6495bf2d0c3fc9b3c42aea72)
|
||
|---|---|---|
| .. | ||
| AbuseFilter@f16f3d042e | ||
| CategoryTree@3194c7ae4d | ||
| Cite@9f098f6fd8 | ||
| CiteThisPage@bb1d9e3654 | ||
| CodeEditor@c7c4a0f8c3 | ||
| ConfirmEdit@845db6e7f6 | ||
| DiscussionTools@185036b0ab | ||
| Echo@c1b049e6e3 | ||
| Gadgets@622e41b45e | ||
| ImageMap@757a82efee | ||
| InputBox@1b0f0e91af | ||
| Interwiki@d192f6d809 | ||
| Linter@82a282ffa2 | ||
| LoginNotify@6ead73513e | ||
| Math@3d0e697cde | ||
| MultimediaViewer@fa281f47e6 | ||
| Nuke@fc8661532e | ||
| OATHAuth@07812f4994 | ||
| PageImages@3679424102 | ||
| ParserFunctions@f5aaf52e31 | ||
| PdfHandler@431c8f9ea5 | ||
| Poem@7f17973c88 | ||
| ReplaceText@86bdf5e258 | ||
| Scribunto@ea571ce910 | ||
| SecureLinkFixer@b41e89cf15 | ||
| SpamBlacklist@b293eb55c6 | ||
| SyntaxHighlight_GeSHi@08a01c78dc | ||
| TemplateData@ea4424ec99 | ||
| TextExtracts@273dcfbace | ||
| Thanks@b2baee710a | ||
| TitleBlacklist@f4860fe5ef | ||
| VisualEditor@00fc695507 | ||
| WikiEditor@6c5e81ad24 | ||
| .gitignore | ||
| .vsls.json | ||
| README | ||
== User Information ==
Extensions are distributed separately. Drop them into this directory and enable
as per the extension's installation instructions.
You can find a list of extensions and documentation at
<https://www.mediawiki.org/wiki/Special:MyLanguage/Category:Extensions>.
== Development Information ==
If you are a developer, you might want to fetch the extension tree in another
directory and make a symbolic link:
mediawiki/extensions$ ln -s ../../extensions-trunk/FooBar
Most extensions are available through Git:
https://gerrit.wikimedia.org/g/mediawiki/extensions
Please note that under POSIX systems (Linux...), parent of a symbolic path
refers to the link source, NOT to the target! You should check the env
variable MW_INSTALL_PATH in case the extension is not in the default location.
The following code snippet lets you override the default path:
$IP = getenv( 'MW_INSTALL_PATH' );
if ( $IP === false ) {
$IP = __DIR__ . '/../..';
}
require_once "$IP/maintenance/Maintenance.php"; // a MediaWiki core file