renku icon indicating copy to clipboard operation
renku copied to clipboard

Select branch in renku.ini when starting a session

Open LiliGasser opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. I use renkulab to share a streamlit app with a collaborator who then creates and manipulates files with the help of the app. I'd like this to be done on another branch than the master.

Describe the solution you'd like Allow to select the branch to start a session from in renku.ini. (Or some other approach that you find is suitable.)

Describe alternatives you've considered So far, the branch needs to be manually adjusted. This often slips my or my collaborator's mind and we then end up starting the session in the master branch.

Additional context Add any other context or screenshots about the feature request here.

LiliGasser avatar Dec 06 '21 09:12 LiliGasser

This request makes sense and should be easy to implement. The only issue I see with it, though, is that all sessions will be started on this branch, regardless of whether the user is trying to access the streamlit app or something else.

I'm assuming there is a reason you do not want to merge this branch to master, but, as an alternative, have you thought of forking the repo and using the fork for running the streamlit app? There, the app could be on the primary branch, and, if you made changes that needed to go back into the main repo, it would be easy to create a PR to merge them.

ciyer avatar Dec 06 '21 10:12 ciyer

I see what you mean with all sessions being started from this one branch. In the current project, this is not an issue since we only use renkulab for the streamlit app and work locally otherwise. But I can see this being difficult/annoying/not intuitive when several people work with sessions from a repo.

I like to idea to fork the repository and will follow this path.

Thank you @ciyer !

LiliGasser avatar Dec 06 '21 12:12 LiliGasser