I’m creating a form for users to submit job to the cluster. One of the field is version and I want to auto populate it with the every single version available of that software installed on cluster. I’m using auto_modules attributes. and using these docs:
In your form.yml file - when I copy your form.yml file, not even a select box shows up (I’m not sure if I’m getting the indentation right). But if I add the above bit of code, the version list shows up and populates.
I see that the docs aren’t clear that this is a required line - I’ll get this updated this morning.
So I’ll show this as an example of how the main components form and attributes work. form is a list of form choices for the application. attributes is then specifying what those items in form are, whether they’re number fields or choices and so on. auto_modules_* is a form choice that replaces the old `Version’ widget.
Thank you for the answer. It does look a little better now. I see the default in drop down menu but no other versions.
An another question I will need different modules there depending on Solver field choice. Is it possible on this level to make it dynamically populated?
Another thing to note about the auto_modules_* attribute is that it’s case-sensitive. On my system, when I use auto_modules_ansys, I get a list of versions, but if I use auto_modules_Ansys, I only have a select box with the ‘default’ selectable. So it’s possible that by changing your form to auto_modules_Ansys with a capital A, it’ll pick up all of the versions. It depends on what the module is named in your system.
For the other question, it’s not possible to make this field dynamic at this level. The cluster-awareness is built into the dashboard code base, and adding the ability to generate the list dynamically based off of a regex is on the roadmap, but currently even that functionality does not exist.
at the end of my /etc/ood/config/clusters.d/viking.yml
Is it where it suppose to go? Do you have an example by any chance. My dynamic choice by cluster is not working as well (all queus are showing regardless of cluster chosen) and I think this might be a reason, that I put these 2 directives in a wrong place.
Asking as a sanity check - have you restarted your web-server since changing these configs? Beyond that, could you share the viking.json file so I can attempt to replicate your issue?
data-hide-auto-modules-ansys: true will hide the entire field generated by auto_modules_ansys when ‘CFX’ is selected, not change the list of versions it shows, which is how I interpreted your ask.
data-hide-auto-modules-ansys: true will hide the entire field generated by auto_modules_ansys when ‘CFX’ is selected, not change the list of versions it shows, which is how I interpreted your ask.
And yes it’s what exactly I want. But it’s not working together with modules populating and queues populating depending on cluster choice ( all of them are there, but they are not dynamically populated).
In my attempt to work around nested modules I created CFX directory and copied my modules there. I updated my json with modules and I my form and I can see modules now. But I can hide this field for some reason: