From f76a7aab713e993b177da4a8777ea2cc96ea0955 Mon Sep 17 00:00:00 2001 From: Deepak Joseph Date: Wed, 18 Dec 2024 11:36:30 +0530 Subject: [PATCH 1/6] Added nodeInstanceId to Job details, fixed bugs --- .../JobsDetailsModal/JobsDetailsModal.tsx | 63 +- .../ProcessDetailsTimelinePanel.tsx | 30 +- .../src/graphql/graphql.schema.json | 1131 +---------------- .../src/graphql/queries.tsx | 10 + .../src/graphql/types.tsx | 200 +-- 5 files changed, 124 insertions(+), 1310 deletions(-) diff --git a/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx b/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx index 180e38997e5..e379e3edcab 100644 --- a/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx +++ b/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx @@ -26,6 +26,7 @@ import Moment from "react-moment"; import "../styles.css"; import { Job } from "@kie-tools/runtime-tools-process-gateway-api/dist/types"; import { OUIAProps, componentOuiaProps } from "@kie-tools/runtime-tools-components/dist/ouiaTools"; +import isNil from "lodash/isNil"; interface IOwnProps { actionType: string; @@ -70,20 +71,30 @@ export const JobsDetailsModal: React.FC = ({ - Status: {" "} + NodeInstanceId: - {job.status} + {job.nodeInstanceId} - Priority: {" "} + Status: {" "} - {job.priority} + {job.status} - {job.repeatInterval && ( + {!isNil(job.priority) && ( + + + + Priority: {" "} + + {job.priority} + + + )} + {!isNil(job.repeatInterval) && ( @@ -93,7 +104,7 @@ export const JobsDetailsModal: React.FC = ({ )} - {job.repeatLimit && ( + {!isNil(job.repeatLimit) && ( @@ -103,14 +114,16 @@ export const JobsDetailsModal: React.FC = ({ )} - - - - ScheduledId: - - {job.scheduledId} - - + {job.scheduledId && ( + + + + ScheduledId: + + {job.scheduledId} + + + )} @@ -137,16 +150,18 @@ export const JobsDetailsModal: React.FC = ({ - - - - - Callback Endpoint:{" "} - - - {job.callbackEndpoint} - - + {job.callbackEndpoint && ( + + + + + Callback Endpoint:{" "} + + + {job.callbackEndpoint} + + + )} diff --git a/packages/runtime-tools-process-enveloped-components/src/processDetails/envelope/components/ProcessDetailsTimelinePanel/ProcessDetailsTimelinePanel.tsx b/packages/runtime-tools-process-enveloped-components/src/processDetails/envelope/components/ProcessDetailsTimelinePanel/ProcessDetailsTimelinePanel.tsx index e733ff3364e..cc6f92a60de 100755 --- a/packages/runtime-tools-process-enveloped-components/src/processDetails/envelope/components/ProcessDetailsTimelinePanel/ProcessDetailsTimelinePanel.tsx +++ b/packages/runtime-tools-process-enveloped-components/src/processDetails/envelope/components/ProcessDetailsTimelinePanel/ProcessDetailsTimelinePanel.tsx @@ -342,23 +342,19 @@ const ProcessDetailsTimelinePanel: React.FC = ({ }; const renderTimerIcon = (id: string) => { - return jobs.length > 0 ? ( - jobs.map((job, idx) => { - if (id === job.nodeInstanceId) { - return ( - - handleJobDetails(job)} - /> - - ); - } - })[0] - ) : ( - <> - ); + const job = jobs.find((job) => id === job.nodeInstanceId); + if (job) { + return ( + + handleJobDetails(job)} + /> + + ); + } + return <>; }; const detailsAction: JSX.Element[] = [ diff --git a/packages/runtime-tools-process-gateway-api/src/graphql/graphql.schema.json b/packages/runtime-tools-process-gateway-api/src/graphql/graphql.schema.json index 055cce17b9d..e923f198b17 100644 --- a/packages/runtime-tools-process-gateway-api/src/graphql/graphql.schema.json +++ b/packages/runtime-tools-process-gateway-api/src/graphql/graphql.schema.json @@ -6,9 +6,7 @@ "mutationType": { "name": "Mutation" }, - "subscriptionType": { - "name": "Subscription" - }, + "subscriptionType": null, "types": [ { "kind": "OBJECT", @@ -3879,43 +3877,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "schema", - "description": null, - "args": [ - { - "name": "groups", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null - }, - { - "name": "user", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - } - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "started", "description": null, @@ -4899,113 +4860,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "Subscription", - "description": null, - "fields": [ - { - "name": "JobAdded", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Job", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "JobUpdated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Job", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ProcessInstanceAdded", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProcessInstance", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ProcessInstanceUpdated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProcessInstance", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UserTaskInstanceAdded", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UserTaskInstance", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UserTaskInstanceUpdated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UserTaskInstance", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "__Schema", @@ -6129,989 +5983,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "KogitoMetadata", - "description": null, - "fields": [ - { - "name": "lastUpdate", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "processInstances", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ProcessInstanceMeta", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "userTasks", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "UserTaskInstanceMeta", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProcessInstanceMeta", - "description": null, - "fields": [ - { - "name": "businessKey", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdBy", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "end", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endpoint", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastUpdate", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "parentProcessInstanceId", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "processId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "processName", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "roles", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rootProcessId", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rootProcessInstanceId", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "serviceUrl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "start", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "state", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ProcessInstanceState", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedBy", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "version", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "UserTaskInstanceMeta", - "description": null, - "fields": [ - { - "name": "actualOwner", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "adminGroups", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "adminUsers", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "attachments", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Attachment", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "comments", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Comment", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "completed", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "excludedUsers", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastUpdate", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "potentialGroups", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "potentialUsers", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "priority", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "processInstanceId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "referenceName", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "started", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "state", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "KogitoMetadataArgument", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "lastUpdate", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "processInstances", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "ProcessInstanceMetaArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "userTasks", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "UserTaskInstanceMetaArgument", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ProcessInstanceMetaArgument", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "businessKey", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "createdBy", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "end", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "endpoint", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "IdArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "parentProcessInstanceId", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "IdArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "processId", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "processName", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "roles", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArrayArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "rootProcessId", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "rootProcessInstanceId", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "IdArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "start", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "state", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "ProcessInstanceStateArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "updatedBy", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "UserTaskInstanceMetaArgument", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "actualOwner", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "adminGroups", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArrayArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "adminUsers", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArrayArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "completed", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "description", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "excludedUsers", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArrayArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "IdArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "name", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "potentialGroups", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArrayArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "potentialUsers", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArrayArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "priority", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "processInstanceId", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "IdArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "referenceName", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "started", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "DateArgument", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "state", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "StringArgument", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "KogitoMetadataOrderBy", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "lastUpdate", - "description": null, - "type": { - "kind": "ENUM", - "name": "OrderBy", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, { "kind": "SCALAR", "name": "Long", diff --git a/packages/runtime-tools-process-gateway-api/src/graphql/queries.tsx b/packages/runtime-tools-process-gateway-api/src/graphql/queries.tsx index cae532f1b52..d167e7cd38f 100644 --- a/packages/runtime-tools-process-gateway-api/src/graphql/queries.tsx +++ b/packages/runtime-tools-process-gateway-api/src/graphql/queries.tsx @@ -370,6 +370,7 @@ export const GET_JOBS_WITH_FILTERS = gql` retries lastUpdate endpoint + nodeInstanceId executionCounter } } @@ -400,6 +401,15 @@ export const GET_PROCESS_INSTANCE_SVG = gql` } `; +export const GET_PROCESS_DEFINITIONS = gql` + query getProcessDefinitions { + ProcessDefinitions { + id + endpoint + } + } +`; + export const GET_PROCESS_DEFINITION_NODES = gql` query getProcessDefinitionNodes($processId: String) { ProcessDefinitions(where: { id: { equal: $processId } }) { diff --git a/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx b/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx index 609a31320fa..79a9eb902e8 100644 --- a/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx +++ b/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx @@ -1,22 +1,3 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - /* eslint-disable */ import gql from "graphql-tag"; import * as ApolloReactCommon from "@apollo/react-common"; @@ -464,16 +445,10 @@ export namespace GraphQL { referenceName?: Maybe; rootProcessId?: Maybe; rootProcessInstanceId?: Maybe; - schema?: Maybe; started?: Maybe; state?: Maybe; }; - export type UserTaskInstanceSchemaArgs = { - groups?: InputMaybe>>; - user?: InputMaybe; - }; - export type Attachment = { __typename?: "Attachment"; content: Scalars["String"]; @@ -609,16 +584,6 @@ export namespace GraphQL { user?: InputMaybe; }; - export type Subscription = { - __typename?: "Subscription"; - JobAdded: Job; - JobUpdated: Job; - ProcessInstanceAdded: ProcessInstance; - ProcessInstanceUpdated: ProcessInstance; - UserTaskInstanceAdded: UserTaskInstance; - UserTaskInstanceUpdated: UserTaskInstance; - }; - export type BigDecimalArgument = { between?: InputMaybe; equal?: InputMaybe; @@ -656,101 +621,6 @@ export namespace GraphQL { to: Scalars["Float"]; }; - export type KogitoMetadata = { - __typename?: "KogitoMetadata"; - lastUpdate: Scalars["DateTime"]; - processInstances?: Maybe>>; - userTasks?: Maybe>>; - }; - - export type ProcessInstanceMeta = { - __typename?: "ProcessInstanceMeta"; - businessKey?: Maybe; - createdBy?: Maybe; - end?: Maybe; - endpoint: Scalars["String"]; - id: Scalars["String"]; - lastUpdate: Scalars["DateTime"]; - parentProcessInstanceId?: Maybe; - processId: Scalars["String"]; - processName?: Maybe; - roles?: Maybe>; - rootProcessId?: Maybe; - rootProcessInstanceId?: Maybe; - serviceUrl?: Maybe; - start: Scalars["DateTime"]; - state: ProcessInstanceState; - updatedBy?: Maybe; - version?: Maybe; - }; - - export type UserTaskInstanceMeta = { - __typename?: "UserTaskInstanceMeta"; - actualOwner?: Maybe; - adminGroups?: Maybe>; - adminUsers?: Maybe>; - attachments?: Maybe>; - comments?: Maybe>; - completed?: Maybe; - description?: Maybe; - excludedUsers?: Maybe>; - id: Scalars["String"]; - lastUpdate: Scalars["DateTime"]; - name?: Maybe; - potentialGroups?: Maybe>; - potentialUsers?: Maybe>; - priority?: Maybe; - processInstanceId: Scalars["String"]; - referenceName?: Maybe; - started: Scalars["DateTime"]; - state: Scalars["String"]; - }; - - export type KogitoMetadataArgument = { - lastUpdate?: InputMaybe; - processInstances?: InputMaybe; - userTasks?: InputMaybe; - }; - - export type ProcessInstanceMetaArgument = { - businessKey?: InputMaybe; - createdBy?: InputMaybe; - end?: InputMaybe; - endpoint?: InputMaybe; - id?: InputMaybe; - parentProcessInstanceId?: InputMaybe; - processId?: InputMaybe; - processName?: InputMaybe; - roles?: InputMaybe; - rootProcessId?: InputMaybe; - rootProcessInstanceId?: InputMaybe; - start?: InputMaybe; - state?: InputMaybe; - updatedBy?: InputMaybe; - }; - - export type UserTaskInstanceMetaArgument = { - actualOwner?: InputMaybe; - adminGroups?: InputMaybe; - adminUsers?: InputMaybe; - completed?: InputMaybe; - description?: InputMaybe; - excludedUsers?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - potentialGroups?: InputMaybe; - potentialUsers?: InputMaybe; - priority?: InputMaybe; - processInstanceId?: InputMaybe; - referenceName?: InputMaybe; - started?: InputMaybe; - state?: InputMaybe; - }; - - export type KogitoMetadataOrderBy = { - lastUpdate?: InputMaybe; - }; - export type LongArgument = { between?: InputMaybe; equal?: InputMaybe; @@ -1338,6 +1208,7 @@ export namespace GraphQL { retries?: number | null; lastUpdate?: any | null; endpoint?: string | null; + nodeInstanceId?: string | null; executionCounter?: number | null; } | null> | null; }; @@ -1369,6 +1240,17 @@ export namespace GraphQL { ProcessInstances?: Array<{ __typename?: "ProcessInstance"; diagram?: string | null } | null> | null; }; + export type GetProcessDefinitionsQueryVariables = Exact<{ [key: string]: never }>; + + export type GetProcessDefinitionsQuery = { + __typename?: "Query"; + ProcessDefinitions?: Array<{ + __typename?: "ProcessDefinition"; + id: string; + endpoint?: string | null; + } | null> | null; + }; + export type GetProcessDefinitionNodesQueryVariables = Exact<{ processId?: InputMaybe; }>; @@ -1425,15 +1307,6 @@ export namespace GraphQL { export type HandleJobRescheduleMutation = { __typename?: "Mutation"; JobReschedule?: string | null }; - export const GetProcessDefinitionsDocument = gql` - query getProcessDefinitions { - ProcessDefinitions { - id - endpoint - } - } - `; - export const GetProcessInstancesDocument = gql` query getProcessInstances( $where: ProcessInstanceArgument @@ -2285,6 +2158,7 @@ export namespace GraphQL { retries lastUpdate endpoint + nodeInstanceId executionCounter } } @@ -2516,6 +2390,54 @@ export namespace GraphQL { GetProcessInstanceSvgQuery, GetProcessInstanceSvgQueryVariables >; + export const GetProcessDefinitionsDocument = gql` + query getProcessDefinitions { + ProcessDefinitions { + id + endpoint + } + } + `; + + /** + * __useGetProcessDefinitionsQuery__ + * + * To run a query within a React component, call `useGetProcessDefinitionsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetProcessDefinitionsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetProcessDefinitionsQuery({ + * variables: { + * }, + * }); + */ + export function useGetProcessDefinitionsQuery( + baseOptions?: ApolloReactHooks.QueryHookOptions + ) { + const options = { ...defaultOptions, ...baseOptions }; + return ApolloReactHooks.useQuery( + GetProcessDefinitionsDocument, + options + ); + } + export function useGetProcessDefinitionsLazyQuery( + baseOptions?: ApolloReactHooks.LazyQueryHookOptions + ) { + const options = { ...defaultOptions, ...baseOptions }; + return ApolloReactHooks.useLazyQuery( + GetProcessDefinitionsDocument, + options + ); + } + export type GetProcessDefinitionsQueryHookResult = ReturnType; + export type GetProcessDefinitionsLazyQueryHookResult = ReturnType; + export type GetProcessDefinitionsQueryResult = ApolloReactCommon.QueryResult< + GetProcessDefinitionsQuery, + GetProcessDefinitionsQueryVariables + >; export const GetProcessDefinitionNodesDocument = gql` query getProcessDefinitionNodes($processId: String) { ProcessDefinitions(where: { id: { equal: $processId } }) { From 096a625fa24b0eae3dc9c903b4b21e0fe80c9cb6 Mon Sep 17 00:00:00 2001 From: Deepak Joseph Date: Wed, 18 Dec 2024 14:14:43 +0530 Subject: [PATCH 2/6] Added License header back --- .../src/graphql/types.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx b/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx index 79a9eb902e8..0e8b842886e 100644 --- a/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx +++ b/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + /* eslint-disable */ import gql from "graphql-tag"; import * as ApolloReactCommon from "@apollo/react-common"; From 197a0d6ffcf32b7b428e8b04c36458e09e5f5cd9 Mon Sep 17 00:00:00 2001 From: Deepak Joseph Date: Thu, 19 Dec 2024 12:45:24 +0530 Subject: [PATCH 3/6] Removed usage of isNil --- .rat-excludes | 2 + .../JobsDetailsModal/JobsDetailsModal.tsx | 127 +- .../src/graphql/graphql.schema.json | 1267 ++++++++++++++++- .../src/graphql/types.tsx | 135 +- .../src/types.ts | 18 +- 5 files changed, 1426 insertions(+), 123 deletions(-) diff --git a/.rat-excludes b/.rat-excludes index 5b3703d6da0..b652dffe0dc 100644 --- a/.rat-excludes +++ b/.rat-excludes @@ -2036,3 +2036,5 @@ scripts.iml index.test.js # scripts/check-junit-report-results/tests/reports/empty.xml empty.xml +# packages/runtime-tools-process-gateway-api/src/graphql/types.tsx +types.tsx diff --git a/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx b/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx index e379e3edcab..d93a66a4025 100644 --- a/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx +++ b/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx @@ -26,7 +26,6 @@ import Moment from "react-moment"; import "../styles.css"; import { Job } from "@kie-tools/runtime-tools-process-gateway-api/dist/types"; import { OUIAProps, componentOuiaProps } from "@kie-tools/runtime-tools-components/dist/ouiaTools"; -import isNil from "lodash/isNil"; interface IOwnProps { actionType: string; @@ -51,31 +50,37 @@ export const JobsDetailsModal: React.FC = ({
- - - - Process Id: {" "} - - {job.processId} - - - - - - {" "} - Process Instance Id: {" "} - - {job.processInstanceId} - - - - - - NodeInstanceId: - - {job.nodeInstanceId} - - + {job.processId && ( + + + + Process Id: {" "} + + {job.processId} + + + )} + {job.processInstanceId && ( + + + + {" "} + Process Instance Id: {" "} + + {job.processInstanceId} + + + )} + {job.nodeInstanceId && ( + + + + Node Instance Id: + + {job.nodeInstanceId} + + + )} @@ -84,7 +89,7 @@ export const JobsDetailsModal: React.FC = ({ {job.status} - {!isNil(job.priority) && ( + {job.priority !== undefined && ( @@ -94,21 +99,21 @@ export const JobsDetailsModal: React.FC = ({ )} - {!isNil(job.repeatInterval) && ( + {job.repeatInterval !== undefined && ( - RepeatInterval: + Repeat Interval: {job.repeatInterval} )} - {!isNil(job.repeatLimit) && ( + {job.repeatLimit !== undefined && ( - RepeatLimit: + Repeat Limit: {job.repeatLimit} @@ -118,38 +123,44 @@ export const JobsDetailsModal: React.FC = ({ - ScheduledId: + Scheduled Id: {job.scheduledId} )} - - - - Retries: - - {job.retries} - - - - - - Execution counter: - - {job.executionCounter} - - - - - - Last Updated: - - - {new Date(`${job.lastUpdate}`)} - - - + {job.retries !== undefined && ( + + + + Retries: + + {job.retries} + + + )} + {job.executionCounter !== undefined && ( + + + + Execution counter: + + {job.executionCounter} + + + )} + {job.lastUpdate !== undefined && ( + + + + Last Updated: + + + {new Date(`${job.lastUpdate}`)} + + + + )} {job.callbackEndpoint && ( diff --git a/packages/runtime-tools-process-gateway-api/src/graphql/graphql.schema.json b/packages/runtime-tools-process-gateway-api/src/graphql/graphql.schema.json index e923f198b17..09ccfdeecc4 100644 --- a/packages/runtime-tools-process-gateway-api/src/graphql/graphql.schema.json +++ b/packages/runtime-tools-process-gateway-api/src/graphql/graphql.schema.json @@ -6,7 +6,9 @@ "mutationType": { "name": "Mutation" }, - "subscriptionType": null, + "subscriptionType": { + "name": "Subscription" + }, "types": [ { "kind": "OBJECT", @@ -2108,6 +2110,16 @@ "ofType": null }, "defaultValue": null + }, + { + "name": "variables", + "description": null, + "type": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + }, + "defaultValue": null } ], "interfaces": null, @@ -2825,6 +2837,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "slaDueDate", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "source", "description": null, @@ -3098,6 +3122,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "slaDueDate", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "type", "description": null, @@ -3693,6 +3729,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "externalReferenceId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "id", "description": null, @@ -3877,6 +3925,55 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "schema", + "description": null, + "args": [ + { + "name": "groups", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "user", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "slaDueDate", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "started", "description": null, @@ -4860,6 +4957,113 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "Subscription", + "description": null, + "fields": [ + { + "name": "JobAdded", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Job", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "JobUpdated", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Job", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ProcessInstanceAdded", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ProcessInstance", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ProcessInstanceUpdated", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ProcessInstance", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UserTaskInstanceAdded", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserTaskInstance", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UserTaskInstanceUpdated", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserTaskInstance", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "__Schema", @@ -5984,57 +6188,1040 @@ "possibleTypes": null }, { - "kind": "SCALAR", - "name": "Long", - "description": "A 64-bit signed integer", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "LongArgument", + "kind": "OBJECT", + "name": "KogitoMetadata", "description": null, - "fields": null, - "inputFields": [ + "fields": [ { - "name": "between", + "name": "lastUpdate", "description": null, + "args": [], "type": { - "kind": "INPUT_OBJECT", - "name": "LongRange", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "equal", + "name": "processInstances", "description": null, + "args": [], "type": { - "kind": "SCALAR", - "name": "Long", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ProcessInstanceMeta", + "ofType": null + } }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null }, { - "name": "greaterThan", + "name": "userTasks", "description": null, + "args": [], "type": { - "kind": "SCALAR", - "name": "Long", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserTaskInstanceMeta", + "ofType": null + } }, - "defaultValue": null - }, - { - "name": "greaterThanEqual", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Long", + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ProcessInstanceMeta", + "description": null, + "fields": [ + { + "name": "businessKey", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdBy", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "end", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "endpoint", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lastUpdate", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "parentProcessInstanceId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "processId", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "processName", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "roles", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "rootProcessId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "rootProcessInstanceId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "serviceUrl", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "start", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "state", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ProcessInstanceState", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedBy", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "version", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "UserTaskInstanceMeta", + "description": null, + "fields": [ + { + "name": "actualOwner", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "adminGroups", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "adminUsers", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "attachments", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Attachment", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "comments", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Comment", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "completed", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "excludedUsers", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lastUpdate", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "potentialGroups", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "potentialUsers", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "priority", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "processInstanceId", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceName", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "started", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "state", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "KogitoMetadataArgument", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "lastUpdate", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "DateArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "processInstances", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "ProcessInstanceMetaArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "userTasks", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "UserTaskInstanceMetaArgument", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "ProcessInstanceMetaArgument", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "businessKey", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "createdBy", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "end", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "DateArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "endpoint", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "id", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "IdArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "parentProcessInstanceId", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "IdArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "processId", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "processName", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "roles", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArrayArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "rootProcessId", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "rootProcessInstanceId", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "IdArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "start", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "DateArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "state", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "ProcessInstanceStateArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "updatedBy", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "UserTaskInstanceMetaArgument", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "actualOwner", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "adminGroups", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArrayArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "adminUsers", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArrayArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "completed", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "DateArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "description", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "excludedUsers", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArrayArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "id", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "IdArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "name", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "potentialGroups", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArrayArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "potentialUsers", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArrayArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "priority", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "processInstanceId", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "IdArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "referenceName", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "started", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "DateArgument", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "state", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "StringArgument", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "KogitoMetadataOrderBy", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "lastUpdate", + "description": null, + "type": { + "kind": "ENUM", + "name": "OrderBy", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "Long", + "description": "A 64-bit signed integer", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "LongArgument", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "between", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "LongRange", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "equal", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Long", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "greaterThan", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Long", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "greaterThanEqual", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Long", "ofType": null }, "defaultValue": null @@ -6171,6 +7358,12 @@ } ] }, + { + "name": "oneOf", + "description": "Indicates an Input Object is a OneOf Input Object.", + "locations": ["INPUT_OBJECT"], + "args": [] + }, { "name": "skip", "description": "Directs the executor to skip this field or fragment when the `if` argument is true.", diff --git a/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx b/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx index 0e8b842886e..52788344315 100644 --- a/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx +++ b/packages/runtime-tools-process-gateway-api/src/graphql/types.tsx @@ -1,22 +1,3 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - /* eslint-disable */ import gql from "graphql-tag"; import * as ApolloReactCommon from "@apollo/react-common"; @@ -280,6 +261,7 @@ export namespace GraphQL { start?: InputMaybe; state?: InputMaybe; updatedBy?: InputMaybe; + variables?: InputMaybe; }; export type StringArrayArgument = { @@ -360,6 +342,7 @@ export namespace GraphQL { rootProcessId?: Maybe; rootProcessInstanceId?: Maybe; serviceUrl?: Maybe; + slaDueDate?: Maybe; source?: Maybe; start?: Maybe; state?: Maybe; @@ -389,6 +372,7 @@ export namespace GraphQL { id: Scalars["String"]; name: Scalars["String"]; nodeId: Scalars["String"]; + slaDueDate?: Maybe; type: Scalars["String"]; }; @@ -451,6 +435,7 @@ export namespace GraphQL { description?: Maybe; endpoint?: Maybe; excludedUsers?: Maybe>; + externalReferenceId?: Maybe; id: Scalars["String"]; inputs?: Maybe; lastUpdate: Scalars["DateTime"]; @@ -464,10 +449,17 @@ export namespace GraphQL { referenceName?: Maybe; rootProcessId?: Maybe; rootProcessInstanceId?: Maybe; + schema?: Maybe; + slaDueDate?: Maybe; started?: Maybe; state?: Maybe; }; + export type UserTaskInstanceSchemaArgs = { + groups?: InputMaybe>>; + user?: InputMaybe; + }; + export type Attachment = { __typename?: "Attachment"; content: Scalars["String"]; @@ -603,6 +595,16 @@ export namespace GraphQL { user?: InputMaybe; }; + export type Subscription = { + __typename?: "Subscription"; + JobAdded: Job; + JobUpdated: Job; + ProcessInstanceAdded: ProcessInstance; + ProcessInstanceUpdated: ProcessInstance; + UserTaskInstanceAdded: UserTaskInstance; + UserTaskInstanceUpdated: UserTaskInstance; + }; + export type BigDecimalArgument = { between?: InputMaybe; equal?: InputMaybe; @@ -640,6 +642,101 @@ export namespace GraphQL { to: Scalars["Float"]; }; + export type KogitoMetadata = { + __typename?: "KogitoMetadata"; + lastUpdate: Scalars["DateTime"]; + processInstances?: Maybe>>; + userTasks?: Maybe>>; + }; + + export type ProcessInstanceMeta = { + __typename?: "ProcessInstanceMeta"; + businessKey?: Maybe; + createdBy?: Maybe; + end?: Maybe; + endpoint: Scalars["String"]; + id: Scalars["String"]; + lastUpdate: Scalars["DateTime"]; + parentProcessInstanceId?: Maybe; + processId: Scalars["String"]; + processName?: Maybe; + roles?: Maybe>; + rootProcessId?: Maybe; + rootProcessInstanceId?: Maybe; + serviceUrl?: Maybe; + start: Scalars["DateTime"]; + state: ProcessInstanceState; + updatedBy?: Maybe; + version?: Maybe; + }; + + export type UserTaskInstanceMeta = { + __typename?: "UserTaskInstanceMeta"; + actualOwner?: Maybe; + adminGroups?: Maybe>; + adminUsers?: Maybe>; + attachments?: Maybe>; + comments?: Maybe>; + completed?: Maybe; + description?: Maybe; + excludedUsers?: Maybe>; + id: Scalars["String"]; + lastUpdate: Scalars["DateTime"]; + name?: Maybe; + potentialGroups?: Maybe>; + potentialUsers?: Maybe>; + priority?: Maybe; + processInstanceId: Scalars["String"]; + referenceName?: Maybe; + started: Scalars["DateTime"]; + state: Scalars["String"]; + }; + + export type KogitoMetadataArgument = { + lastUpdate?: InputMaybe; + processInstances?: InputMaybe; + userTasks?: InputMaybe; + }; + + export type ProcessInstanceMetaArgument = { + businessKey?: InputMaybe; + createdBy?: InputMaybe; + end?: InputMaybe; + endpoint?: InputMaybe; + id?: InputMaybe; + parentProcessInstanceId?: InputMaybe; + processId?: InputMaybe; + processName?: InputMaybe; + roles?: InputMaybe; + rootProcessId?: InputMaybe; + rootProcessInstanceId?: InputMaybe; + start?: InputMaybe; + state?: InputMaybe; + updatedBy?: InputMaybe; + }; + + export type UserTaskInstanceMetaArgument = { + actualOwner?: InputMaybe; + adminGroups?: InputMaybe; + adminUsers?: InputMaybe; + completed?: InputMaybe; + description?: InputMaybe; + excludedUsers?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + potentialGroups?: InputMaybe; + potentialUsers?: InputMaybe; + priority?: InputMaybe; + processInstanceId?: InputMaybe; + referenceName?: InputMaybe; + started?: InputMaybe; + state?: InputMaybe; + }; + + export type KogitoMetadataOrderBy = { + lastUpdate?: InputMaybe; + }; + export type LongArgument = { between?: InputMaybe; equal?: InputMaybe; diff --git a/packages/runtime-tools-process-gateway-api/src/types.ts b/packages/runtime-tools-process-gateway-api/src/types.ts index ec6c175bc55..e45c48933ba 100644 --- a/packages/runtime-tools-process-gateway-api/src/types.ts +++ b/packages/runtime-tools-process-gateway-api/src/types.ts @@ -36,16 +36,16 @@ export enum JobStatus { export interface Job { id: string; status: JobStatus; - expirationTime: Date; - priority: number; - callbackEndpoint: string; - repeatInterval: number; - repeatLimit: number; - scheduledId: string; - retries: number; - lastUpdate: Date; + expirationTime?: Date; + priority?: number; + callbackEndpoint?: string; + repeatInterval?: number; + repeatLimit?: number; + scheduledId?: string; + retries?: number; + lastUpdate?: Date; executionCounter?: number; - endpoint: string; + endpoint?: string; nodeInstanceId?: string; processId?: string; processInstanceId?: string; From 9939dcce144a9701ce932ac64a0dd70b3b013b0c Mon Sep 17 00:00:00 2001 From: Deepak Joseph Date: Thu, 19 Dec 2024 19:43:09 +0530 Subject: [PATCH 4/6] Fix tests --- packages/runtime-tools-process-gateway-api/src/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/runtime-tools-process-gateway-api/src/types.ts b/packages/runtime-tools-process-gateway-api/src/types.ts index e45c48933ba..fac95adaf18 100644 --- a/packages/runtime-tools-process-gateway-api/src/types.ts +++ b/packages/runtime-tools-process-gateway-api/src/types.ts @@ -36,11 +36,11 @@ export enum JobStatus { export interface Job { id: string; status: JobStatus; - expirationTime?: Date; + expirationTime: Date; priority?: number; callbackEndpoint?: string; - repeatInterval?: number; - repeatLimit?: number; + repeatInterval: number; + repeatLimit: number; scheduledId?: string; retries?: number; lastUpdate?: Date; From bf8aa0f1bf20bc6cbf6a61ccbf4c0c3d40208e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pere=20Fern=C3=A1ndez?= Date: Fri, 20 Dec 2024 14:48:47 +0100 Subject: [PATCH 5/6] - Add null check --- .../JobsDetailsModal/JobsDetailsModal.tsx | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx b/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx index d93a66a4025..70f0b32f104 100644 --- a/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx +++ b/packages/runtime-tools-process-enveloped-components/src/jobsManagement/envelope/components/JobsDetailsModal/JobsDetailsModal.tsx @@ -17,7 +17,7 @@ * under the License. */ -import React from "react"; +import React, { useCallback } from "react"; import { TextContent, Text, TextVariants } from "@patternfly/react-core/dist/js/components/Text"; import { Modal } from "@patternfly/react-core/dist/js/components/Modal"; import { Flex, FlexItem } from "@patternfly/react-core/dist/js/layouts/Flex"; @@ -45,7 +45,11 @@ export const JobsDetailsModal: React.FC = ({ ouiaId, ouiaSafe, }) => { - const modalContent = () => { + const checkNumericProperty = useCallback((propertyValue?: number) => { + return propertyValue !== undefined && propertyValue !== null; + }, []); + + const modalContent = useCallback(() => { return (
@@ -89,7 +93,7 @@ export const JobsDetailsModal: React.FC = ({ {job.status} - {job.priority !== undefined && ( + {checkNumericProperty(job.priority) && ( @@ -99,7 +103,7 @@ export const JobsDetailsModal: React.FC = ({ )} - {job.repeatInterval !== undefined && ( + {checkNumericProperty(job.repeatInterval) && ( @@ -109,7 +113,7 @@ export const JobsDetailsModal: React.FC = ({ )} - {job.repeatLimit !== undefined && ( + {checkNumericProperty(job.repeatLimit) && ( @@ -129,7 +133,7 @@ export const JobsDetailsModal: React.FC = ({ )} - {job.retries !== undefined && ( + {checkNumericProperty(job.retries) && ( @@ -139,7 +143,7 @@ export const JobsDetailsModal: React.FC = ({ )} - {job.executionCounter !== undefined && ( + {checkNumericProperty(job.executionCounter) && ( @@ -149,7 +153,7 @@ export const JobsDetailsModal: React.FC = ({ )} - {job.lastUpdate !== undefined && ( + {job.lastUpdate && ( @@ -177,7 +181,7 @@ export const JobsDetailsModal: React.FC = ({
); - }; + }, [job, checkNumericProperty]); return ( Date: Fri, 20 Dec 2024 17:04:30 +0100 Subject: [PATCH 6/6] - Add missing dev ui Tasks user --- .../src/main/resources/application.properties | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/process-compact-architecture/src/main/resources/application.properties b/examples/process-compact-architecture/src/main/resources/application.properties index b8fed9c6a26..41ea3670e65 100644 --- a/examples/process-compact-architecture/src/main/resources/application.properties +++ b/examples/process-compact-architecture/src/main/resources/application.properties @@ -105,3 +105,5 @@ quarkus.http.test-port=0 quarkus.swagger-ui.always-include=true quarkus.kogito.data-index.graphql.ui.always-include=true +# Development tasks users +%dev.jbpm.devui.users.jdoe.groups=admin,HR,IT \ No newline at end of file