-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathchannels.py
82 lines (80 loc) · 3.81 KB
/
channels.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
channels = {
"#huggle":
lambda x: x.get("X-Bugzilla-Product", None) == "Huggle",
"#pywikibot":
lambda x: x.get("X-Bugzilla-Product", None) == "Pywikibot",
"#wikidata":
lambda x: \
(
x.get("X-Bugzilla-Product", None) in ["MediaWiki extensions"] and
x.get("X-Bugzilla-Component", None) in
["WikidataRepo", "WikidataClient"]
) or \
(
x.get("X-Bugzilla-Product", None) in ["Wikimedia"] and
x.get("X-Bugzilla-Component", None) in
["Wikidata"]
),
"#wikimedia-corefeatures":
lambda x: (x.get("X-Bugzilla-Product", None) == "MediaWiki extensions") and \
(x.get("X-Bugzilla-Component", None) in ["Echo", "Flow", "PageCuration", "Thanks", "WikiLove"]),
"#mediawiki-i18n":
lambda x: (x.get("X-Bugzilla-Component", None) in ["ContentTranslation"]),
"#wikimedia-labs":
lambda x: x.get("X-Bugzilla-Product", None) in ["Tool Labs tools", "Wikimedia Labs"] or \
(
(x.get("X-Bugzilla-Product", None) == "MediaWiki extensions") and \
(x.get("X-Bugzilla-Component", None) in ["OpenStackManager"])
),
"#wikimedia-mobile":
lambda x: x.get("X-Bugzilla-Product", None) in ["Wikimedia Mobile", "Commons App", "Wikipedia App", "MobileFrontend"],
"#wikimedia-qa":
lambda x: (
(x.get("X-Bugzilla-Product", None) == "Wikimedia") and \
(x.get("X-Bugzilla-Component", None) in ["Continuous integration", "Quality Assurance"])
) or \
(
(x.get("X-Bugzilla-Product", None) == "Wikimedia Labs") and \
(x.get("X-Bugzilla-Component", None) == "deployment-prep (beta)")
),
"#mediawiki-visualeditor":
lambda x: x.get("X-Bugzilla-Product", None) in ["VisualEditor", "OOjs", "OOjs UI"] or \
(
(x.get("X-Bugzilla-Product", None) == "MediaWiki extensions") and \
(x.get("X-Bugzilla-Component", None) in ["TemplateData", "Cite", "WikiEditor"])
) or \
(
(x.get("X-Bugzilla-Product", None) == "MediaWiki") and \
(x.get("X-Bugzilla-Component", None) in ["Page editing", "ResourceLoader"])
),
"#mediawiki-parsoid":
lambda x: x.get("X-Bugzilla-Product", None) in ["Parsoid"],
"#wikimedia-multimedia":
lambda x: \
(
x.get("X-Bugzilla-Product", None) in ["MediaWiki extensions"] and
x.get("X-Bugzilla-Component", None) in
["UploadWizard", "TimedMediaHandler", "VipsScaler", "GlobalUsage", "MultimediaViewer", "GWToolset",
"Score", "PagedTiffHandler", "PdfHandler", "ImageMap", "CommonsMetadata", "OggHandler",
"ImageMetrics"]
) or \
(
x.get("X-Bugzilla-Product", None) in ["MediaWiki"] and
x.get("X-Bugzilla-Component", None) in
["File management", "Uploading"]
),
"#wikimedia-growth":
lambda x:
(
x.get("X-Bugzilla-Product", None) in ["MediaWiki extensions"] and
x.get("X-Bugzilla-Component", None) in ["GuidedTour", "GettingStarted"]
),
"#wikimedia-analytics":
lambda x: x.get("X-Bugzilla-Product", None) == "Analytics",
# The following changes should ALWAYS be in #wikimedia-dev, even if the bugs
# are also reported elsewhere.
"#wikimedia-dev":
lambda x: x.get("X-Bugzilla-Product", None) == "MediaWiki"
}
default_channel = "#wikimedia-dev"
firehose_channel = "#mediawiki-feed"