Project

General

Profile

Actions

Bug #12765

closed

Inconsistent rule ordering in the UI

Added by Lukas Zapletal almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Discovery plugin
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

We order rules by priority (ascending):

https://github.com/theforeman/foreman_discovery/blob/develop/app/controllers/concerns/foreman/controller/discovered_extensions.rb#L5-L33

but in the UI page we list them in descending order. This can be confusing. We should correct our docs and be more explicit too.


Related issues 1 (0 open1 closed)

Related to Discovery - Bug #13217: Discovery Rules order by name, not priorityClosedLukas Zapletal01/14/2016Actions
Actions #1

Updated by Lukas Zapletal over 8 years ago

  • Related to Bug #13217: Discovery Rules order by name, not priority added
Actions #2

Updated by Lukas Zapletal over 8 years ago

The description is incorrect. We DO sort them in ascending order in the UI, that's correct behavior.

But we should also sort by created_at for those with same priority. I currently don't know how to implement this with Scoped Search as it only accepts one sort column: resource_base.search_for(params[:search], :order => (params[:order] || 'priority ASC'))

Actions #3

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Lukas Zapletal
  • Pull request https://github.com/theforeman/foreman_discovery/pull/255 added
Actions #4

Updated by Anonymous over 8 years ago

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

Also available in: Atom PDF