From a66eef636861ab67076df7019c5e61e9c569788b Mon Sep 17 00:00:00 2001 From: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:19:34 -0400 Subject: [PATCH] HPCC-29244 ECL Watch v9 fix cannot set job name in playground original change for 29244 didn't fix the issue, because the jobname needed to be submitted to WUUpdate Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> --- esp/src/src-react/components/ECLPlayground.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/esp/src/src-react/components/ECLPlayground.tsx b/esp/src/src-react/components/ECLPlayground.tsx index f517bdfd37e..7c3d436c02c 100644 --- a/esp/src/src-react/components/ECLPlayground.tsx +++ b/esp/src/src-react/components/ECLPlayground.tsx @@ -74,6 +74,12 @@ const playgroundStyles = mergeStyleSets({ borderLeft: borderStyle, borderRight: borderStyle } + }, + ".ms-Label": { + marginRight: "12px" + }, + ".ms-Label::after": { + paddingRight: 0 } }, }, @@ -122,9 +128,6 @@ const playgroundStyles = mergeStyleSets({ display: "flex", marginLeft: "18px" }, - ".is-disabled .ms-Label": { - paddingRight: "12px" - }, ".ms-TextField-errorMessage": { display: "none" } @@ -231,11 +234,11 @@ const ECLEditorToolbar: React.FunctionComponent = ({ const submitWU = React.useCallback(async () => { const wu = await Workunit.create({ baseUrl: "" }); - await wu.update({ QueryText: editor.ecl() }); + await wu.update({ Jobname: queryName, QueryText: editor.ecl() }); await wu.submit(cluster); wu.watchUntilComplete(changes => playgroundResults(wu)); - }, [cluster, editor, playgroundResults]); + }, [cluster, editor, playgroundResults, queryName]); const publishWU = React.useCallback(async () => { if (queryName === "") { @@ -246,7 +249,7 @@ const ECLEditorToolbar: React.FunctionComponent = ({ const wu = await Workunit.create({ baseUrl: "" }); - await wu.update({ QueryText: editor.ecl() }); + await wu.update({ Jobname: queryName, QueryText: editor.ecl() }); await wu.submit(cluster, WUUpdate.Action.Compile); wu.watchUntilComplete(changes => playgroundResults(wu, "publish")); @@ -302,7 +305,6 @@ const ECLEditorToolbar: React.FunctionComponent = ({