From 0322365f23629f3dd7779f5cfba67a60647141b0 Mon Sep 17 00:00:00 2001 From: Willy Lulciuc Date: Fri, 11 Aug 2023 13:59:35 -0700 Subject: [PATCH] Add defaults for `idFromValue()` and `idFromValueAndType()` (#2581) Signed-off-by: wslulciuc --- .../main/java/marquez/service/models/EventTypeResolver.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/marquez/service/models/EventTypeResolver.java b/api/src/main/java/marquez/service/models/EventTypeResolver.java index ec8ce3cd48..15aab272a3 100644 --- a/api/src/main/java/marquez/service/models/EventTypeResolver.java +++ b/api/src/main/java/marquez/service/models/EventTypeResolver.java @@ -50,12 +50,14 @@ public void init(JavaType baseType) { @Override public String idFromValue(Object value) { - return null; + return idFromValueAndType(value, value.getClass()); } @Override public String idFromValueAndType(Object value, Class suggestedType) { - return null; + // FIXME: We are hardcoding the 'eventType' for now as we currently don't support static + // lineage! + return "eventType"; } @Override