mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 20:51:26 +00:00
Rename datatype (#8947)
This commit is contained in:
parent
d23fc5e508
commit
f3ac6f53e6
@ -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())) {
|
||||
|
@ -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");
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user