File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
kcidb/monitor/subscriptions Expand file tree Collapse file tree 1 file changed +10
-5
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,20 +9,24 @@ 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+ print (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+ print (json .dumps (incidents ))
2227
2328
24- def match_issues (issues ):
29+ def match_issue (issues ):
2530 issue_objects = {"issues" : [issues ._data ]}
2631 incident_generator = kcidb_match .IncidentGenerator ()
2732 incident_generator .db .update_patterns (issue_objects )
You can’t perform that action at this time.
0 commit comments