Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-9.4.x' into candidate-…
Browse files Browse the repository at this point in the history
…9.6.x

Fix merge conflict

Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Apr 29, 2024
1 parent 2ff91ba commit d9e8531
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion esp/src/src-react/components/InfoGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const InfoGrid: React.FunctionComponent<InfoGridProps> = ({
return "";
}
},
Priority: {
Cost: {
label: `${nlsHPCC.Source} / ${nlsHPCC.Cost}`, width: 144,
formatter: (Source, row) => {
if (Source === "Cost Optimizer") {
Expand Down
8 changes: 4 additions & 4 deletions esp/src/src-react/components/WorkunitSummary.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import { CommandBar, ContextualMenuItemType, ICommandBarItemProps, MessageBar, MessageBarType, ScrollablePane, ScrollbarVisibility, Sticky, StickyPositionType } from "@fluentui/react";
import { WUQuery, WorkunitsService } from "@hpcc-js/comms";
import { WorkunitsService, WsWorkunits } from "@hpcc-js/comms";
import { scopedLogger } from "@hpcc-js/util";
import nlsHPCC from "src/nlsHPCC";
import { WUStatus } from "src/react/index";
Expand Down Expand Up @@ -84,7 +84,7 @@ export const WorkunitSummary: React.FunctionComponent<WorkunitSummaryProps> = ({
}, [workunit])
});

const nextWuid = React.useCallback((wuids: WUQuery.ECLWorkunit[]) => {
const nextWuid = React.useCallback((wuids: WsWorkunits.ECLWorkunit[]) => {
let found = false;
for (const wu of wuids) {
if (wu.Wuid !== wuid) {
Expand All @@ -104,15 +104,15 @@ export const WorkunitSummary: React.FunctionComponent<WorkunitSummaryProps> = ({
onClick: () => {
const now = new Date(Date.now());
const tomorrow = new Date(now.getTime() + (24 * 60 * 60 * 1000));
workunitService.WUQuery({ StartDate: `${wuidToDate(wuid)}T${wuidToTime(wuid)}Z`, EndDate: tomorrow.toISOString(), Sortby: "Wuid", Descending: false, Count: 2 } as WUQuery.Request).then(response => {
workunitService.WUQuery({ StartDate: `${wuidToDate(wuid)}T${wuidToTime(wuid)}Z`, EndDate: tomorrow.toISOString(), Sortby: "Wuid", Descending: false, Count: 2 } as WsWorkunits.WUQuery).then(response => {
nextWuid(response?.Workunits?.ECLWorkunit || []);
}).catch(err => logger.error(err));
}
},
{
key: "previous", iconOnly: true, tooltipHostProps: { content: nlsHPCC.PreviousWorkunit }, iconProps: { iconName: "Next" },
onClick: () => {
workunitService.WUQuery({ EndDate: `${wuidToDate(wuid)}T${wuidToTime(wuid)}Z`, Count: 2 } as WUQuery.Request).then(response => {
workunitService.WUQuery({ EndDate: `${wuidToDate(wuid)}T${wuidToTime(wuid)}Z`, Count: 2 } as WsWorkunits.WUQuery).then(response => {
nextWuid(response?.Workunits?.ECLWorkunit || []);
}).catch(err => logger.error(err));
}
Expand Down

0 comments on commit d9e8531

Please sign in to comment.