Ladsgroup has uploaded a new change for review.
https://gerrit.wikimedia.org/r/297540
Change subject: Remove oresc_is_predicted = 1 in db queries
......................................................................
Remove oresc_is_predicted = 1 in db queries
It doesn't serve any meaningful purpose in this case
Change-Id: Ie1a7321c2075c1c6fa5b302af52c3ca2569cb8e2
---
M includes/Hooks.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ORES
refs/changes/40/297540/1
diff --git a/includes/Hooks.php b/includes/Hooks.php
index 5f593bc..9f194b0 100644
--- a/includes/Hooks.php
+++ b/includes/Hooks.php
@@ -123,7 +123,7 @@
$join_conds['ores_classification'] = [ 'LEFT JOIN',
'rc_this_oldid = oresc_rev ' .
- 'AND oresc_is_predicted = 1 AND oresc_class = 1' ];
+ 'AND oresc_class = 1' ];
$join_conds['ores_model'] = [ 'LEFT JOIN',
'oresc_model = oresm_id ' .
@@ -134,7 +134,7 @@
// Override the join conditions.
$join_conds['ores_classification'] = [ 'INNER JOIN',
'rc_this_oldid = oresc_rev ' .
- 'AND oresc_is_predicted = 1 AND oresc_class =
1' ];
+ 'AND oresc_class = 1' ];
// Filter out non-damaging edits.
$conds[] = 'oresc_probability > '
--
To view, visit https://gerrit.wikimedia.org/r/297540
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie1a7321c2075c1c6fa5b302af52c3ca2569cb8e2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ORES
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits