Bug #20579
closedhammer order option has no effect
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1479450
Description of problem:
hammer erratum list order option has no effect
- candlepin-2.0.40-1.el7.noarch
- candlepin-selinux-2.0.40-1.el7.noarch
- foreman-1.15.2-1.el7sat.noarch
- foreman-cli-1.15.2-1.el7sat.noarch
- foreman-compute-1.15.2-1.el7sat.noarch
- foreman-debug-1.15.2-1.el7sat.noarch
- foreman-discovery-image-3.1.1-22.el7sat.noarch
- foreman-ec2-1.15.2-1.el7sat.noarch
- foreman-gce-1.15.2-1.el7sat.noarch
- foreman-installer-1.15.2-1.el7sat.noarch
- foreman-installer-katello-3.4.4-1.el7sat.noarch
- foreman-libvirt-1.15.2-1.el7sat.noarch
- foreman-openstack-1.15.2-1.el7sat.noarch
- foreman-ovirt-1.15.2-1.el7sat.noarch
- foreman-postgresql-1.15.2-1.el7sat.noarch
- foreman-proxy-1.15.2-1.el7sat.noarch
- foreman-rackspace-1.15.2-1.el7sat.noarch
- foreman-selinux-1.15.2-1.el7sat.noarch
- foreman-vmware-1.15.2-1.el7sat.noarch
- katello-3.4.4-2.el7sat.noarch
- katello-ca-consumer-sat-r220-02.lab.eng.rdu2.redhat.com-1.0-4.noarch
- katello-certs-tools-2.4.0-1.el7sat.noarch
- katello-client-bootstrap-1.4.0-1.el7sat.noarch
- katello-common-3.4.4-2.el7sat.noarch
- katello-debug-3.4.4-2.el7sat.noarch
- katello-default-ca-1.0-1.noarch
- katello-installer-base-3.4.4-1.el7sat.noarch
- katello-selinux-3.0.2-1.el7sat.noarch
- katello-server-ca-1.0-1.noarch
- katello-service-3.4.4-2.el7sat.noarch
- openldap-2.4.44-5.el7.x86_64
- pulp-client-1.0-1.noarch
- pulp-docker-plugins-2.3.0-1.el7sat.noarch
- pulp-katello-1.0.2-1.el7sat.noarch
- pulp-ostree-plugins-1.2.1-1.el7sat.noarch
- pulp-puppet-plugins-2.12.2-1.el7sat.noarch
- pulp-puppet-tools-2.12.2-1.el7sat.noarch
- pulp-rpm-plugins-2.12.2-2.el7sat.noarch
- pulp-selinux-2.12.2-2.el7sat.noarch
- pulp-server-2.12.2-2.el7sat.noarch
- python-ldap-2.4.15-2.el7.x86_64
- tfm-rubygem-ldap_fluff-0.4.6-1.el7sat.noarch
- tfm-rubygem-net-ldap-0.15.0-1.el7sat.noarch
How reproducible:
Always
Steps to Reproduce:
1. Create an organization
2. Create product and a yum repository with errata
3. Type erratum list --order="issued ASC" --organization-id="38" --per-page="10"
Actual results:
the output is not sorted issue date
Expected results:
the output sorted by issue date
Additional info:
in automation we use repo https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/
hammer -v -output=csv erratum list --order="issued ASC" --organization-id="38" --per-page="10"
<<<
bbc1dec7-8a38-4b3e-9eaf-b8dd31c4dfca,RHEA-2012:0057,security,Bear_ErratumPARTHA
a8955a57-0b90-4bca-8636-ff130be3fb6a,RHEA-2012:0056,security,Bird_Erratum
575d38d0-1876-420b-9bd7-b22eb1631b0e,RHEA-2012:0058,enhancement,Gorilla_Erratum
58101520-5807-4428-95f5-9f54296d3c90,RHEA-2012:0055,security,Sea_Erratum
getting the info of the first one
hammer --output=json erratum info --id="bbc1dec7-8a38-4b3e-9eaf-b8dd31c4dfca"
<<<{
"ID": "bbc1dec7-8a38-4b3e-9eaf-b8dd31c4dfca",
"Errata ID": "RHEA-2012:0057",
"Title": "Bear_ErratumPARTHA",
"Type": "security",
"Severity": "",
"Issued": "2013-01-27",
"Updated": "2013-01-27",
"Description": "Bear_Erratum",
"Summary": "",
"Solution": ""
}
getting the info of the last one
hammer --output=json erratum info --id="58101520-5807-4428-95f5-9f54296d3c90"
<<<{
"ID": "58101520-5807-4428-95f5-9f54296d3c90",
"Errata ID": "RHEA-2012:0055",
"Title": "Sea_Erratum",
"Type": "security",
"Severity": "",
"Issued": "2012-01-27",
"Updated": "2012-01-27",
"Description": "Sea_Erratum",
"Summary": "",
"Solution": ""
}