-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sessions): add recommended images to info endpoint #688
Conversation
0d2fcee
to
84f3591
Compare
84f3591
to
a1db601
Compare
a1db601
to
36e254e
Compare
36e254e
to
36adb76
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #688 +/- ##
==========================================
+ Coverage 60.06% 60.13% +0.06%
==========================================
Files 32 32
Lines 3556 3562 +6
==========================================
+ Hits 2136 2142 +6
Misses 1420 1420
|
36adb76
to
c485bac
Compare
c485bac
to
85c75c2
Compare
85c75c2
to
e785aee
Compare
e785aee
to
035c99d
Compare
035c99d
to
5238b4d
Compare
docs/openapi.json
Outdated
@@ -465,6 +465,13 @@ | |||
"title": "Default workspace", | |||
"value": "/usr/share" | |||
}, | |||
"interactive_session_recommended_jupyter_images": { | |||
"title": "Recommended jupyter images for interactive sessions", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/jupyter/Jupyter in documentation strings
@@ -428,6 +428,11 @@ def _get_rate_limit(env_variable: str, default: str) -> str: | |||
) | |||
"""Maximum allowed period (in days) for interactive session inactivity before automatic closure.""" | |||
|
|||
REANA_INTERACTIVE_SESSIONS_ENVIRONMENTS = json.loads( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also expose to the users in the info
output whether the server allows to specify custom Jupyter images by users? See the interactive_sessions.environments.jupyter.allow_custom
Helm value.
5238b4d
to
98a20ec
Compare
112aee4
to
228b0da
Compare
228b0da
to
36bda63
Compare
36bda63
to
0a4c4bd
Compare
0a4c4bd
to
0551091
Compare
docs/openapi.json
Outdated
] | ||
}, | ||
"interactive_sessions_custom_image_allowed": { | ||
"title": "Whether users can set custom interactive session images or not", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Phrasing: Whether users are allowed to spawn custom interactive session images
reana_server/rest/info.py
Outdated
value=REANA_INTERACTIVE_SESSIONS_ENVIRONMENTS_CUSTOM_ALLOWED, | ||
), | ||
interactive_session_recommended_jupyter_images=dict( | ||
title="Recommended jupyter images for interactive sessions", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cosmetics: Jupyter (in uppercase)
0551091
to
908aca2
Compare
Closes reanahub/reana-workflow-controller#569