Skip to content

Fix upload size validation leaking versioned limit onto media files#304

Open
harminius wants to merge 1 commit into
masterfrom
fix-upload-size-validation
Open

Fix upload size validation leaking versioned limit onto media files#304
harminius wants to merge 1 commit into
masterfrom
fix-upload-size-validation

Conversation

@harminius

Copy link
Copy Markdown
Contributor

Fixes: #303

The versioned-size check was not gated on is_versioned_file, so media files (which never have a diff) were also capped at the smaller versioned limit.

The versioned-size check was not gated on is_versioned_file, so media files (which never have a diff) were also capped at the smaller versioned limit. Branch on file type, and test both limits together.
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 27551939375

Coverage decreased (-0.9%) to 82.436%

Details

  • Coverage decreased (-0.9%) from the base build.
  • Patch coverage: 19 of 19 lines across 2 files are fully covered (100%).
  • 226 coverage regressions across 4 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

226 previously-covered lines in 4 files lost coverage.

File Lines Losing Coverage Coverage
mergin/client.py 78 87.94%
mergin/client_pull.py 75 84.24%
mergin/test/test_client.py 40 97.87%
mergin/merginproject.py 33 91.14%

Coverage Stats

Coverage Status
Relevant Lines: 5181
Covered Lines: 4271
Line Coverage: 82.44%
Coverage Strength: 0.82 hits per line

💛 - Coveralls

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.

Storage limit for media files

2 participants