Project

General

Profile

Feature #26641

Ability to set the file extension for generated reports

Added by Marek Hulán over 1 year ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Reporting
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1701062

Description of problem:
When generating reports in Satellite 6.5 web interface, the generated reports have a ".txt" file extension. It would be nice if the user could specify what file extension the report should be created with (for example, ".csv", or ".html") so that the web browser could open the report in the appropriate application.

Version-Release number of selected component (if applicable): Satellite 6.5 Beta

Steps to Reproduce:
1. Generate report from Satellite 6.5 web interface

Actual results:
Generated file has .txt extension

Expected results:
Ability to specify the file extension on a per-report basis, so that ".csv", ".html", etc. could be specified for the file extension.


Related issues

Related to Foreman - Feature #25732: Generated report file has MIME type text/plainClosed

Associated revisions

Revision e278f236 (diff)
Added by Marek Hulán about 1 year ago

Fixes #25732, #26641 - report mimetypes and format (#6875)

Detect whether a template supports selection of format by using
report_render macro. If it does, allow a user to chose one of the
supported format. If not use plain text.

History

#1 Updated by Marek Hulán over 1 year ago

  • Subject changed from - Ability to set the file extension for generated Satellite 6.5 reports to - Ability to set the file extension for generated Satellite 6.5 reports

This will most likely be fixed with https://projects.theforeman.org/issues/25732, I think we should be able to select what formats are available for a given report template if more than one is assigned, during rendering, user should be able to choose one of them. That should also set the correct mime/type and file suffix.

#2 Updated by Marek Hulán over 1 year ago

  • Related to Feature #25732: Generated report file has MIME type text/plain added

#3 Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases 1.24.0 added

#4 Updated by Marek Hulán about 1 year ago

  • Status changed from New to Closed

#5 Updated by Tomer Brisker 12 months ago

  • Subject changed from - Ability to set the file extension for generated Satellite 6.5 reports to - Ability to set the file extension for generated reports

#6 Updated by Tomer Brisker 12 months ago

  • Subject changed from - Ability to set the file extension for generated reports to Ability to set the file extension for generated reports

#7 Updated by Tomer Brisker 8 months ago

  • Category changed from Statistics to Reporting

Also available in: Atom PDF