Rename datatype (#8947)

This commit is contained in:
Pere Miquel Brull 2022-11-22 11:47:17 +01:00 committed by GitHub
parent d23fc5e508
commit f3ac6f53e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ public class KpiRepository extends EntityRepository<Kpi> {
}
Map<String, Object> values = new HashMap<>();
for (ChartParameterValues parameterValue : dataInsightChartMetric) {
values.put(parameterValue.getName(), parameterValue.getDataType());
values.put(parameterValue.getName(), parameterValue.getChartDataType());
}
for (KpiTarget kpiTarget : kpiTargetDef) {
if (!values.containsKey(kpiTarget.getName())) {

View File

@ -68,7 +68,7 @@ public class KpiResourceTest extends EntityResourceTest<Kpi, CreateKpiRequest> {
List.of(
new ChartParameterValues()
.withName("Percentage")
.withDataType(DataInsightChartDataType.PERCENTAGE)));
.withChartDataType(DataInsightChartDataType.PERCENTAGE)));
DI_CHART1 = dataInsightResourceTest.createAndCheckEntity(chartRequest, ADMIN_AUTH_HEADERS);
DI_CHART1_REFERENCE = DI_CHART1.getEntityReference();
KPI_TARGET = new KpiTarget().withName("Percentage").withValue("80");

View File

@ -20,7 +20,7 @@
"description": "Display Name that identifies this parameter name.",
"type": "string"
},
"dataType": {
"chartDataType": {
"javaType": "org.openmetadata.schema.type.DataInsightChartDataType",
"description": "Data type of the parameter (int, date etc.).",
"type": "string",