Ladsgroup has uploaded a new change for review.
https://gerrit.wikimedia.org/r/273995
Change subject: Store and show scores when rc_type == RC_NEW
......................................................................
Store and show scores when rc_type == RC_NEW
cuz why not?
Change-Id: I2f1cdca0fadcbf8d0deaefcaefd4efc15c9cbf76
---
M includes/Hooks.php
M maintenance/PopulateDatabase.php
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ORES
refs/changes/95/273995/1
diff --git a/includes/Hooks.php b/includes/Hooks.php
index 087f01d..a3a0afc 100644
--- a/includes/Hooks.php
+++ b/includes/Hooks.php
@@ -41,8 +41,8 @@
if ( $rc->getAttribute( 'rc_bot' ) && $wgOresExcludeBots ) {
return true;
}
-
- if ( $rc->getAttribute( 'rc_type' ) === RC_EDIT ) {
+ $rc_type = $rc->getAttribute( 'rc_type' );
+ if ( $rc_type === RC_EDIT || $rc_type === RC_NEW ) {
$revid = $rc->getAttribute( 'rc_this_oldid' );
$logger = LoggerFactory::getInstance( 'ORES' );
$logger->debug( 'Processing edit {revid}', [
diff --git a/maintenance/PopulateDatabase.php b/maintenance/PopulateDatabase.php
index b4fc512..b5260f0 100644
--- a/maintenance/PopulateDatabase.php
+++ b/maintenance/PopulateDatabase.php
@@ -50,7 +50,7 @@
$count = 0;
while ( $count < $this->revisionLimit ) {
- $conditions = [ 'oresc_id IS NULL', 'rc_type' => 0 ];
+ $conditions = [ 'oresc_id IS NULL', 'rc_type' => [ 1, 0
] ];
if ( $wgOresExcludeBots === true ) {
$conditions['rc_bot'] = 0;
}
--
To view, visit https://gerrit.wikimedia.org/r/273995
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2f1cdca0fadcbf8d0deaefcaefd4efc15c9cbf76
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