aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/single-server.ts
Commit message (Collapse)AuthorAgeFilesLines
* Implement avatar miniatures (#4639)kontrollanten2022-02-281-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * client: remove unused file * refactor(client/my-actor-avatar): size from input Read size from component input instead of scss, to make it possible to use smaller avatar images when implemented. * implement avatar miniatures close #4560 * fix(test): max file size * fix(search-index): normalize res acc to avatarMini * refactor avatars to an array * client/search: resize channel avatar to 120 * refactor(client/videos): remove unused function * client(actor-avatar): set default size * fix tests and avatars full result When findOne is used only an array containting one avatar is returned. * update migration version and version notations * server/search: harmonize normalizing * Cleanup avatar miniature PR Co-authored-by: Chocobozzz <me@florianbigard.com>
* Move test functions outside extra-utilsChocobozzz2021-12-171-10/+3
|
* shared/ typescript types dir server-commandsChocobozzz2021-12-171-1/+1
|
* chore(refactor): remove shared folder dependencies to the serverlutangar2021-12-161-1/+1
| | | | | | | | | | | Many files from the `shared` folder were importing files from the `server` folder. When attempting to use Typescript project references to describe dependencies, it highlighted a circular dependency beetween `shared` <-> `server`. The Typescript project forbid such usages. Using project references greatly improve performance by rebuilding only the updated project and not all source files. > see https://www.typescriptlang.org/docs/handbook/project-references.html
* Deprecate filter video queryChocobozzz2021-10-291-13/+0
| | | | Introduce include and isLocal instead
* Generate random uuid for video filesChocobozzz2021-07-261-1/+2
|
* Use an object to represent a serverChocobozzz2021-07-201-4/+4
|
* Shorter server command namesChocobozzz2021-07-201-45/+45
|
* Introduce videos commandChocobozzz2021-07-201-157/+119
|
* Introduce server commandsChocobozzz2021-07-201-1/+1
|
* Resumable video uploads (#3933)kontrollanten2021-05-101-357/+367
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Add ability to filter my videos by liveChocobozzz2021-05-031-2/+2
|
* add best trending strategy based on Reddit's bestRigel Kent2021-02-041-0/+8
| | | | | | inspired from https://www.reddit.com/r/changelog/comments/7spgg0/best_is_the_new_hotness/ this implementation only adds freshness, and doesn't personalize based on subscribed communities yet.
* add test and openapi for hot sort parameterRigel Kent2021-01-281-0/+8
|
* Fix audio encoding paramsChocobozzz2020-11-251-0/+2
|
* Add ability to sort by originallyPublishedAtChocobozzz2020-04-201-7/+42
|
* Move to eslintcontainChocobozzz2020-02-031-1/+1
|
* Add ability to skip count queryChocobozzz2020-01-081-0/+9
|
* All API tests in parallelChocobozzz2019-05-151-9/+10
|
* Redundancy and search tests in parallel tooChocobozzz2019-05-141-2/+2
|
* Use test wrapper exit functionChocobozzz2019-04-241-5/+4
|
* Cleanup testsChocobozzz2019-04-241-10/+3
|
* Shared utils -> extra-utilsChocobozzz2019-04-241-1/+1
| | | | Because they need dev dependencies
* Merge branch 'develop' into pr/1217Chocobozzz2019-02-111-2/+2
|\
| * Move utils to /sharedbuoyantair2018-10-291-1/+1
| | | | | | | | | | | | | | Move utils used by /server/tools/* & /server/tests/**/* into /shared folder. Issue: #1336
| * rename News category into News & Politics (#1261)Adnane Belmadiaf2018-10-141-1/+1
| |
* | Rename downloadingEnabled property to downloadEnabledLucas Declercq2018-10-081-3/+3
| |
* | Add downloadingEnabled property to video modelLucas Declercq2018-10-061-0/+3
|/
* Add trending sort testsChocobozzz2018-09-041-0/+8
|
* Bufferize videos views in redisChocobozzz2018-08-301-1/+4
|
* Add ability to search a video with an URLChocobozzz2018-08-271-2/+4
|
* Add ability to set a name to a channelChocobozzz2018-08-271-2/+2
|
* Add videos list filtersChocobozzz2018-07-241-142/+11
|
* Improve tests when waiting pending jobsChocobozzz2018-06-131-4/+25
|
* Use ISO 639 for languagesChocobozzz2018-04-231-7/+7
|
* Update videos api list for accountChocobozzz2018-03-121-32/+10
|
* Avoids easy cheating on vidoe viewsChocobozzz2018-02-231-5/+15
|
* Implement support field in video and video channelChocobozzz2018-02-151-0/+2
|
* Fix testsChocobozzz2018-02-141-3/+1
|
* Increase tests timeoutChocobozzz2018-01-181-1/+1
|
* Don't show videos of remote instance after unfollowChocobozzz2018-01-181-11/+6
|
* Add ability to update some configuration keysChocobozzz2018-01-171-1/+2
|
* Add ability to disable video commentsChocobozzz2018-01-031-1/+4
|
* Fix testsChocobozzz2017-12-291-26/+3
|
* Refractor check video testsChocobozzz2017-12-291-0/+4
|
* Refractor single server testChocobozzz2017-12-291-205/+67
|
* Fix videos testsChocobozzz2017-12-281-2/+2
|
* Tests directories refractorChocobozzz2017-12-281-0/+701