Skip to content

Use cluster title in modbrowser versions table#5064

Merged
johrstrom merged 1 commit intoOSC:masterfrom
hansen-m:bug-fix/modbrowser-useclustertitle
Feb 13, 2026
Merged

Use cluster title in modbrowser versions table#5064
johrstrom merged 1 commit intoOSC:masterfrom
hansen-m:bug-fix/modbrowser-useclustertitle

Conversation

@hansen-m
Copy link
Contributor

Cluster column value in versions table should use the cluster title to match the toolbar cluster filter menu values

@Bubballoo3
Copy link
Contributor

We actually have an ood_core method for this on the cluster object itself, see #4869. Thanks for noticing this spot where it was forgotten though!

@hansen-m
Copy link
Contributor Author

@Bubballoo3 Thanks for the feedback and reference. I'm still learning more about how this code works.

It looks like the clusters variable being passed is just a string derived from the modules versions instead of the cluster object. Wouldn't there still need to be a lookup to use the title? Similar to the toolbar.

I could move the cluster object lookup up to the module_list and pass it the cluster objects instead of strings if that would make more sense here.

<% clusters  = versions.map(&:cluster).uniq.map { |id| Configuration.job_clusters[id.to_s] }.compact %>
<%= render 'versions_table', versions: versions, clusters: clusters %>

Is there a better way?

Copy link
Contributor

@Bubballoo3 Bubballoo3 left a comment

Choose a reason for hiding this comment

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

🤦‍♂️You're right, sorry about that! This is definitely the simplest way to get the title. Thanks again for the contribution!

Copy link
Contributor

@johrstrom johrstrom left a comment

Choose a reason for hiding this comment

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

Thanks!

@johrstrom johrstrom merged commit 291a5dd into OSC:master Feb 13, 2026
61 of 65 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Review to Merged/Closed in PR Review Pipeline Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Merged/Closed

Development

Successfully merging this pull request may close these issues.

4 participants