File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
kcidb/monitor/subscriptions Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 11from kcidb .tools import kcidb_match
22import kcidb
3+ import json
34
45
56def match_test (test ):
@@ -8,17 +9,21 @@ def match_test(test):
89 "checkouts" : [test .build .checkout ._data ]}
910 incident_generator = kcidb_match .IncidentGenerator ()
1011 incidents = incident_generator .generate_incidents_from_db (kcidb_io_object )
11- if (incidents ["incidents" ]):
12- kcidb .Client .submit (incidents )
12+ #if (incidents["incidents"]):
13+ # kcidb.Client.submit(incidents)
14+ # TODO: tmp solution
15+ json .dumps (incidents )
1316
1417
1518def match_build (build ):
1619 kcidb_io_object = {"builds" : [build ._data ],
1720 "checkouts" : [build .checkout ._data ]}
1821 incident_generator = kcidb_match .IncidentGenerator ()
1922 incidents = incident_generator .generate_incidents_from_db (kcidb_io_object )
20- if (incidents ["incidents" ]):
21- kcidb .Client .submit (incidents )
23+ #if (incidents["incidents"]):
24+ # kcidb.Client.submit(incidents)
25+ # TODO: tmp solution
26+ json .dumps (incidents )
2227
2328
2429def match_issues (issues ):
You can’t perform that action at this time.
0 commit comments