fix: viya deploy makedata missing params
Some checks failed
Build / Build-and-ng-test (pull_request) Failing after 49s
Build / Build-and-test-development (pull_request) Successful in 9m5s

This commit is contained in:
Medjedovic
2025-06-25 15:41:43 +02:00
parent 0db6b25327
commit 7a8231615c

View File

@ -308,7 +308,11 @@ export class AutomaticComponent implements OnInit {
}
if (this.deployInNewWindow) {
this.runMakedataInNewWindow(selectedComputeContextName)
this.runMakedataInNewWindow({
contextName: selectedComputeContextName,
admin: this.selectedAdminGroup,
dcPath: this.dcPath
})
} else {
this.sasJs
.request(`services/admin/makedata`, data, overrideConfig, () => {
@ -358,11 +362,17 @@ export class AutomaticComponent implements OnInit {
}
}
public runMakedataInNewWindow(contextName: string) {
public runMakedataInNewWindow(params: {
contextName: string
admin: string
dcPath: string
}) {
let serverUrl = this.sasjsConfig.serverUrl
let appLoc = this.sasjsConfig.appLoc
const execPath = this.sasService.getExecutionPath()
let contextname = `&_contextname=${contextName}`
let contextname = `&_contextname=${params.contextName}`
let admin = `&_admin=${params.admin}`
let dcPath = `&_dcpath=${params.dcPath}`
let debug = `&_debug=131`
let programUrl =
@ -372,6 +382,8 @@ export class AutomaticComponent implements OnInit {
appLoc +
'/services/admin/makedata' +
contextname +
admin +
dcPath +
debug
window.open(programUrl)