Commit Graph

7938 Commits

Author SHA1 Message Date
Rigel Kent ac2a5b5427
factorized upload and import post fields in openapi spec
closes #4075
2021-05-11 10:07:43 +02:00
Chocobozzz 462212107a
Bumped to version v3.2.0-rc.1 2021-05-11 09:05:52 +02:00
Chocobozzz ea86876133
Fix changelog indentation 2021-05-11 09:02:59 +02:00
Chocobozzz b62ce47c61
Update changelog 2021-05-11 08:57:55 +02:00
Chocobozzz d795b76c44
Fix nginx config 2021-05-11 08:42:13 +02:00
Chocobozzz 71fb8b5a34
Fix paused upload message 2021-05-11 08:42:13 +02:00
Rigel Kent 2c4876f215
added descriptions for video files/import fields in openapi spec 2021-05-11 01:50:42 +02:00
Rigel Kent de3876b815
explicit error formatting variant in openapi spec 2021-05-11 01:50:42 +02:00
Rigel Kent b8375da931
provide more schema examples in openapi spec 2021-05-11 01:50:42 +02:00
Chocobozzz bb8f371d37
Add monitoring dev doc 2021-05-10 19:02:25 +02:00
Chocobozzz d61515e12a
Add doc to unpublish a plugin 2021-05-10 18:35:38 +02:00
Chocobozzz 38ce2aa7a8
Increase tests timeout 2021-05-10 17:06:53 +02:00
Chocobozzz f67d1dca1a
Fix handle downs test 2021-05-10 16:28:26 +02:00
Chocobozzz 2f7c441917
Update contributors list 2021-05-10 15:57:28 +02:00
Chocobozzz 12fa2a6a9a
Update translations 2021-05-10 15:53:35 +02:00
Chocobozzz ad35265d74
Merge remote-tracking branch 'weblate/develop' into develop 2021-05-10 15:50:59 +02:00
Vodoyo Kamal 6b72746c65 Translated using Weblate (Bengali)
Currently translated at 5.5% (100 of 1806 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/bn/
2021-05-10 15:50:54 +02:00
Slimane Selyan AMIRI 278cae737c Translated using Weblate (Kabyle)
Currently translated at 100.0% (103 of 103 strings)

Translation: PeerTube/player
Translate-URL: https://weblate.framasoft.org/projects/peertube/player/kab/
2021-05-10 15:50:53 +02:00
Slimane Selyan AMIRI 598d408c00 Translated using Weblate (Kabyle)
Currently translated at 98.9% (1826 of 1846 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/kab/
2021-05-10 15:50:53 +02:00
Slimane Selyan AMIRI 817410924a Translated using Weblate (Kabyle)
Currently translated at 100.0% (246 of 246 strings)

Translation: PeerTube/server
Translate-URL: https://weblate.framasoft.org/projects/peertube/server/kab/
2021-05-10 15:50:53 +02:00
Jeff Huang 83960c39bc Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (1846 of 1846 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/zh_Hant/
2021-05-10 15:50:53 +02:00
Duy e8236826b7 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (1846 of 1846 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/vi/
2021-05-10 15:50:52 +02:00
Filip Bengtsson d31114ea38 Translated using Weblate (Swedish)
Currently translated at 99.7% (1842 of 1846 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/sv/
2021-05-10 15:50:52 +02:00
Jan Prunk 2ee38b3825 Translated using Weblate (Slovenian)
Currently translated at 3.9% (73 of 1846 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/sl/
2021-05-10 15:50:51 +02:00
Александр 247181f7a0 Translated using Weblate (Russian)
Currently translated at 98.5% (1820 of 1846 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/ru/
2021-05-10 15:50:51 +02:00
Balázs Meskó 3c097b5c18 Translated using Weblate (Hungarian)
Currently translated at 80.0% (1477 of 1846 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/hu/
2021-05-10 15:50:51 +02:00
josé m c5742bcaf9 Translated using Weblate (Galician)
Currently translated at 100.0% (1846 of 1846 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/gl/
2021-05-10 15:50:50 +02:00
Berto Te 38a564559a Translated using Weblate (Spanish)
Currently translated at 100.0% (1846 of 1846 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/es/
2021-05-10 15:50:50 +02:00
Laurent Ettouati 55c6111e35 Translated using Weblate (French (France) (fr_FR))
Currently translated at 99.6% (1839 of 1846 strings)

Translation: PeerTube/angular
Translate-URL: https://weblate.framasoft.org/projects/peertube/angular/fr_FR/
2021-05-10 15:50:50 +02:00
Chocobozzz 1fa23d6f5e
Fix video update 2021-05-10 15:48:10 +02:00
Chocobozzz ff0497fee8
Fix button icon in admin plugins 2021-05-10 15:31:18 +02:00
Chocobozzz f2b5aa590e
Update nginx config for resumable upload 2021-05-10 15:27:29 +02:00
Chocobozzz 6661537764
Fix miniature overflow 2021-05-10 15:17:06 +02:00
Rigel Kent 045bcd0d18
refactor subscriptions response from list to totalDataList in openapi spec
closes #4067
2021-05-10 14:43:44 +02:00
Rigel Kent 985ece5755
refactor abuses response list to totalDataList in openapi spec
closes #4066
2021-05-10 14:26:21 +02:00
Rigel Kent 40cfb36b9d
specify operationId in openapi spec and factorize videoconstant ids 2021-05-10 14:17:35 +02:00
Chocobozzz 3ec535f72b
Fix E2E tests 2021-05-10 13:58:09 +02:00
Chocobozzz 649e812947
Optimize videos feed endpoint 2021-05-10 13:56:16 +02:00
Rigel Kent fd5586b337
specify getUserId variant in openapi spec
closes #4062
2021-05-10 12:01:49 +02:00
Rigel Kent 6bd7f09781
secify username patterns for user create/register in openapi spec
closes #4061
2021-05-10 11:27:35 +02:00
Rigel Kent 5844dde3b8
fix imports list response in openapi spec
closes #4063
2021-05-10 11:27:35 +02:00
Rigel Kent 30b40713f4
fix response in openapi spec for quota and video ratings
closes #4064
closes #4065
2021-05-10 11:27:35 +02:00
kontrollanten f6d6e7f861
Resumable video uploads (#3933)
* WIP: resumable video uploads

relates to #324

* fix review comments

* video upload: error handling

* fix audio upload

* fixes after self review

* Update server/controllers/api/videos/index.ts

Co-authored-by: Rigel Kent <par@rigelk.eu>

* Update server/middlewares/validators/videos/videos.ts

Co-authored-by: Rigel Kent <par@rigelk.eu>

* Update server/controllers/api/videos/index.ts

Co-authored-by: Rigel Kent <par@rigelk.eu>

* update after code review

* refactor upload route

- restore multipart upload route
- move resumable to dedicated upload-resumable route
- move checks to middleware
- do not leak internal fs structure in response

* fix yarn.lock upon rebase

* factorize addVideo for reuse in both endpoints

* add resumable upload API to openapi spec

* add initial test and test helper for resumable upload

* typings for videoAddResumable middleware

* avoid including aws and google packages via node-uploadx, by only including uploadx/core

* rename ex-isAudioBg to more explicit name mentioning it is a preview file for audio

* add video-upload-tmp-folder-cleaner job

* stronger typing of video upload middleware

* reduce dependency to @uploadx/core

* add audio upload test

* refactor resumable uploads cleanup from job to scheduler

* refactor resumable uploads scheduler to compare to last execution time

* make resumable upload validator to always cleanup on failure

* move legacy upload request building outside of uploadVideo test helper

* filter upload-resumable middlewares down to POST, PUT, DELETE

also begin to type metadata

* merge add duration functions

* stronger typings and documentation for uploadx behaviour, move init validator up

* refactor(client/video-edit): options > uploadxOptions

* refactor(client/video-edit): remove obsolete else

* scheduler/remove-dangling-resum: rename tag

* refactor(server/video): add UploadVideoFiles type

* refactor(mw/validators): restructure eslint disable

* refactor(mw/validators/videos): rename import

* refactor(client/vid-upload): rename html elem id

* refactor(sched/remove-dangl): move fn to method

* refactor(mw/async): add method typing

* refactor(mw/vali/video): double quote > single

* refactor(server/upload-resum): express use > all

* proper http methud enum server/middlewares/async.ts

* properly type http methods

* factorize common video upload validation steps

* add check for maximum partially uploaded file size

* fix audioBg use

* fix extname(filename) in addVideo

* document parameters for uploadx's resumable protocol

* clear META files in scheduler

* last audio refactor before cramming preview in the initial POST form data

* refactor as mulitpart/form-data initial post request

this allows preview/thumbnail uploads alongside the initial request,
and cleans up the upload form

* Add more tests for resumable uploads

* Refactor remove dangling resumable uploads

* Prepare changelog

* Add more resumable upload tests

* Remove user quota check for resumable uploads

* Fix upload error handler

* Update nginx template for upload-resumable

* Cleanup comment

* Remove unused express methods

* Prefer to use got instead of raw http

* Don't retry on error 500

Co-authored-by: Rigel Kent <par@rigelk.eu>
Co-authored-by: Rigel Kent <sendmemail@rigelk.eu>
Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-05-10 11:13:41 +02:00
Chocobozzz d29ced1a85
Move engines outside package.json
Because of invalid warnings displayed by yarn that could confuse admins
when they install peertube
2021-05-10 09:55:46 +02:00
Chocobozzz 6b6e1d5d02
Drop NodeJS 10 support 2021-05-10 09:41:21 +02:00
Chocobozzz dc2b2938c2
Sort channels by -updatedAt 2021-05-10 09:38:11 +02:00
Chocobozzz e024fd6a74
Update channel updatedAt when uploading a video 2021-05-10 09:38:11 +02:00
John Livingston 1e0741d165 Fix CLI plugins list command: use command parameters. 2021-05-10 08:03:20 +02:00
Chocobozzz 4076e2ef6b Increase test timeout 2021-05-07 15:42:23 +02:00
Chocobozzz 4b91bc1525 Reduce pending job waiting 2021-05-07 15:42:23 +02:00