Bug 1739737 - One should be taken to page 1 of result page after filtering saved reports
Summary: One should be taken to page 1 of result page after filtering saved reports
Keywords:
Status: POST
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.11.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: GA
: 5.11.z
Assignee: Milan Zázrivec
QA Contact: Nandini Chandra
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-09 22:40 UTC by Nandini Chandra
Modified: 2023-06-30 18:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nandini Chandra 2019-08-09 22:40:03 UTC
Description of problem:
------------------------
The search results are not accurate in multi page saved reports.

For eg: Use the paginator to get to any page other than page 1 of a multi page report. Search for a string and the search doesn't find a match even if there is a matched string on that page.

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


How reproducible:
----------------
Always


Steps to Reproduce:
-------------------
1.Navigate to the Overview -> Reports -> Saved Reports.
2.Select any saved report; Use the paginator to get to any page other than page 1 of a multi page report.
3.Select a filter, for eg: Asset name and enter a string to filter through.


Actual results:
---------------
Search results are not accurate in multi page saved reports. IOW, the search doesn't find a match even if there is a matched string on that page.


Expected results:
----------------
Search results should be accurate in multi page saved reports.


Additional info:
-----------------

Comment 2 Martin Povolny 2019-08-13 09:34:56 UTC
I have problems understanding the report.

> For eg: Use the paginator to get to any page other than page 1 of a multi page report. Search for a string and the search doesn't find a match even if there is a matched string on that page.

Do you mean that if there's a match on 2nd page and you execute search, then the match is not found? This works for me well.

Also the search goes throught the API, see the browser tools network tab. If something is not found is it returned by the API? So you see the results in the browser tools and not on the screen?

Can you, please, provide more concrete steps or video or screenshots?

Comment 3 Martin Povolny 2019-08-13 10:34:30 UTC
I guessed (with help of Martin Hradil), that the problem is that after filtering one is not navigated to page 1 of the results.

A fix for that is here: https://github.com/martinpovolny/manageiq-ui-classic/pull/new/report_filter_page1

Please, confirm that that is the issue that was reported.

Thx!

Comment 4 Martin Povolny 2019-08-13 10:35:52 UTC
correct URL of the PR: https://github.com/ManageIQ/manageiq-ui-classic/pull/6001

Comment 5 Parthvi Vala 2019-08-13 11:19:21 UTC
Hey Martin,

You are correct. The search results are on page 1, and if you are on any page other than that, you won't be able to see the results, until and unless you navigate to page 1. I don't think it's really a bug, but an improvement to this feature would be nice.

Thanks,
Parthvi

Comment 6 CFME Bot 2019-08-13 15:56:54 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/27f7b8e158720b07b26cfe67be9eaaa4c5d0ec6c
commit 27f7b8e158720b07b26cfe67be9eaaa4c5d0ec6c
Author:     Martin Povolny <mpovolny>
AuthorDate: Tue Aug 13 06:32:59 2019 -0400
Commit:     Martin Povolny <mpovolny>
CommitDate: Tue Aug 13 06:32:59 2019 -0400

    Report results: after filterin, go to page 1.

    Related BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1739737

 app/javascript/components/report-data-table.jsx | 7 +-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comment 7 Nandini Chandra 2019-08-15 19:35:21 UTC
(In reply to Martin Povolny from comment #3)
> I guessed (with help of Martin Hradil), that the problem is that after
> filtering one is not navigated to page 1 of the results.
> 
> A fix for that is here:
> https://github.com/martinpovolny/manageiq-ui-classic/pull/new/
> report_filter_page1
> 
> Please, confirm that that is the issue that was reported.
> 
> Thx!

Hi Martin,

Wow, I didn't realize that the search results were actually on two different pages. After, I ran the search, it did take me to page 2 and not page 1.That is the bug I encountered.

The search result listed just seven items. With 100 items/page, I don't understand why there should be a 2 page result when the seven items could be fitted in one page.

Thanks for the fix.


Note You need to log in before you can comment on or make changes to this bug.