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

TechDebt: Centralize Virus Scan #1365

Merged
merged 5 commits into from
Sep 16, 2024
Merged

TechDebt: Centralize Virus Scan #1365

merged 5 commits into from
Sep 16, 2024

Conversation

NickPhura
Copy link
Collaborator

@NickPhura NickPhura commented Sep 11, 2024

Links to Jira Tickets

n/a

Description of Changes

Move the virus scan step into the app.ts file, so that it doesn't need to be included in every endpoint that handles file uploads.

Testing Notes

Uploading/Downloading files works as before.

Can use this string (paste into a random txt file) to trigger our APIs file upload virus scans: https://en.wikipedia.org/wiki/EICAR_test_file

I've tested a few places we upload files, and they work as expected. Every file upload goes through the same field and should be handled by the same multer middleware anyways, so if one works they should all work.

@NickPhura NickPhura requested a review from MacQSL September 11, 2024 19:39
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 42.85714% with 8 lines in your changes missing coverage. Please review.

Project coverage is 48.28%. Comparing base (edb69b0) to head (f1ddf60).
Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
api/src/app.ts 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1365      +/-   ##
==========================================
- Coverage   48.34%   48.28%   -0.06%     
==========================================
  Files         763      763              
  Lines       20498    20465      -33     
  Branches     3134     3124      -10     
==========================================
- Hits         9909     9882      -27     
+ Misses      10437    10431       -6     
  Partials      152      152              

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

@NickPhura NickPhura added the Ready For Review PR is ready for review label Sep 11, 2024
@NickPhura
Copy link
Collaborator Author

@mauberti-bc I know we talked about patching the error handling as part of this PR, but on second thought there is no real overlap, so in the interest of small PRs we may as well merge this when its ready. I can just open a separate PR for the frontend changes.

Copy link
Collaborator

@mauberti-bc mauberti-bc left a comment

Choose a reason for hiding this comment

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

👍

Copy link

Copy link
Collaborator

@MacQSL MacQSL left a comment

Choose a reason for hiding this comment

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

🫎

@NickPhura NickPhura merged commit 556ba8d into dev Sep 16, 2024
20 of 22 checks passed
@NickPhura NickPhura deleted the npTechDebt-7 branch September 16, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants