Skip to content

Commit

Permalink
update example; add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rstijerina committed Dec 20, 2024
1 parent 105f4a5 commit d28d502
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions server/portal/apps/workspace/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ def post(self, request, *args, **kwargs):
if not execSystemId:
app = _get_app(job_post["appId"], job_post["appVersion"], request.user)
execSystemId = app["definition"].jobAttributes.execSystemId

if not job_post.get("appVersion"):
app = _get_app(job_post["appId"], None, request.user)
job_post["appVersion"] = app["definition"].version
Expand Down
10 changes: 8 additions & 2 deletions server/portal/settings/settings_custom.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,14 @@
"debug": _DEBUG,
"makeLink": True,
"viewPath": True,
"compressApp": 'compress',
"extractApp": 'extract',
"compressApp": {
"id": "compress",
"version": "0.0.3" # Can be set to "" to use the latest version
},
"extractApp": {
"id": "extract",
"version": "0.0.1" # Can be set to "" to use the latest version
},
"makePublic": False,
"hideApps": False,
"hideDataFiles": False,
Expand Down
4 changes: 2 additions & 2 deletions server/portal/settings/settings_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@
"viewPath": True,
"compressApp": {
"id": "compress",
"version": "0.0.3"
"version": "0.0.3" # Can be set to "" to use the latest version
},
"extractApp": {
"id": "extract",
"version": "0.0.1"
"version": "0.0.1" # Can be set to "" to use the latest version
},
"makePublic": True,
"hideApps": False,
Expand Down

0 comments on commit d28d502

Please sign in to comment.