Legoktm has submitted this change and it was merged.

Change subject: Ignore token:give events
......................................................................


Ignore token:give events

Bug: T76246
Change-Id: I59d5a6ef2597599a9770a022d5fa7c92fbc9ffdf
---
M wikibugs.py
1 file changed, 8 insertions(+), 6 deletions(-)

Approvals:
  Legoktm: Verified; Looks good to me, approved



diff --git a/wikibugs.py b/wikibugs.py
index 99836e9..b5f4ce0 100644
--- a/wikibugs.py
+++ b/wikibugs.py
@@ -232,12 +232,14 @@
         }
 
         transactions = self.get_transaction_info(phid_info['name'], timestamp)
-        if 'ccs' in transactions and len(transactions) == 1:
-            # Ignore any only-CC updates
-            return
-        elif 'projectcolumn' in transactions and len(transactions) == 1:
-            # Ignore column changes, see T1204
-            return
+        ignored = [
+            'css',  # Ignore any only-CC updates
+            'projectcolumn',  # Ignore column changes, see T1204
+            'token:give',  # Ignore granting tokens, see T76246
+        ]
+        for event in ignored:
+            if event in transactions and len(transactions) == 1:
+                return
 
         if 'title' in transactions:
             useful_event_metadata['title'] = transactions['title']['new']

-- 
To view, visit https://gerrit.wikimedia.org/r/176483
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I59d5a6ef2597599a9770a022d5fa7c92fbc9ffdf
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/wikibugs2
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to