-
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
mp4以外の動画形式も許容する #1083
mp4以外の動画形式も許容する #1083
Conversation
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.
Copilot reviewed 7 out of 14 changed files in this pull request and generated no comments.
Files not reviewed (7)
- docs/openapi/v2.yaml: Language not supported
- src/repository/gorm2/v2_game_video_test.go: Evaluated as low risk
- src/service/v2/game_video.go: Evaluated as low risk
- src/service/v2/game_video_test.go: Evaluated as low risk
- src/domain/values/game_video.go: Evaluated as low risk
- src/repository/gorm2/migrate/current.go: Evaluated as low risk
- src/repository/gorm2/migrate/migrate.go: Evaluated as low risk
Comments suppressed due to low confidence (2)
src/handler/v2/game_video.go:38
- [nitpick] The error message 'invalid video type' could be more specific, e.g., 'unsupported video type: %s'.
return "", errors.New("invalid video type")
src/repository/gorm2/v2_game_video.go:29
- [nitpick] The error message 'invalid video type: %s' could be more informative. Suggest changing it to 'convertGameVideoType: invalid video type encountered: %s'.
return 0, fmt.Errorf("invalid video type: %s", migrateGameVideoType)
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1083 +/- ##
==========================================
+ Coverage 49.85% 50.01% +0.16%
==========================================
Files 121 122 +1
Lines 10986 11026 +40
==========================================
+ Hits 5477 5515 +38
- Misses 5171 5174 +3
+ Partials 338 337 -1 ☔ View full report in Codecov by Sentry. |
This pull request includes changes to add support for new video types (
m4v
andmkv
) across the API and corresponding handler functions. The changes include updates to the OpenAPI specification, domain values, handler functions, and tests.OpenAPI Specification Updates:
video/m4v
andvideo/mkv
to the list of supported MIME types in the OpenAPI specification (docs/openapi/v2.yaml
).Domain Values Updates:
GameVideoTypeM4v
andGameVideoTypeMkv
constants to theGameVideoType
enumeration (src/domain/values/game_video.go
).Handler Function Updates:
convertVideoType
function to handle conversion ofGameVideoType
toGameVideoMime
and updated handler functions to use this new function (src/handler/v2/game_video.go
). [1] [2] [3] [4]Test Updates:
m4v
andmkv
) and updated existing test cases to reflect these changes (src/handler/v2/game_video_test.go
). [1] [2] [3] [4] [5] [6]Generated Code Updates:
src/handler/v2/openapi/openapi.gen.go
).fix: #668
m4vとmkvを許容した。