-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[kie-issues#1720] Enhance Process Details UI page to show nodeInstanceId each timer belongs to #2820
[kie-issues#1720] Enhance Process Details UI page to show nodeInstanceId each timer belongs to #2820
Changes from 3 commits
f76a7aa
a772463
096a625
197a0d6
2a2a680
9939dcc
bf8aa0f
ca6e181
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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<IOwnProps & OUIAProps> = ({ | |
<FlexItem> | ||
<Split hasGutter> | ||
<SplitItem> | ||
<Text component={TextVariants.h6}>Status: </Text>{" "} | ||
<Text component={TextVariants.h6}>NodeInstanceId: </Text> | ||
</SplitItem> | ||
<SplitItem>{job.status}</SplitItem> | ||
<SplitItem>{job.nodeInstanceId}</SplitItem> | ||
</Split> | ||
</FlexItem> | ||
<FlexItem> | ||
<Split hasGutter> | ||
<SplitItem> | ||
<Text component={TextVariants.h6}>Priority: </Text>{" "} | ||
<Text component={TextVariants.h6}>Status: </Text>{" "} | ||
</SplitItem> | ||
<SplitItem>{job.priority}</SplitItem> | ||
<SplitItem>{job.status}</SplitItem> | ||
</Split> | ||
</FlexItem> | ||
{job.repeatInterval && ( | ||
{!isNil(job.priority) && ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the suggestions @ljmotta. I think we can use |
||
<FlexItem> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So maybe the priority can have the |
||
<Split hasGutter> | ||
<SplitItem> | ||
<Text component={TextVariants.h6}>Priority: </Text>{" "} | ||
</SplitItem> | ||
<SplitItem>{job.priority}</SplitItem> | ||
</Split> | ||
</FlexItem> | ||
)} | ||
{!isNil(job.repeatInterval) && ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
<FlexItem> | ||
<Split hasGutter> | ||
<SplitItem> | ||
|
@@ -93,7 +104,7 @@ export const JobsDetailsModal: React.FC<IOwnProps & OUIAProps> = ({ | |
</Split> | ||
</FlexItem> | ||
)} | ||
{job.repeatLimit && ( | ||
{!isNil(job.repeatLimit) && ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
<FlexItem> | ||
<Split hasGutter> | ||
<SplitItem> | ||
|
@@ -103,14 +114,16 @@ export const JobsDetailsModal: React.FC<IOwnProps & OUIAProps> = ({ | |
</Split> | ||
</FlexItem> | ||
)} | ||
<FlexItem> | ||
<Split hasGutter> | ||
<SplitItem> | ||
<Text component={TextVariants.h6}>ScheduledId: </Text> | ||
</SplitItem> | ||
<SplitItem>{job.scheduledId}</SplitItem> | ||
</Split> | ||
</FlexItem> | ||
{job.scheduledId && ( | ||
<FlexItem> | ||
<Split hasGutter> | ||
<SplitItem> | ||
<Text component={TextVariants.h6}>ScheduledId: </Text> | ||
</SplitItem> | ||
<SplitItem>{job.scheduledId}</SplitItem> | ||
</Split> | ||
</FlexItem> | ||
)} | ||
<FlexItem> | ||
<Split hasGutter> | ||
<SplitItem> | ||
|
@@ -137,16 +150,18 @@ export const JobsDetailsModal: React.FC<IOwnProps & OUIAProps> = ({ | |
</SplitItem> | ||
</Split> | ||
</FlexItem> | ||
<FlexItem> | ||
<Split hasGutter> | ||
<SplitItem> | ||
<Text component={TextVariants.h6} className="kogito-management-console-shared--jobsModal__text"> | ||
Callback Endpoint:{" "} | ||
</Text> | ||
</SplitItem> | ||
<SplitItem>{job.callbackEndpoint}</SplitItem> | ||
</Split> | ||
</FlexItem> | ||
{job.callbackEndpoint && ( | ||
<FlexItem> | ||
<Split hasGutter> | ||
<SplitItem> | ||
<Text component={TextVariants.h6} className="kogito-management-console-shared--jobsModal__text"> | ||
Callback Endpoint:{" "} | ||
</Text> | ||
</SplitItem> | ||
<SplitItem>{job.callbackEndpoint}</SplitItem> | ||
</Split> | ||
</FlexItem> | ||
)} | ||
</Flex> | ||
</TextContent> | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, use the inline check (
<value> === undefined
or<value> !== undefined
) instead of using a library to do so. This method checks if the value isnull
orundefined
[1], and looking in theJob
type, we don't have one case that can have those two values.[1] https://lodash.com/docs#isNil