Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Mapper Service
Commits
58281054
Commit
58281054
authored
Oct 23, 2020
by
Jonas Waeber
Browse files
Serialize report as json.
parent
892b1bd6
Pipeline
#16035
passed with stages
in 5 minutes and 12 seconds
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/KafkaTopology.kt
View file @
58281054
...
...
@@ -119,7 +119,7 @@ class KafkaTopology(
val
noRecordId
=
hasRecordId
[
1
]
noRecordId
.
mapValues
{
key
,
_
->
Report
(
key
,
ReportStatus
.
failure
,
"No record id found for record $key."
)
}
.
mapValues
{
key
,
_
->
Report
(
key
,
ReportStatus
.
failure
,
"No record id found for record $key."
)
.
toJson
()
}
.
to
(
reportTopic
)
return
hasRecordId
[
0
]
...
...
@@ -136,12 +136,12 @@ class KafkaTopology(
val
noRecordTypeValue
=
hasRecordTypeValue
[
1
]
noRecordTypeValue
.
mapValues
{
key
,
value
->
.
mapValues
{
key
,
_
->
Report
(
key
,
ReportStatus
.
failure
,
"No correct record type found for record $key."
)
)
.
toJson
()
}
.
to
(
reportTopic
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment