From 18ab3226556cae770a7e5659a081b0f6992c6489 Mon Sep 17 00:00:00 2001 From: Sam Holmberg Date: Mon, 18 Jul 2022 12:49:27 -0700 Subject: [PATCH] Fix casing on lastLifecycleState (#2039) * Fix casing on lastLifecycleState Signed-off-by: Sam Holmberg * Capitalize related functions Signed-off-by: Sam Holmberg --- api/src/main/java/marquez/db/models/DatasetData.java | 6 +++--- api/src/test/java/marquez/db/LineageDaoTest.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/main/java/marquez/db/models/DatasetData.java b/api/src/main/java/marquez/db/models/DatasetData.java index d2215b178c..92fb67617a 100644 --- a/api/src/main/java/marquez/db/models/DatasetData.java +++ b/api/src/main/java/marquez/db/models/DatasetData.java @@ -39,7 +39,7 @@ public class DatasetData implements NodeData { @NonNull ImmutableSet tags; @Nullable Instant lastModifiedAt; @Nullable String description; - @Nullable String lastlifecycleState; + @Nullable String lastLifecycleState; public Optional getLastModifiedAt() { return Optional.ofNullable(lastModifiedAt); @@ -49,8 +49,8 @@ public Optional getDescription() { return Optional.ofNullable(description); } - public Optional getLastlifecycleState() { - return Optional.ofNullable(lastlifecycleState); + public Optional getLastLifecycleState() { + return Optional.ofNullable(lastLifecycleState); } @JsonIgnore diff --git a/api/src/test/java/marquez/db/LineageDaoTest.java b/api/src/test/java/marquez/db/LineageDaoTest.java index fe68ef7ae0..21a5ab0608 100644 --- a/api/src/test/java/marquez/db/LineageDaoTest.java +++ b/api/src/test/java/marquez/db/LineageDaoTest.java @@ -566,7 +566,7 @@ public void testGetDatasetDatalifecycleStateReturned() { Collections.singleton(row.getOutputs().get().get(0).getDatasetRow().getUuid())); assertThat(datasetData) - .extracting(ds -> ds.getLastlifecycleState().orElse("")) + .extracting(ds -> ds.getLastLifecycleState().orElse("")) .anyMatch(str -> str.contains("CREATE")); }