-
Notifications
You must be signed in to change notification settings - Fork 0
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
Deny past future duration filesize #70
Merged
Tooseriuz
merged 7 commits into
develop
from
feature/deny-past-future-duration-filesize
Feb 13, 2024
Merged
Deny past future duration filesize #70
Tooseriuz
merged 7 commits into
develop
from
feature/deny-past-future-duration-filesize
Feb 13, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deny upload with `timestamp` is future Deny upload with `timestamp` is past older than year 1971 Deny upload with `duration` is more than 1 hour Deny upload with `fileSize` is more than 150MB for flac and 200MB for wav
rassokhin-s
suggested changes
Feb 13, 2024
Add minimum value to `duration` and `fileSize` Add test cases for `duration` and `fileSize` is 0 Add happy test cases for `duration` and `fileSize`
rassokhin-s
approved these changes
Feb 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✅ DoD
POST /uploads
receivesduration
andfile_size
to prevent a very long audio file #69 Add duration and file_size parameters into upload endpoint #71(use n/a when API docs (Release notes, etc) do not need to be updated)
📝 Summary
duration
,fileSize
as Optional because this gonna be released before Uploader releaseduration
,fileSize
toGET /uploads
params.timestamp
is futuretimestamp
is past older than year 1971duration
is more than 1 hourfileSize
is more than 150MB for flac and 200MB for wav