You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -164,9 +175,9 @@ class CUDIngestionStrategy: IngestionStrategy {
164
175
try {
165
176
val data = toCUDEntity<CUDNode>(it)
166
177
when (data?.op) {
167
-
CUDOperations.delete, null->null
168
178
CUDOperations.merge ->if (data.ids.isNotEmpty() && data.properties.isNotEmpty()) data elsenull// TODO send to the DLQ the null
169
-
else->if (data.properties.isNotEmpty()) data elsenull// TODO send to the DLQ the null
179
+
CUDOperations.update, CUDOperations.create ->if (data.properties.isNotEmpty()) data elsenull// TODO send to the DLQ the null
180
+
else->null
170
181
}
171
182
} catch (e:Exception) {
172
183
null
@@ -221,9 +232,9 @@ class CUDIngestionStrategy: IngestionStrategy {
221
232
it.value?.let {
222
233
try {
223
234
val data = toCUDEntity<CUDRelationship>(it)
224
-
when(data?.op) {
225
-
CUDOperations.delete, null->null// TODO send to the DLQ the null
226
-
else->if (data.from.ids.isNotEmpty() && data.to.ids.isNotEmpty() && data.properties.isNotEmpty()) data elsenull// TODO send to the DLQ the null
235
+
when {
236
+
data!!.isValidOperation() ->if (data.from.ids.isNotEmpty() && data.to.ids.isNotEmpty() && data.properties.isNotEmpty()) data elsenull// TODO send to the DLQ the null
237
+
else->null// TODO send to the DLQ the null
227
238
}
228
239
} catch (e:Exception) {
229
240
null
@@ -233,7 +244,7 @@ class CUDIngestionStrategy: IngestionStrategy {
0 commit comments