From d12329635951f15a81fb44bee294579e641e3a1f Mon Sep 17 00:00:00 2001 From: Mihajlo Date: Tue, 27 Jul 2021 14:55:24 +0200 Subject: [PATCH] chore: code comment --- src/job-execution/WebJobExecutor.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/job-execution/WebJobExecutor.ts b/src/job-execution/WebJobExecutor.ts index ef47598..bfe45ef 100644 --- a/src/job-execution/WebJobExecutor.ts +++ b/src/job-execution/WebJobExecutor.ts @@ -56,6 +56,10 @@ export class WebJobExecutor extends BaseJobExecutor { if (jobUri.length > 0) { apiUrl += '&_job=' + jobUri + /** + * Using both _job and _program parameters will cause a conflict in the JES web app, as it’s not clear whether or not the server should make the extra fetch for the job uri. + * To handle this, we add the extra underscore and recreate the _program variable in the SAS side of the SASjs adapter so it remains available for backend developers. + */ apiUrl = apiUrl.replace('_program=', '__program=') }