-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add Size column to attachment #3734
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
Conversation
Migrate attachments by calculating file sizes Signed-off-by: Jonas Franz <[email protected]>
Signed-off-by: Jonas Franz <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #3734 +/- ##
=========================================
+ Coverage 22.9% 22.9% +<.01%
=========================================
Files 124 124
Lines 24755 24747 -8
=========================================
Hits 5669 5669
+ Misses 18223 18215 -8
Partials 863 863
Continue to review full report at Codecov.
|
I dont't know if I should break on error while calculating file sizes or only log them. |
I think it should just log it and continue |
Signed-off-by: Jonas Franz <[email protected]>
@lafriks done |
LGTM |
LGTM |
This PR adds a size column to attachments to decrease the amount of unnecessary disk usage.
The migration calculates the file size of each existing attachment.