Skip to content
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

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

Alputer
Copy link
Member

@Alputer Alputer commented May 27, 2024

Copy link

codecov bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.13%. Comparing base (d36b59b) to head (908aca2).
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            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              
Files with missing lines Coverage Δ
reana_server/config.py 84.65% <100.00%> (+0.33%) ⬆️
reana_server/rest/info.py 75.92% <100.00%> (+0.92%) ⬆️

@Alputer Alputer changed the title feat(sessions): add recommended images to info endpoint (#687) feat(sessions): add recommended images to info endpoint (#688) Aug 9, 2024
Alputer added a commit to Alputer/reana-server that referenced this pull request Nov 1, 2024
Alputer added a commit to Alputer/reana-server that referenced this pull request Nov 1, 2024
@Alputer Alputer changed the title feat(sessions): add recommended images to info endpoint (#688) feat(sessions): add recommended images to info endpoint Nov 1, 2024
Alputer added a commit to Alputer/reana-server that referenced this pull request Nov 1, 2024
Alputer added a commit to Alputer/reana-server that referenced this pull request Nov 1, 2024
Alputer added a commit to Alputer/reana-server that referenced this pull request Nov 11, 2024
@@ -465,6 +465,13 @@
"title": "Default workspace",
"value": "/usr/share"
},
"interactive_session_recommended_jupyter_images": {
"title": "Recommended jupyter images for interactive sessions",
Copy link
Member

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(
Copy link
Member

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.

Alputer added a commit to Alputer/reana-server that referenced this pull request Nov 12, 2024
Alputer added a commit to Alputer/reana-server that referenced this pull request Nov 12, 2024
@Alputer Alputer force-pushed the jupyter-allowlist-info branch 2 times, most recently from 112aee4 to 228b0da Compare November 12, 2024 09:28
Alputer added a commit to Alputer/reana-server that referenced this pull request Nov 12, 2024
Alputer added a commit to Alputer/reana-server that referenced this pull request Nov 12, 2024
Alputer added a commit to Alputer/reana-server that referenced this pull request Nov 12, 2024
Alputer added a commit to Alputer/reana-server that referenced this pull request Nov 12, 2024
]
},
"interactive_sessions_custom_image_allowed": {
"title": "Whether users can set custom interactive session images or not",
Copy link
Member

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

value=REANA_INTERACTIVE_SESSIONS_ENVIRONMENTS_CUSTOM_ALLOWED,
),
interactive_session_recommended_jupyter_images=dict(
title="Recommended jupyter images for interactive sessions",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cosmetics: Jupyter (in uppercase)

@tiborsimko tiborsimko merged commit 908aca2 into reanahub:master Nov 12, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

interactive-sessions: implement configurable allowlist
2 participants