Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/176483
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(-)
git pull ssh://gerrit.wikimedia.org:29418/labs/tools/wikibugs2
refs/changes/83/176483/1
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: newchange
Gerrit-Change-Id: I59d5a6ef2597599a9770a022d5fa7c92fbc9ffdf
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/wikibugs2
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits