Bug 36555

Summary: Add report_id to file name when exporting report results
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: ReportsAssignee: Andrew Fuerste-Henry <andrew>
Status: RESOLVED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: amandav, aude.charillon, barbara.johnson, fridolin.somers
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
This patch adds the unique report id to the file name when downloading report results. Previously, the file name contained only the name of the report and could be unclear.
Version(s) released in:
24.05.00
Circulation function:
Attachments: Bug 36555: Add report_id to download file name
Bug 36555: Add report_id to download file name
Bug 36555: Add report_id to download file name
Bug 36555: (QA follow-up) Tidy

Description Andrew Fuerste-Henry 2024-04-09 14:24:55 UTC
If one were in the habit of creating reports with fairly generic names, one might download a bunch of report results and then have trouble remembering what's what. This very relatable and not at all foolish situation could be helped by including the report ID in the file name, making it easier to find the query that produced the downloaded file.
Comment 1 Andrew Fuerste-Henry 2024-04-09 14:53:05 UTC
Created attachment 164564 [details] [review]
Bug 36555: Add report_id to download file name

To test:
- apply patch, restart all
- run a report
- export results
- confirm file name is the report ID, followed by report name
Comment 2 ByWater Sandboxes 2024-04-09 16:27:52 UTC
Created attachment 164565 [details] [review]
Bug 36555: Add report_id to download file name

To test:
- apply patch, restart all
- run a report
- export results
- confirm file name is the report ID, followed by report name

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Comment 3 Nick Clemens (kidclamp) 2024-05-01 10:34:26 UTC
Created attachment 165954 [details] [review]
Bug 36555: Add report_id to download file name

To test:
- apply patch, restart all
- run a report
- export results
- confirm file name is the report ID, followed by report name

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 4 Nick Clemens (kidclamp) 2024-05-01 10:34:28 UTC
Created attachment 165955 [details] [review]
Bug 36555: (QA follow-up) Tidy

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 5 Katrin Fischer 2024-05-02 11:20:03 UTC
Pushed for 24.05!

Well done everyone, thank you!
Comment 6 Fridolin Somers 2024-05-24 12:47:58 UTC
Not backported to 23.11.x
I prefer not change this automatic behavior on a stable version
Comment 7 Aude Charillon 2025-01-17 15:14:30 UTC
No need for update to Koha Manual.

Moved the text in the "Documentation submission" field to "Text to go in the release notes". It's too late for the release notes, but it makes it easier to read!