Skip to content

form.yml.erb being rendered all the time #881

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

Open
andrejcermak opened this issue May 15, 2025 · 1 comment
Open

form.yml.erb being rendered all the time #881

andrejcermak opened this issue May 15, 2025 · 1 comment

Comments

@andrejcermak
Copy link
Contributor

In my interactive application that enables OpenStack VM creation, i use erb to dynamically generate drop down in the form.yml.erb file.

When I had a look at the logs, I see the erb code is called in a loop, even when the form is not viewed. Why is that? Is this expected behavior? Shouldn't the form be rendered only when it's opened?

@andrejcermak andrejcermak changed the title form.yml.erb being rendered all the tim form.yml.erb being rendered all the time May 15, 2025
@johrstrom
Copy link
Contributor

Yea this is a duplicate of OSC/ondemand#210 which we're trying to fix in 4.1. This is an OnDemand thing more than ood_core.

IIRC it's because we're parsing the titles out of the form.

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

No branches or pull requests

2 participants