diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/charts/ChartResource.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/charts/ChartResource.java index 82444e24e9b..ed9107bccd8 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/charts/ChartResource.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/resources/charts/ChartResource.java @@ -239,7 +239,7 @@ public class ChartResource { Chart chart = new Chart().withId(UUID.randomUUID()).withName(create.getName()).withDisplayName(create.getDisplayName()) .withDescription(create.getDescription()) - .withService(create.getService()).withChartId(create.getChartId()) + .withService(create.getService()) .withChartType(create.getChartType()).withChartUrl(create.getChartUrl()) .withTables(create.getTables()).withTags(create.getTags()) .withOwner(create.getOwner()); @@ -287,7 +287,7 @@ public class ChartResource { Chart chart = new Chart().withId(UUID.randomUUID()).withName(create.getName()).withDisplayName(create.getDisplayName()) .withDescription(create.getDescription()) - .withService(create.getService()).withChartId(create.getChartId()) + .withService(create.getService()) .withChartType(create.getChartType()).withChartUrl(create.getChartUrl()) .withTables(create.getTables()).withTags(create.getTags()) .withOwner(create.getOwner()); diff --git a/catalog-rest-service/src/main/resources/json/schema/api/data/createChart.json b/catalog-rest-service/src/main/resources/json/schema/api/data/createChart.json index 2a4d26b3039..49b7843d892 100644 --- a/catalog-rest-service/src/main/resources/json/schema/api/data/createChart.json +++ b/catalog-rest-service/src/main/resources/json/schema/api/data/createChart.json @@ -19,10 +19,6 @@ "description": "Description of the database instance. What it has and how to use it.", "type": "string" }, - "chartId": { - "description": "Unique Identifier of the Chart from the Source Service.", - "type": "string" - }, "chartType": { "$ref": "../../entity/data/chart.json#/definitions/chartType" }, diff --git a/catalog-rest-service/src/test/java/org/openmetadata/catalog/resources/charts/ChartResourceTest.java b/catalog-rest-service/src/test/java/org/openmetadata/catalog/resources/charts/ChartResourceTest.java index 2470328419b..f51944585d5 100644 --- a/catalog-rest-service/src/test/java/org/openmetadata/catalog/resources/charts/ChartResourceTest.java +++ b/catalog-rest-service/src/test/java/org/openmetadata/catalog/resources/charts/ChartResourceTest.java @@ -159,7 +159,7 @@ public class ChartResourceTest extends CatalogApplicationTest { @Test public void post_chartWithoutRequiredFields_4xx(TestInfo test) { HttpResponseException exception = assertThrows(HttpResponseException.class, () -> - createChart(create(test).withName(null).withChartId("0"), adminAuthHeaders())); + createChart(create(test).withName(null), adminAuthHeaders())); assertResponse(exception, BAD_REQUEST, "[name must not be null]"); exception = assertThrows(HttpResponseException.class, () ->