Skip to content

Commit

Permalink
Fix serializing CWL requirements for certain features (#466)
Browse files Browse the repository at this point in the history
We still have to refactor cwlts such that it never deletes
any requirements. rabix/cwl-ts#112

Closes #466
  • Loading branch information
gungorbudak authored and C02CR2E3ML85 committed Sep 17, 2020
1 parent 7bc8047 commit 62a7cac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"brace": "^0.11.0",
"core-js": "^2.5.3",
"cwl-svg": "2.0.1",
"cwlts": "1.15.29",
"cwlts": "^1.19.2",
"font-awesome": "^4.7.0",
"jquery": "^3.2.1",
"js-yaml": "^3.10.0",
Expand Down Expand Up @@ -117,4 +117,4 @@
"typescript": "~2.6.2",
"webdriverio": "~4.10.2"
}
}
}
2 changes: 1 addition & 1 deletion src/app/editor-common/app-editor-base/app-editor-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ export abstract class AppEditorBase extends DirectiveBase implements StatusContr

const jobWithAbspaths = appIsLocal ? ensureAbsolutePaths(path.dirname(appID), job) : job;

return executor.execute(appID, this.dataModel, jobWithAbspaths, executorPath, executionParams).pipe(
return executor.execute(appID, appContent, this.dataModel, jobWithAbspaths, executorPath, executionParams).pipe(
finalize(() => this.fileRepository.reloadPath(executionParams.outDir.value))
);
})
Expand Down
3 changes: 1 addition & 2 deletions src/app/execution/services/executor/executor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ export class ExecutorService2 {

}

execute(appID: string, model: WorkflowModel | CommandLineToolModel, jobValue: Object = {}, executorPath: string = "", executionParams: Partial<CWLExecutionParamsConfig> = {}): Observable<any> {
execute(appID: string, appContent: string, model: WorkflowModel | CommandLineToolModel, jobValue: Object = {}, executorPath: string = "", executionParams: Partial<CWLExecutionParamsConfig> = {}): Observable<any> {

const appContent = serializeModel(model, true, false, true);
const executor = new CWLExecutor({ executorPath: executorPath });
const stepList = this.getStepList(model);

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3227,10 +3227,10 @@ [email protected]:
dependencies:
core-js "^2.5.1"

cwlts@1.15.29:
version "1.15.29"
resolved "https://registry.yarnpkg.com/cwlts/-/cwlts-1.15.29.tgz#9000f26406f0af1506c5e123decd51122cc4f2d3"
integrity sha512-P690kLZZ1PRpT+qOgui2AnrCPbSp+t1QQW90O6egQhXCmeDfawczfoRMYPHKQtLfYQYVegKE2SPyM2g6SWapTA==
cwlts@^1.19.2:
version "1.19.2"
resolved "https://registry.yarnpkg.com/cwlts/-/cwlts-1.19.2.tgz#a1fab0414ebbd1279d0dac4f95bcd45844b26999"
integrity sha512-ZXJ/O6x69oRgO+l+J5CEOgWl9+M7IA/TGxxCTMhoSb2/B330I858Ee6uSN6JcOYDy1o2Q5iHsLlmL0Z5BgTwwg==
dependencies:
ajv "^6.1.1"
js-yaml "^3.10.0"
Expand Down

0 comments on commit 62a7cac

Please sign in to comment.