Project

General

Profile

Bug #34989

[BUG] The != and ~ search params does not work with os_minor parameter in Satellite 6.9

Added by Adam Ruzicka 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1964080

Description of problem:

Please see the reproducer steps.

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

Satellite 6.9

How reproducible:

Always

Steps to Reproduce:
1. Hosts --> Content Hosts
2. Search by : os_minor != 4
3. Search by : os_minor ~ 4

Actual results:

At 2 i.e. os_minor != 4
~
external method 'search_by_os_minor' failed with error: undefined method `<>' for 9:Integer Did you mean? <
~

At 3 i.e. os_minor ~ 4
~
external method 'search_by_os_minor' failed with error: undefined method `ILIKE' for 9:Integer
~

Expected results:

Provide valid search results.

Additional info:

  • No issue in Satellite 6.8 but only in Satellite 6.9.
  • Don't see any changes in /usr/share/foreman/app/models/concerns/hostext/search.rb for search_by_os_minor function in both Satellite 6.8 and 6.9. So that means something else have got changed in Satellite 6.9

Associated revisions

Revision d767911c (diff)
Added by Adam Ruzicka 10 months ago

Support != and ~ search on os_minor and ~ on os_major (#9243)

  • Fixes #34989 - Support != and ~ search on os_minor
  • Refs #34989 - Support ~ search on os_major

History

#1 Updated by The Foreman Bot 10 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9243 added

#2 Updated by The Foreman Bot 10 months ago

  • Fixed in Releases 3.4.0 added

#3 Updated by Adam Ruzicka 10 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF