Skip to content

Commit 510aa2f

Browse files
feat(rest): add gitlab_host to info endpoint (#740)
1 parent e04d1fd commit 510aa2f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docs/openapi.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,10 @@
481481
"title": "Default workspace",
482482
"value": "/usr/share"
483483
},
484+
"gitlab_host": {
485+
"title": "GitLab host",
486+
"value": "gitlab.cern.ch"
487+
},
484488
"interactive_session_recommended_jupyter_images": {
485489
"title": "Recommended Jupyter images for interactive sessions",
486490
"value": [

reana_server/rest/info.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
REANA_DASK_CLUSTER_MAX_NUMBER_OF_WORKERS,
3737
REANA_DASK_CLUSTER_DEFAULT_SINGLE_WORKER_THREADS,
3838
REANA_DASK_CLUSTER_MAX_SINGLE_WORKER_THREADS,
39+
REANA_GITLAB_HOST,
3940
)
4041
from reana_server.decorators import signin_required
4142

@@ -355,6 +356,10 @@ def info(user, **kwargs): # noqa
355356
"title": "Dask workflows allowed in the cluster",
356357
"value": "False"
357358
},
359+
"gitlab_host": {
360+
"title": "GitLab host",
361+
"value": "gitlab.cern.ch"
362+
},
358363
"dask_autoscaler_enabled": {
359364
"title": "Dask autoscaler enabled in the cluster",
360365
"value": "False"
@@ -477,6 +482,10 @@ def info(user, **kwargs): # noqa
477482
title="Dask workflows allowed in the cluster",
478483
value=bool(DASK_ENABLED),
479484
),
485+
gitlab_host=dict(
486+
title="GitLab host",
487+
value=REANA_GITLAB_HOST,
488+
),
480489
)
481490

482491
if DASK_ENABLED:
@@ -566,6 +575,8 @@ class InfoSchema(Schema):
566575
yadage_engine_packtivity_version = fields.Nested(StringInfoValue)
567576
snakemake_engine_version = fields.Nested(StringInfoValue)
568577
dask_enabled = fields.Nested(StringInfoValue)
578+
gitlab_host = fields.Nested(StringInfoValue)
579+
569580
if DASK_ENABLED:
570581
dask_autoscaler_enabled = fields.Nested(StringInfoValue)
571582
dask_cluster_default_number_of_workers = fields.Nested(StringInfoValue)

0 commit comments

Comments
 (0)