Not able to select/publish " Use Latest Version" of puppet module in content view
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1351728
Description of problem:
While adding puppet module in content view, even when we select the "latest version" and publish the content view , the older version of puppet module is published. Which can be checked under file "/etc/puppet/environments/ENVNAME/modules/MODULE/metadata.json"
Version-Release number of selected component (if applicable):
Red Hat Satellite 6.2 Beta
Steps to Reproduce:
1.Add a Puppet Module with multiple Versions
2.Choose " Use Latest"
3.Publish the Content-View and look into /etc/puppet/environments/ENVNAME/modules/MODULE/metadata.json - > Oldest Version is published, not the latest version.
It is not able to select the latest version and publish it
It is should be able to select the latest version and publish it
When we converted puppet modules from being stored in elasticsearch to
the database, we stopped ordering by sortable_version. Instead we used
id and version in different places. Id doesn't work for obvious reasons
but we can't order by versions because when string sorting say 1.9 and
1.12, we get back 1.9 first in desc order when we really need 1.12. This