Closing the results list from a 'Run report' query clears entered parameters
Description
CSP Request Details
CSP Rejection Details
Potential Workaround
Attachments
defines
Checklist
hideTestRail: Results
Activity

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.
Details
Details
Assignee

Reporter

Tester Assignee

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:
Log into folio-snapshot.
Connect to a GitHub repository of SQL queries formatted for use with the templated queries functionality.
For my testing, I connected to the GitHub user metadb-project with repository metadb-examples.
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.
Click 'Submit'.
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.