+
+ {startCase(sqlParamDiff.name)}
+
+
+
+ {getDiffDisplayValue(sqlParamDiff)}
+
+
+ )}
+ >
+ );
+};
+
export const getOwnerVersionLabel = (
entity: {
[TabSpecificField.OWNERS]?: EntityReference[];
diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/FeedUtils.tsx b/openmetadata-ui/src/main/resources/ui/src/utils/FeedUtils.tsx
index cfcc5316ee0..bbcf1758cd2 100644
--- a/openmetadata-ui/src/main/resources/ui/src/utils/FeedUtils.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/utils/FeedUtils.tsx
@@ -133,13 +133,11 @@ export const getReplyText = (
return i18next.t('label.reply-in-conversation');
}
if (count === 1) {
- return `${count} ${
- singular ? singular : i18next.t('label.older-reply-lowercase')
- }`;
+ return `${count} ${singular ?? i18next.t('label.older-reply-lowercase')}`;
}
return `${count} ${
- plural ? plural : i18next.t('label.older-reply-plural-lowercase')
+ plural ?? i18next.t('label.older-reply-plural-lowercase')
}`;
};
@@ -629,6 +627,7 @@ export const getFeedChangeFieldLabel = (fieldName?: EntityField) => {
[EntityField.MUTUALLY_EXCLUSIVE]: i18next.t('label.mutually-exclusive'),
[EntityField.EXPERTS]: i18next.t('label.expert-plural'),
[EntityField.FIELDS]: i18next.t('label.field-plural'),
+ [EntityField.PARAMETER_VALUES]: i18next.t('label.parameter-plural'),
};
return isUndefined(fieldName) ? '' : fieldNameLabelMapping[fieldName];
diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/RouterUtils.ts b/openmetadata-ui/src/main/resources/ui/src/utils/RouterUtils.ts
index c67633e0e00..0391c7df9d9 100644
--- a/openmetadata-ui/src/main/resources/ui/src/utils/RouterUtils.ts
+++ b/openmetadata-ui/src/main/resources/ui/src/utils/RouterUtils.ts
@@ -47,7 +47,7 @@ import { ServiceAgentSubTabs } from '../enums/service.enum';
import { ProfilerDashboardType } from '../enums/table.enum';
import { PipelineType } from '../generated/api/services/ingestionPipelines/createIngestionPipeline';
import { DataQualityPageTabs } from '../pages/DataQuality/DataQualityPage.interface';
-import { IncidentManagerTabs } from '../pages/IncidentManager/IncidentManager.interface';
+import { TestCasePageTabs } from '../pages/IncidentManager/IncidentManager.interface';
import { getPartialNameFromFQN } from './CommonUtils';
import { getBasePath } from './HistoryUtils';
import { getServiceRouteFromServiceType } from './ServiceUtils';
@@ -497,11 +497,11 @@ export const getDataQualityPagePath = (tab?: DataQualityPageTabs) => {
return path;
};
-export const getIncidentManagerDetailPagePath = (
+export const getTestCaseDetailPagePath = (
fqn: string,
- tab = IncidentManagerTabs.TEST_CASE_RESULTS
+ tab = TestCasePageTabs.TEST_CASE_RESULTS
) => {
- let path = ROUTES.INCIDENT_MANAGER_DETAILS_WITH_TAB;
+ let path = ROUTES.TEST_CASE_DETAILS_WITH_TAB;
path = path
.replace(PLACEHOLDER_ROUTE_FQN, getEncodedFqn(fqn))
@@ -509,6 +509,25 @@ export const getIncidentManagerDetailPagePath = (
return path;
};
+export const getTestCaseVersionPath = (
+ fqn: string,
+ version: string,
+ tab?: string
+) => {
+ let path = tab
+ ? ROUTES.TEST_CASE_DETAILS_WITH_TAB_VERSION
+ : ROUTES.TEST_CASE_VERSION;
+
+ path = path
+ .replace(PLACEHOLDER_ROUTE_FQN, getEncodedFqn(fqn))
+ .replace(PLACEHOLDER_ROUTE_VERSION, version);
+
+ if (tab) {
+ path = path.replace(PLACEHOLDER_ROUTE_TAB, tab);
+ }
+
+ return path;
+};
export const getServiceVersionPath = (
serviceCategory: string,
diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/TasksUtils.ts b/openmetadata-ui/src/main/resources/ui/src/utils/TasksUtils.ts
index 7f99f2cecdd..c51175fb722 100644
--- a/openmetadata-ui/src/main/resources/ui/src/utils/TasksUtils.ts
+++ b/openmetadata-ui/src/main/resources/ui/src/utils/TasksUtils.ts
@@ -50,7 +50,7 @@ import { TaskType, Thread } from '../generated/entity/feed/thread';
import { EntityReference } from '../generated/entity/type';
import { TagLabel } from '../generated/type/tagLabel';
import { SearchSourceAlias } from '../interface/search.interface';
-import { IncidentManagerTabs } from '../pages/IncidentManager/IncidentManager.interface';
+import { TestCasePageTabs } from '../pages/IncidentManager/IncidentManager.interface';
import {
EntityData,
Option,
@@ -94,8 +94,8 @@ import { defaultFields as PipelineFields } from './PipelineDetailsUtils';
import {
getEntityDetailsPath,
getGlossaryTermDetailsPath,
- getIncidentManagerDetailPagePath,
getServiceDetailsPath,
+ getTestCaseDetailPagePath,
getUserPath,
} from './RouterUtils';
import serviceUtilClassBase from './ServiceUtilClassBase';
@@ -188,10 +188,7 @@ export const getTaskDetailPath = (task: Thread) => {
const entityType = getEntityType(task.about) ?? '';
if (entityType === EntityType.TEST_CASE) {
- return getIncidentManagerDetailPagePath(
- entityFqn,
- IncidentManagerTabs.ISSUES
- );
+ return getTestCaseDetailPagePath(entityFqn, TestCasePageTabs.ISSUES);
} else if (entityType === EntityType.USER) {
return getUserPath(
entityFqn,