Skip to content

Commit

Permalink
Merge pull request #381 from dehilsterlexis/ADD_RESUMIT_TO_WU
Browse files Browse the repository at this point in the history
feat: add a resubmit item in the WU menu
  • Loading branch information
GordonSmith authored Feb 9, 2024
2 parents 8a31383 + 42f735b commit 5c96b3e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,17 @@
},
"enablement": "ecl.connected"
},
{
"command": "hpccPlatform.resubmitWU",
"category": "ECL",
"title": "%Resubmit%",
"description": "%Resubmit ECL to HPCC Platform%",
"icon": {
"light": "resources/light/play.svg",
"dark": "resources/dark/play.svg"
},
"enablement": "ecl.connected"
},
{
"command": "ecl.submitNoArchive",
"category": "ECL",
Expand Down Expand Up @@ -1007,6 +1018,11 @@
"when": "view == hpccPlatform && viewItem =~ /^ECLWUNode/",
"group": "3action@910"
},
{
"command": "hpccPlatform.resubmitWU",
"when": "view == hpccPlatform && viewItem =~ /^ECLWUNode/",
"group": "3action@915"
},
{
"command": "hpccPlatform.deleteWU",
"when": "view == hpccPlatform && viewItem =~ /^ECLWUNode/",
Expand Down
2 changes: 2 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
"Refresh": "Refresh",
"Refresh Tree": "Refresh Tree",
"Reject unauthorized calls e.g. SSL certificate errors": "Reject unauthorized calls e.g. SSL certificate errors",
"Resubmit": "Resubmit",
"Resubmit ECL to HPCC Platform": "Resubmit ECL to HPCC Platform",
"Reveal Generated ECL in File Explorer": "Reveal Generated ECL in File Explorer",
"Reveals Generated ECL in File Explorer": "Reveals Generated ECL in File Explorer",
"Run 'eclcc -syntax' on load": "Run 'eclcc -syntax' on load",
Expand Down
8 changes: 8 additions & 0 deletions src/ecl/eclWatchTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export class ECLWatchTree extends Tree {
wuNode.abort();
});

vscode.commands.registerCommand("hpccPlatform.resubmitWU", (wuNode: ECLWUNode) => {
wuNode.resubmit();
});

vscode.commands.registerCommand("hpccPlatform.deleteWU", (wuNode: ECLWUNode) => {
wuNode.delete();
});
Expand Down Expand Up @@ -463,6 +467,10 @@ export class ECLWUNode extends Item<ECLWatchTree> {
this._wu.abort().then(() => this._tree.refresh(this));
}

resubmit() {
this._wu.resubmit().then(() => this._tree.refresh(this));
}

moveJobUp() {
const service = new SMCService({ baseUrl: this._wu.BaseUrl });
return service.MoveJobUp({
Expand Down

0 comments on commit 5c96b3e

Please sign in to comment.