Skip to content

refactor hpc_module #4350

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

Closed
johrstrom opened this issue May 8, 2025 · 0 comments · Fixed by #4378
Closed

refactor hpc_module #4350

johrstrom opened this issue May 8, 2025 · 0 comments · Fixed by #4378

Comments

@johrstrom
Copy link
Contributor

It's clear that the HpcModule class could use a little refactor so we can pull all the modules a little easier.

Seems like the all API should set the cluster attr_reader.

          It's used in the controller where we get all modules across clusters, but once I refactor that piece I can turn it into an `attr_reader` with no issue. 

(Actually we might not need to read/access that at all. I was just making things difficult)

# TODO: Modify HpcModule to return all modules across all clusters
@modules = @clusters.flat_map do |cluster|
HpcModule.all(cluster.id).each { |mod| mod.cluster = cluster.id }
end

Originally posted by @ahmed-mgd in #4348 (comment)

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

Successfully merging a pull request may close this issue.

3 participants