Project

General

Profile

Actions

Bug #6573

closed

Satellite6 should error when the user attempts to sort on a non-sortable field

Added by Adam Price almost 10 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
API
Target version:
-
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1110431
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

  1. hammer activation-key list --organization-id=1 --by='name'
    ---|--------------|----------------|-----------------------|-------------
    ID | NAME | CONSUMED | LIFECYCLE ENVIRONMENT | CONTENT VIEW
    ---|--------------|----------------|-----------------------|-------------
    8 | ak1234 | 0 of Unlimited | | cv1
    12 | ak12345678 | 0 of Unlimited | | cv1
    5 | actkey | 0 of Unlimited | DEV | cv1
    1 | actkey1 | 1 of Unlimited | DEV | cv1
    4 | test1 | 0 of Unlimited | |
    7 | ak123 | 0 of Unlimited | | cv1
    11 | ak1234567 | 0 of Unlimited | | cv1
    14 | ak1234567890 | 0 of Unlimited | | cv1
    6 | ak | 0 of Unlimited | | cv1
    9 | ak12345 | 0 of Unlimited | Library | cv1
    10 | ak123456 | 0 of Unlimited | | cv1
    13 | ak123456789 | 0 of 100 | | cv1
    ---|--------------|----------------|-----------------------|-------------
  1. hammer activation-key list --organization-id=1 --by='contentview'
    ---|--------------|----------------|-----------------------|-------------
    ID | NAME | CONSUMED | LIFECYCLE ENVIRONMENT | CONTENT VIEW
    ---|--------------|----------------|-----------------------|-------------
    8 | ak1234 | 0 of Unlimited | | cv1
    12 | ak12345678 | 0 of Unlimited | | cv1
    5 | actkey | 0 of Unlimited | DEV | cv1
    1 | actkey1 | 1 of Unlimited | DEV | cv1
    4 | test1 | 0 of Unlimited | |
    7 | ak123 | 0 of Unlimited | | cv1
    11 | ak1234567 | 0 of Unlimited | | cv1
    14 | ak1234567890 | 0 of Unlimited | | cv1
    6 | ak | 0 of Unlimited | | cv1
    9 | ak12345 | 0 of Unlimited | Library | cv1
    10 | ak123456 | 0 of Unlimited | | cv1
    13 | ak123456789 | 0 of 100 | | cv1
    ---|--------------|----------------|-----------------------|-------------

Actual results:
Note that the above two results does not change

Expected results:
The --by attribute should sort the results on the given field

Additional info:
I also tried the following commands and the result was same:

#hammer activation-key list --organization-id=1 --by='NAME'
#hammer activation-key list --organization-id=1 --by='CONTENT VIEW'

Actions

Also available in: Atom PDF