]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - client/src/app/+videos/+video-edit/video-update.resolver.ts
store uploaded video filename (#4885)
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>
Tue, 21 Jun 2022 13:31:25 +0000 (15:31 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2022 13:31:25 +0000 (15:31 +0200)
commit2e401e8575decb1d491d0db48ca1ab1eba5b2a66
treeeee1e6213ca4d635837ca01c2bdc5c876b8d8b7d
parentdec49521556fc228c6e05b6199e9b07f619b38fb
store uploaded video filename (#4885)

* store uploaded video filename

closes #4731

* dont crash if videos channel exist

* migration: use raw query

* video source: fixes after code review

* cleanup

* bump migration

* updates after code review

* refactor: use checkUserCanManageVideo

* videoSource: add openapi doc

* test(check-params/video-source): fix timeout

* Styling

* Correctly set original filename as source

Co-authored-by: Chocobozzz <me@florianbigard.com>
25 files changed:
client/src/app/+videos/+video-edit/shared/video-edit.component.html
client/src/app/+videos/+video-edit/shared/video-edit.component.ts
client/src/app/+videos/+video-edit/video-update.component.html
client/src/app/+videos/+video-edit/video-update.component.ts
client/src/app/+videos/+video-edit/video-update.resolver.ts
client/src/app/shared/shared-main/video/video.service.ts
server/controllers/api/videos/index.ts
server/controllers/api/videos/upload.ts
server/initializers/constants.ts
server/initializers/database.ts
server/initializers/migrations/0715-video-source.ts [new file with mode: 0644]
server/middlewares/validators/videos/index.ts
server/middlewares/validators/videos/video-source.ts [new file with mode: 0644]
server/middlewares/validators/videos/videos.ts
server/models/video/video-source.ts [new file with mode: 0644]
server/models/video/video.ts
server/tests/api/check-params/index.ts
server/tests/api/check-params/video-source.ts [new file with mode: 0644]
server/tests/api/videos/index.ts
server/tests/api/videos/video-source.ts [new file with mode: 0644]
server/types/express.d.ts
server/types/models/video/video-source.ts [new file with mode: 0644]
shared/models/videos/video-source.ts [new file with mode: 0644]
shared/server-commands/videos/videos-command.ts
support/doc/api/openapi.yaml