You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🐛 Set filenames for task details downloads (#2031)
Resolves: #2030
On the Analysis details / Task details page, the log viewer allows
downloading of the file being displayed. Set a filename that matches the
attachment name when doing the download.
File names used:
- Base log view -> "log-${taskId}"
- Merged log view -> "log-merged-${taskId}"
- Task attachment -> attachment name
Due to the way the `CodeEditor` PF5 component implements the download
action, only file extensions of known file types can be used. Any log or
attachment files will have file extensions of `.yaml` or `.json` or
`.txt` depending on the detected file type. File type detection is only
using attachment name file extensions currently, and only differentiates
between yaml and json with a default to plain text. For example, given
an attachment name, the download file name will be:
- `git.output` -> `git.output.txt`
- `addon.log` -> `addon.log.txt`
- `settings.yaml` -> `settings.yaml`
- `data.json` -> `data.json`
Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
0 commit comments