Skip to content

Commit 195aad1

Browse files
committed
move tests around to show new workflow
1 parent 62ec1c9 commit 195aad1

File tree

4 files changed

+533
-590
lines changed

4 files changed

+533
-590
lines changed

request-processor/src/application/core/pipeline.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def fetch_add_data_response(
210210

211211
existing_entities = []
212212
new_entities = []
213+
issues_log = None
213214

214215
for idx, resource_file in enumerate(files_in_resource):
215216
resource_file_path = os.path.join(input_dir, resource_file)
@@ -292,7 +293,9 @@ def fetch_add_data_response(
292293
"existing-in-resource": len(existing_entities),
293294
"new-entities": new_entities_breakdown,
294295
"existing-entities": existing_entities_breakdown,
295-
"pipeline-issues": [dict(issue) for issue in issues_log.rows],
296+
"pipeline-issues": [dict(issue) for issue in issues_log.rows]
297+
if issues_log
298+
else [],
296299
}
297300

298301
return pipeline_summary

0 commit comments

Comments
 (0)