Bug 1599313
Summary: | Sort order different between Subscriptions and Add Subscriptions page | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Corey Welton <cwelton> | ||||
Component: | Subscription Management | Assignee: | satellite6-bugs <satellite6-bugs> | ||||
Status: | CLOSED ERRATA | QA Contact: | Cole Higgins <chiggins> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.4 | CC: | cwelton, jturel, pcreech | ||||
Target Milestone: | 6.7.0 | Keywords: | Triaged, UserExperience | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-04-14 13:23:24 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 1600588 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Corey Welton
2018-07-09 13:29:35 UTC
Created redmine issue https://projects.theforeman.org/issues/24308 from this bug Neither the subscriptions nor upstream subscriptions API will allow the requested sorting. When attempting to sort by name on the upstream subscriptions API: 13:41:11 rails.1 | 2018-08-08T13:41:11 [E|app|00b13] exception when talking to a remote client: 500 Internal Server Error RestClient::InternalServerError: 500 Internal Server Error 13:41:11 rails.1 | | Body: {"displayMessage":"Runtime Error could not resolve property: name of: org.candlepin.model.Pool at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException:62","requestUuid":"c4c5504f-254c-4116-8c7b-ef9a8e3d8cc0"} When attempting to sort by contract_number on the subscriptions API: {"displayMessage":"undefined method `to_sym' for nil:NilClass\nDid you mean? to_m","errors":["undefined method `to_sym' for nil:NilClass\nDid you mean? to_m"]} Hey Corey, We're tracking this issue upstream and when Christine was last looking into it she found we need support from (hosted) Candlepin in order to do the sorting for 'Add Subscriptions' properly: https://bugzilla.redhat.com/show_bug.cgi?id=1600588 The above RFE tracks that effort. We could work around that, but we would be sorting on the server side and not relying on the database - and so there could be performance impacts. Probably not much since we are using pretty small pages (default 20) from the API, but worth mentioning. I'm inclined to wait until we have official Candlepin support before making any changes since this is not critical. What do you think? The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you. Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24308 has been resolved. Bug verified in 6.7 snap 2. Both the subscriptions page and add subscriptions page are sorted by subscription name, not contract number. Created attachment 1638224 [details]
Verification screenshot
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:1454 |