-
Notifications
You must be signed in to change notification settings - Fork 6
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
"The session could not be started" and "A session is already running" shown at once if auto-start with non-existing branch #1777
Comments
Thank you @volodymyrss for the feedback. The message is indeed confusing in this case. When using an autostart link to quickly create a new session, we verify that any embedded data is valid. Do you think adding a longer explanation in the first message would help? Something like the following:
|
I see the logic, but the result is a bit unexpected indeed. |
I can imagine contexts where an error would be the right thing to do, but given the many different ways these links can be used and passed around, I would prefer to leave it as a warning, as an error might be too discouraging to some of our users. :) I suggest showing a warning with the following information:
A version of this message will need to be made for the case that the commit could not be found, but I am assuming it is obvious how it would be adapted. This doesn't completely handle the additional complication of what to do when a session is already running against the default branch, but I think this will help at least a little in that case as well. |
True. But to share my particular experience, it was quite discouraging to open session which I assumed had my branch, but the content was missing.
Actually when there is no session, the message is already quite understandable - for me. |
@ciyer Minor detail to keep in mind: it may not be the head commit. Autosaves take precedence (if any), and running sessions also take precedence (if any) -- the priority is |
We will tackle this in the next sprint and provide understandable feedback when a user tries to autostart a session and the internal logic redirects them to an already existing session. |
In the meanwhile, the "Start session" page changed a bit. Here is the current output for such a case. It's probably less confusing since we now show all the options when an error occurs, but the message is still confusing.
I adapted it to the current output (options already expanded) and made it a bit more generic so that we can handle branches and commits in the same way |
Description
When opening this:
https://renkulab.io/projects/astronomy/mmoda/mmoda-request/sessions/new?autostart=1&branch=mmoda_branch
The session which opens with "Open" button below is with
master
- so not at all what was intended.Reproduce
Open this:
https://renkulab.io/projects/astronomy/mmoda/mmoda-request/sessions/new?autostart=1&branch=mmoda_branch
Context
The text was updated successfully, but these errors were encountered: