Closing the results list from a 'Run report' query clears entered parameters

Description

Overview:  After closing a search results list, the query used to determine that list should still be visible.  Instead, any previously entered data points are cleared.

Steps to Reproduce:

  1. Log into folio-snapshot.

  2. Connect to a GitHub repository of SQL queries formatted for use with the templated queries functionality.

    1. For my testing, I connected to the GitHub user metadb-project with repository metadb-examples.

  3. Choose a report and enter data to filter the search.  For my example, I chose 'Count loans' and entered an 'Earliest loan date to return' of 01/01/2023.

  4. Click 'Submit'.

  5. After the results appear, click the 'X' to close the results list.

Expected Results:  The query is presented with the parameters previously entered still showing.

Actual Results:  The query is presented in its default form.  No parameters entered in the previous run are maintained.  

 

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

6

Checklist

hide

TestRail: Results

Activity

Show:

Charlotte Whitt August 21, 2024 at 1:55 PM

Manual test in FOLIO Snapshot, version @folio/ldp 2.1.100000542, using Chrome.

In Settings > Reporting I added the GitHub repro

And all works beautiful. Thanks - I’ll close the ticket as done

 

 

Mike Taylor August 14, 2024 at 8:53 AM

Done, and merged to master. Should be on snapshot ready to QA tomorrow.

Mike Taylor August 13, 2024 at 3:21 PM

So the problem was that my <TemplatedQuery> component was displaying the results if there are any, and falling back to displaying the query form if not. The outcome seems to be that the form is created from scratch each time it’s used. Instead, I now have the form component itself display the results if there are any, so that the form remains in scope when results of displayed.

That fixes the problem, but I’m not ready to commit/push/merge yet because for some reason this causes a rendering bug where the Developer Info gets superimposed on top of the results sigh.

Mike Taylor August 13, 2024 at 11:31 AM

PROGRESS AT LAST!

Mike Taylor August 9, 2024 at 4:04 PM

Nope, dead end.

Done

Details

Assignee

Reporter

Tester Assignee

Labels

Priority

Sprint

Development Team

Thor

Fix versions

Release

Ramsons (R2 2024)

RCA Group

Implementation coding issue

Affected releases

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created January 18, 2024 at 4:13 PM
Updated September 17, 2024 at 12:34 PM
Resolved August 21, 2024 at 1:56 PM
TestRail: Cases
TestRail: Runs