Bug 1793416

Summary: Searching for task requires clicking Search twice to get correct results
Product: Red Hat Satellite Reporter: Stephen Wadeley <swadeley>
Component: Tasks PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: aruzicka, jjeffers, kagarwal, ltran, pcreech
Target Milestone: 6.7.4Keywords: Regression, Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman-tasks-0.17.5.8-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-30 13:12:09 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:

Description Stephen Wadeley 2020-01-21 10:21:20 UTC
Description of problem:

When searching for a task you have to click the Search button twice to get the correct results


Version-Release number of selected component (if applicable):
Sat6.7 Snap 9
testing on Snap 9, I have:

tfm-rubygem-foreman-tasks-0.17.5.1-1.el7sat.noarch
tfm-rubygem-foreman-tasks-core-0.3.3-1.el7sat.noarch

How reproducible:
90%


Steps to Reproduce:
1. Navigate to Monitor >> Tasks
2. Enter: resource_type = Katello::Repository
3. Click Search button

Actual results:

some tasks are displayed, no error, but click Search again and the list changes

sometimes its seems not to search and you will see "No Tasks"

Expected results:

It should search reliably first time

Additional info:

Edit the search by adding a ! before = and click Search again, remove the ! and click Search again. I see No Tasks
That test works OK on Sat6.6.1

Comment 3 Adam Ruzicka 2020-01-28 11:25:30 UTC
The upstream bug was fixed, moving the POST

Comment 5 Adam Ruzicka 2020-04-23 08:51:13 UTC
*** Bug 1802589 has been marked as a duplicate of this bug. ***

Comment 9 Tasos Papaioannou 2020-09-15 17:20:24 UTC
Verified on 6.7.4 snap 1.0.

# rpm -qa |grep foreman-tasks
tfm-rubygem-foreman-tasks-core-0.3.3-1.el7sat.noarch
tfm-rubygem-foreman-tasks-0.17.5.7-1.el7sat.noarch

1.) Navigate to Monitor > Tasks
2.) Enter 'state = stopped' or 'state = scheduled' in the filter field and click Enter or Search.
3.) The tasks are correctly filtered.

On 6.7.3 snap 1.0, on the other hand, the tasks are not filtered until I click Enter or Search a second time.

Comment 14 errata-xmlrpc 2020-09-30 13:12:09 UTC
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 (Important: Satellite 6.7.4 Async Bug Fix Update), 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:4127