Unverified Commit af4e65cb authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

set status ignore instead of warning in case of missing digobj


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent 039217e6
...@@ -82,7 +82,7 @@ class KafkaTopology(private val settings: SettingsLoader) { ...@@ -82,7 +82,7 @@ class KafkaTopology(private val settings: SettingsLoader) {
createRecord( createRecord(
value, value,
key, key,
ReportStatus.warning, ReportStatus.ignore,
generalFailureMessage = "No digital object resource present in model." generalFailureMessage = "No digital object resource present in model."
) )
} else { } else {
...@@ -113,7 +113,7 @@ class KafkaTopology(private val settings: SettingsLoader) { ...@@ -113,7 +113,7 @@ class KafkaTopology(private val settings: SettingsLoader) {
} }
.branch( .branch(
Predicate { _, value -> value.third.status == ReportStatus.fatal }, Predicate { _, value -> value.third.status == ReportStatus.fatal },
Predicate { _, value -> value.third.status == ReportStatus.warning }, Predicate { _, value -> value.third.status == ReportStatus.ignore },
Predicate { _, _ -> true } Predicate { _, _ -> true }
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment