theforeman / puppet-foreman

Puppet module for Foreman
GNU General Public License v3.0
104 stars 269 forks source link

Clicking host hyperlink for puppetclass (under Puppet ENC -> Classes) returns "Field 'class' not recognized for searching!" #1167

Open dotdotslashdotdot opened 3 months ago

dotdotslashdotdot commented 3 months ago

Might be related to closed issue outlined here: https://github.com/theforeman/foreman_puppet/issues/363

We recently upgraded to Foreman version 3.9.1 and we are able to run searches with the "puppetclass" search string versus the old "class" string from version 3.2 (https://github.com/theforeman/foreman_puppet/pull/364).

However, when attempting to use the "Hosts" filtering hyperlink under "Puppet ENC -> Classes", an error is thrown stating: "Field 'class' not recognized for searching!" and is not filtering a list of hosts based on that puppet class.

Steps to recreate:

1.) Navigate to Configure -> Puppet ENC -> Classes 2024-06-04 20_41_13-Puppet Classes - Brave

2.) Search for a puppet class in the listing that is attached to one or more hosts

3.) Click on the numerical number hyperlink for the "Hosts" column 2024-06-04 20_45_31-Puppet Classes - Brave

4.) Error should display after pages refreshes 2024-06-04 20_48_00-Hosts - Brave