mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-04 06:33:10 +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<>();
|
Map<String, Object> values = new HashMap<>();
|
||||||
for (ChartParameterValues parameterValue : dataInsightChartMetric) {
|
for (ChartParameterValues parameterValue : dataInsightChartMetric) {
|
||||||
values.put(parameterValue.getName(), parameterValue.getDataType());
|
values.put(parameterValue.getName(), parameterValue.getChartDataType());
|
||||||
}
|
}
|
||||||
for (KpiTarget kpiTarget : kpiTargetDef) {
|
for (KpiTarget kpiTarget : kpiTargetDef) {
|
||||||
if (!values.containsKey(kpiTarget.getName())) {
|
if (!values.containsKey(kpiTarget.getName())) {
|
||||||
|
@ -68,7 +68,7 @@ public class KpiResourceTest extends EntityResourceTest<Kpi, CreateKpiRequest> {
|
|||||||
List.of(
|
List.of(
|
||||||
new ChartParameterValues()
|
new ChartParameterValues()
|
||||||
.withName("Percentage")
|
.withName("Percentage")
|
||||||
.withDataType(DataInsightChartDataType.PERCENTAGE)));
|
.withChartDataType(DataInsightChartDataType.PERCENTAGE)));
|
||||||
DI_CHART1 = dataInsightResourceTest.createAndCheckEntity(chartRequest, ADMIN_AUTH_HEADERS);
|
DI_CHART1 = dataInsightResourceTest.createAndCheckEntity(chartRequest, ADMIN_AUTH_HEADERS);
|
||||||
DI_CHART1_REFERENCE = DI_CHART1.getEntityReference();
|
DI_CHART1_REFERENCE = DI_CHART1.getEntityReference();
|
||||||
KPI_TARGET = new KpiTarget().withName("Percentage").withValue("80");
|
KPI_TARGET = new KpiTarget().withName("Percentage").withValue("80");
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"description": "Display Name that identifies this parameter name.",
|
"description": "Display Name that identifies this parameter name.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"dataType": {
|
"chartDataType": {
|
||||||
"javaType": "org.openmetadata.schema.type.DataInsightChartDataType",
|
"javaType": "org.openmetadata.schema.type.DataInsightChartDataType",
|
||||||
"description": "Data type of the parameter (int, date etc.).",
|
"description": "Data type of the parameter (int, date etc.).",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user