Bug #32703
closedhammer user list --help has invalid --order example
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1881668
Description of problem:
hammer user list --help shows:
..
--order ORDER Sort field and order, eg. ‘id DESC’
..
There are two errors in the example:
1) quote marks cant be used in a real example:
hammer> user list --order ‘id DESC’
Error: Too many arguments.
See: ' user list --help'.
hammer>
2) Even with proper quote marks, it does not work:
hammer> user list --order "id DESC"
400 Bad Request
the field 'id' in the order statement is not valid field for search
hammer>
(since also WebUI disallows searching by ID of user).
Version-Release number of selected component (if applicable):
Satellite 6.7.2
tfm-rubygem-hammer_cli-0.19.2.1-1.el7sat.noarch
How reproducible:
100%
Steps to Reproduce:
1. hammer user list --help
Actual results:
..
--order ORDER Sort field and order, eg. ‘id DESC’
..
Expected results:
..
--order ORDER Sort field and order, eg. "login DESC"
..
Additional info:
Updated by Tomer Brisker over 3 years ago
- Category changed from 19 to API
- Difficulty set to trivial
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8579 added
Updated by Adi Abramovitch over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|5e068c872909283912a3056546dc1fe51004b745.