mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-26 18:06:03 +00:00
fix: unable to create new kpi issue (#10361)
* updated cypres.config to run searchflow last * updated cypress config * fixed kpi creation issue * reverting cypress change
This commit is contained in:
parent
909cedeca1
commit
f4fc1b6438
@ -142,7 +142,7 @@ const AddKPIPage = () => {
|
||||
|
||||
const handleChartSelect = (value: string) => {
|
||||
const selectedChartValue = dataInsightCharts.find(
|
||||
(chart) => chart.id === value
|
||||
(chart) => chart.fullyQualifiedName === value
|
||||
);
|
||||
setSelectedChart(selectedChartValue);
|
||||
};
|
||||
@ -191,7 +191,6 @@ const AddKPIPage = () => {
|
||||
const targetValue = getKpiTargetValueByMetricType(metricType, metricValue);
|
||||
|
||||
const formData: CreateKpiRequest = {
|
||||
// TODO: this needs to be fullyQualifiedName of the dataInsightChart
|
||||
dataInsightChart: values.dataInsightChart,
|
||||
description,
|
||||
name: kebabCase(`${values.displayName} ${selectedMetric?.name}`),
|
||||
@ -256,10 +255,10 @@ const AddKPIPage = () => {
|
||||
data-testid="dataInsightChart"
|
||||
notFoundContent={t('message.all-charts-are-mapped')}
|
||||
placeholder={t('label.select-a-chart')}
|
||||
value={selectedChart?.id}
|
||||
value={selectedChart?.fullyQualifiedName}
|
||||
onChange={handleChartSelect}>
|
||||
{chartOptions.map((chart) => (
|
||||
<Option key={chart.id}>
|
||||
<Option key={chart.fullyQualifiedName}>
|
||||
{chart.displayName || chart.name}
|
||||
</Option>
|
||||
))}
|
||||
|
Loading…
x
Reference in New Issue
Block a user