Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

[WIP] Add payload download action to the UI worker. #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martinpovolny
Copy link
Contributor

Add payload download action to the UI worker.

@martinpovolny martinpovolny changed the title Add payload download action to the UI worker. [WIP] Add payload download action to the UI worker. Jan 21, 2020
@miq-bot miq-bot added the wip label Jan 21, 2020
@miq-bot
Copy link

miq-bot commented Jan 21, 2020

Checked commit martinpovolny@1e8867d with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 1 offense detected

**

  • 💣 💥 🔥 🚒 - Linter/Rubocop - missing config files

task = MiqTask.find(task_id)
path = task&.context_data&.payload_path
if path && File.exist?(path)
send_file(path, :type => 'application/binary', :filename => 'analytics_payload.bin')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to parse out the filename as it is on disk and retain it instead of using analytics_payload.bin?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants