25
25
26
26
# Zulip stream and topic mapping for each squad
27
27
squad_streams = {
28
- "Database Squad" : {"stream" : "Database Squad" , "topic" : "Doc alerts" },
29
- "Big Data and AI Squad" : {"stream" : "bigdata & ai" , "topic" : "helpcenter_alerts" },
30
- "Compute Squad" : {"stream" : "compute" , "topic" : "hc_alerts topic" },
31
- "Network Squad" : {"stream" : "network" , "topic" : "Alerts_HelpCenter" }
28
+ # "Database Squad": {"stream": "Database Squad", "topic": "Doc alerts"},
29
+ # "Big Data and AI Squad": {"stream": "bigdata & ai", "topic": "helpcenter_alerts"},
30
+ # "Compute Squad": {"stream": "compute", "topic": "hc_alerts topic"},
31
+ # "Network Squad": {"stream": "network", "topic": "Alerts_HelpCenter"}
32
+ "Database Squad" : {"stream" : "4grafana" , "topic" : "testing" },
33
+ "Big Data and AI Squad" : {"stream" : "grafana" , "topic" : "testing" },
34
+ "Orchestration Squad" : {"stream" : "4grafana" , "topic" : "testing" },
35
+ "Compute Squad" : {"stream" : "grafana" , "topic" : "testing" }
32
36
}
33
37
34
38
@@ -59,6 +63,7 @@ def connect_to_db(db_name):
59
63
60
64
61
65
def check_orphans (conn_orph , squad_name , stream_name , topic_name ):
66
+ results = []
62
67
cur_orph = conn_orph .cursor ()
63
68
tables = ["open_prs" , "open_prs_swiss" ]
64
69
for table in tables :
@@ -79,6 +84,7 @@ def check_orphans(conn_orph, squad_name, stream_name, topic_name):
79
84
80
85
81
86
def check_open_issues (conn , squad_name , stream_name , topic_name ):
87
+ results = []
82
88
cur = conn .cursor ()
83
89
tables = ["open_issues" , "open_issues_swiss" ]
84
90
for table in tables :
@@ -99,6 +105,7 @@ def check_open_issues(conn, squad_name, stream_name, topic_name):
99
105
100
106
101
107
def check_outdated_docs (conn , squad_name , stream_name , topic_name ):
108
+ results = []
102
109
cur = conn .cursor ()
103
110
tables = ["last_update_commit" , "last_update_commit_swiss" ]
104
111
for table in tables :
@@ -119,6 +126,7 @@ def check_outdated_docs(conn, squad_name, stream_name, topic_name):
119
126
120
127
121
128
def send_zulip_notification (row , api_key , stream_name , topic_name ):
129
+ message = []
122
130
current_date = datetime .now ().strftime ("%Y-%m-%d" )
123
131
client = zulip .
Client (
email = "[email protected] " ,
api_key = api_key ,
site = "https://zulip.tsi-vc.otc-service.com" )
124
132
if row ["type" ] == "doc" :
0 commit comments