Bug #6234

sorting compute resources and subnets tables by different keys produces ISE

Added by Dominic Cleal over 3 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Stephen Benjamin
Category:Search
Target version:Sprint 25
Difficulty: Bugzilla link:1109740
Found in release: Pull request:
Story points-
Velocity based estimate-
Release1.5.2Release relationshipAuto

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1109740
Description of problem:
Sorting different tables by different keys produces ISE

Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140612.1

How reproducible:
always

Steps to Reproduce:
1. Go to Compute Resources page:
Infrastructure -> Compute Resources
2. Attempt to sort by "Type" (click on "Type" in table heading)

OR:

1. Go to Subnets page:
Infrastructure -> Subnets
2. Attempt to sort by "Domain" (click on "Domain" in table heading)

Actual results:
Error appears

Expected results:
Should be sorted by given column

Additional info:
Sorting compute resources by Type:

Processing by ComputeResourcesController#index as HTML
Parameters: {"order"=>"type ASC"}
Operation FAILED: the field 'type' in the order statement is not valid field for search
Rendered common/500.html.erb within layouts/application (4.4ms)
Rendered layouts/base.html.erb (1.1ms)
Completed 500 Internal Server Error in 22ms (Views: 7.1ms | ActiveRecord: 0.0ms)

Sorting subnets by Domain:

Processing by SubnetsController#index as HTML
Parameters: {"order"=>"domains ASC"}
Operation FAILED: the field 'domains' in the order statement is not valid field for search
Rendered common/500.html.erb within layouts/application (7.1ms)
Rendered layouts/base.html.erb (1.5ms)
Completed 500 Internal Server Error in 28ms (Views: 11.1ms | ActiveRecord: 0.0ms)

Associated revisions

Revision 5dd996fd
Added by Stephen Benjamin over 3 years ago

fixes #6234 - fixes sorting on compute resources and subnets

History

#1 Updated by Dominic Cleal over 3 years ago

  • Category set to Search

#2 Updated by Dominic Cleal over 3 years ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Stephen Benjamin
  • Target version set to Sprint 25

#3 Updated by Dominic Cleal over 3 years ago

  • Release set to 1.5.2

#4 Updated by Stephen Benjamin over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF