-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 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 <[email protected]>
- Loading branch information
Showing
1 changed file
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters