OSC / ondemand

Supercomputing. Seamlessly. Open, Interactive HPC Via the Web
https://openondemand.org/
MIT License
280 stars 104 forks source link

Provide access to the session (at least session.id) for running jobs view.html.erb #3565

Open Micket opened 4 months ago

Micket commented 4 months ago

For example the completed sessions have full access to the session variable: https://github.com/OSC/ondemand/blob/75ea435fdae1ca11e3bd2cdfed939880046f3d6b/apps/dashboard/app/helpers/batch_connect/sessions_helper.rb#L25

but the running jobs only get view and connect parts: https://github.com/OSC/ondemand/blob/75ea435fdae1ca11e3bd2cdfed939880046f3d6b/apps/dashboard/app/helpers/batch_connect/sessions_helper.rb#L10

I would really like to use the session ID as a unique identifier for a cookie I need to set for an app. This (at least the session.id) should always be available so I see no reason why this can't be provided for the template.