-
Notifications
You must be signed in to change notification settings - Fork 34
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
ui: add a way to open, list and close interactive sessions #142
ui: add a way to open, list and close interactive sessions #142
Conversation
47be429
to
c5cb8d5
Compare
c5cb8d5
to
bd8db90
Compare
Things to keep in mind while reviewing:
|
reana-ui/src/util.js
Outdated
* Open Jupyter Notebook in a new tab. | ||
*/ | ||
export const openJupyterNotebook = (event, sessionUri, reanaToken) => { | ||
const uri = `${api}${sessionUri}?token=${reanaToken}`; |
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.
Do we need to append the token? I think that if the session is valid the token shouldn't be needed.
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.
If we do not append the token it opens up a login screen where token needs to be entered. We also append it in CLI. This is something to be fixed quite urgently I think
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.
I can see what you mean now. It's not cool to expose the token like this when we're already logged in. Maybe we can create a ticket for this?
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.
I agree, this is part of a different issue since it touches more broader topics.
Short explanation: This is due to login living inside REANA-Server (more exactly, inside Invenio). In order to achieve the described behaviour, we would need to:
- Place an authentication service in front of all of these components (R-Server and interactive sessions) (going more in the direction of having Kubernetes based authentications system).
- Or have an authentication mechanism that allows federated authentication
reana-ui/src/pages/workflowList/components/WorkflowActionsPopup.js
Outdated
Show resolved
Hide resolved
reana-ui/src/pages/workflowList/components/WorkflowActionsPopup.js
Outdated
Show resolved
Hide resolved
9e4f183
to
6f37ddf
Compare
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.
I see that deleted workflows can open/close sessions, should this be possible?
ccing @diegodelemos @tiborsimko
6f37ddf
to
c852961
Compare
This sounds very counterintuitive/confusing to me; although the interactive session has nothing to do with the workflow and its status, I would probably not show this action if the workflow is deleted. Once the workspace is disassociated from the workflow this would be displayed completely differently (I am thinking on the use case that someone uses the workflow as a workspace right now). |
c852961
to
0246341
Compare
closes #77