In order to mitigate against the brute force attacks against Gitlab accounts, we are moving to all edu-ID Logins. We would like to remind you to link your account with your edu-id. Login will be possible only by edu-ID after November 30, 2021. Here you can find the instructions for linking your account.

If you don't have a SWITCH edu-ID, you can create one with this guide here

kind regards

This Server has been upgraded to GitLab release 14.2.6

Commit bdefbd5b authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Abort sending an update when there is no lines to send.

parent 76845c21
Pipeline #26633 passed with stages
in 4 minutes and 17 seconds
......@@ -197,6 +197,7 @@ class KafkaTopology(
updateInstitutionContainer(value.second, value.first)
.filter { _, value -> value.first.hasContent() }
.map { key, value -> KeyValue("$key#update", value) }
.mapValues { value -> JsonUtility.queryToJson( }
......@@ -40,6 +40,10 @@ class UpdateQueryBuilder(private val value: String) {
params[targetField] = institutions
fun hasContent(): Boolean {
return sourceLines.size > 0
fun build(): UpdateQuery {
return UpdateQuery(
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