We recently upgraded from 1.8 to 2.0.20. With version 1.8, the application form would print as, say,
Basic desktop
whereas now, with 2.0.20, it is printing as
Basic Desktop version: f775c18
Is there some configuration option that we failed to copy over to 2.0.20? Is there an option in 2.0.20 that we can set to suppress the version information?
This isn’t really very important, but we’d like to keep the noise we expose users to at a minimum.
Hi Bennet:
On my landing page (WebAuth Login), I have “powered by open OnDemand” at the bottom left of the footer, with “OnDemand version: v2.0.20” at the bottom right of the footer. Is that latter string the one you’re referring too? If so, that’s in
/var/www/ood/apps/sys/dashboard/app/views/layouts/_footer.html.erb. It’s not clear that you can override or suppress that without editing that file.
What I am referring to is on the form for the Basic Desktop (we modified bc_desktop a little), but it’s on all the applications, at the top of the form. The version is now included after the title attribute from the form.yml.erb is rendered.
Bennet:
That’s interesting:
[ric@ood ~]$ sudo find / -xdev -name form.yml.erb
comes up empty. I have a boatload of form.yml files though. A quick
rpm -ql ondemand-2.0.20-1.el7.x86_64
shows no form.yml.erb files, so I don’t have any idea where those came from at your site. Local git repo maybe?
Ric
here’s my one and only bc_desktop/form.yml
$ ls -ld /var/www/ood/apps/sys/bc_desktop/form.yml
-rw-r–r–. 1 root root 266 Dec 1 13:57 /var/www/ood/apps/sys/bc_desktop/form.yml
I don’t have a form.yml in /etc/ood for bc_desktop, just
$ ls -lR /etc/ood/config/apps/bc_desktop/
/etc/ood/config/apps/bc_desktop/:
total 4
-rw-r–r–. 1 root rt-is-unix 1729 Dec 2 07:52 desktop.yml
drwxrwsr-x. 2 root rt-is-unix 24 Jul 28 2021 submit
/etc/ood/config/apps/bc_desktop/submit:
total 4
-rw-r–r–. 1 root rt-is-unix 1148 Dec 2 07:52 desktop.erb
Yes, and I don’t find version: in any of my files, either. That’s why I was asking here, in the hope that someone on the list would know where in the Ruby code that is defined. Grepping for version: in our /opt/ood yielded many, many occurrences, but none looked particularly helpful. I suspect there is a file that gets rendered by the OnDemand application itself because it is occurring for all of our applications, not just one or two, and because it doesn’t seem to be in any file in the application directories.
I also note that under the Clusters menu now, we no longer have the text with the cluster name, instead we have
While making the issue below, I found the commit and it’s been there since 1.7.
That looks like a git hash. We try to get the version from git or a VERSION file. If neither are found, we don’t show the version. You must have started using git with 2.0?
I wonder what the behavior is when you remove the .git/ directory? Kind of defeats the purpose of using git, but automation should handle it. Or start tagging so the version is at least a number.
But I also made this issue for the same, and gathered a lot of information about the code there.
However, the contents of that _footer.html.erb don’t look like what is in our file.
That commit seems to point to this URL,
and a file called ondemand/app/views/layouts/_footer.html.erb, but when I look at the file listing at
I don’t see an ondemand/app directory, only one called ondemand/apps.
If I follow the path in the release_2.0 branch to the dashboard layouts, the _footer.html.erb there looks like what we have on our file system.
Sorry to be confused by all this, but I don’t know where in the installed RPM paths nor in the paths for the release_2.0 branch I would find the code comparable to what you cited. Would you mind pointing me to the installed location for that commit?
To close the loop in Discourse, if the application has a file called ‘VERSION’ at its root, you can put the word ‘unkown’ on its only line, restart the nginx web server (not httpd), and the version will no longer print as part of the application name. Just in case anyone wants to suppress this and reads this only on Discourse. Thanks, Jeff, and sorry for the extra noise from my confusions.