Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View Script Logs / Report #1655

Merged
merged 7 commits into from
Oct 28, 2024
Merged

View Script Logs / Report #1655

merged 7 commits into from
Oct 28, 2024

Conversation

jmthomas
Copy link
Member

closes #1549

@jmthomas jmthomas requested a review from ryanmelt October 21, 2024 22:55
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 0% with 26 lines in your changes missing coverage. Please review.

Project coverage is 76.48%. Comparing base (3912e0c) to head (c0fd630).
Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
...-cmd-tlm-api/app/controllers/storage_controller.rb 0.00% 16 Missing ⚠️
...ptrunner/src/tools/ScriptRunner/RunningScripts.vue 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1655      +/-   ##
==========================================
- Coverage   76.52%   76.48%   -0.05%     
==========================================
  Files         618      618              
  Lines       46920    46942      +22     
  Branches      849      850       +1     
==========================================
- Hits        35904    35902       -2     
- Misses      10920    10944      +24     
  Partials       96       96              
Flag Coverage Δ
frontend 55.99% <0.00%> (-0.12%) ⬇️
python 83.91% <ø> (-0.01%) ⬇️
ruby-api 48.69% <0.00%> (-0.14%) ⬇️
ruby-backend 82.52% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

raise "Unknown volume #{params[:volume]}" unless volume
filename = "/#{volume}/#{params[:object_id]}"
filename = sanitize_path(filename)
elsif params[:bucket]
Copy link
Member

Choose a reason for hiding this comment

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

Why no bucket before?

Copy link
Member Author

@jmthomas jmthomas Oct 24, 2024

Choose a reason for hiding this comment

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

We never did a download from a bucket before ... just volumes. We always used the get_download_presigned_request instead because the result was always a file to download. Now we're downloading to memory so we can display.

@jmthomas
Copy link
Member Author

Screenshot 2024-10-24 at 4 04 55 PM

Copy link
Member

@ryanmelt ryanmelt left a comment

Choose a reason for hiding this comment

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

filename at line 125 of storage_controller is not sanitized

Copy link

@ryanmelt ryanmelt merged commit 6be77b6 into main Oct 28, 2024
27 checks passed
@ryanmelt ryanmelt deleted the sr_show_logs branch October 28, 2024 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script Execution Status Download Buttons Should be View Buttons
2 participants