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

initial pass to make projects#show dynamic #3534

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

johrstrom
Copy link
Contributor

This is an initial pass to make projects#show page dynamic.

It changes the jobs controller a bit to return a turbo stream partial that the projects#show can then display.

It's an initial pass in the sense that the partials being returned a super simple. I just wanted to create a PR that was basically as small as it could be.

get '/jobs/info/:cluster/:id' => 'jobs#info', :defaults => { :format => 'json' }, :as => 'jobs_info'
get '/jobs/info/:cluster/:id' => 'jobs#pm_job_details', :defaults => { :format => 'turbo_stream' }, :as => 'pm_job_details'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I named this route jobs#pm_job_details just because I don't know if these partials are going to be useful for other pages. So we may as well make the API specific for the project manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants