Skip to content
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

feat: add a resubmit item in the WU menu #381

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading