Handle blacklist (#84)
authorGreen-Star <Green-Star@users.noreply.github.com>
Fri, 22 Sep 2017 07:13:43 +0000 (09:13 +0200)
committerBigard Florian <florian.bigard@gmail.com>
Fri, 22 Sep 2017 07:13:43 +0000 (09:13 +0200)
commit792dbaf07f83fbe3f1d209cd9edf190442c7d2f3
treef7edf9caf17baaaf95c219c3ac73d598e3fd3df8
parentc9d6d155c397d0da0cb2d50064264fc1716f0501
Handle blacklist (#84)

* Client: Add list blacklist feature

* Server: Add list blacklist feature

* Client: Add videoId column

* Server: Add some video infos in the REST api

* Client: Add video information in the blacklist list

* Fix sortable columns :)

* Client: Add removeFromBlacklist feature

* Server: Add removeFromBlacklist feature

* Move to TypeScript

* Move to TypeScript and Promises

* Server: Fix blacklist list sort

* Server: Fetch videos informations

* Use common shared interface for client and server

* Add check-params remove blacklisted video tests

* Add check-params list blacklisted videos tests

* Add list blacklist tests

* Add remove from blacklist tests

* Add video blacklist management tests

* Fix rebase onto develop issues

* Server: Add sort on blacklist id column

* Server: Add blacklists library

* Add blacklist id sort test

* Add check-params tests for blacklist list pagination, count and sort

* Fix coding style

* Increase Remote API tests timeout

* Increase Request scheduler API tests timeout

* Fix typo

* Increase video transcoding API tests timeout

* Move tests to Typescript

* Use lodash orderBy method

* Fix typos

* Client: Remove optional tests in blacklist model attributes

* Move blacklist routes from 'blacklists' to 'blacklist'

* CLient: Remove blacklist-list.component.scss

* Rename 'blacklists' files to 'blacklist'

* Use only BlacklistedVideo interface

* Server: Use getFormattedObjects method in listBlacklist method

* Client: Use new coding style

* Server: Use new sort validator methods

* Server: Use new checkParams methods

* Client: Fix sortable columns
36 files changed:
client/src/app/+admin/admin-routing.module.ts
client/src/app/+admin/admin.module.ts
client/src/app/+admin/blacklist/blacklist-list/blacklist-list.component.html [new file with mode: 0644]
client/src/app/+admin/blacklist/blacklist-list/blacklist-list.component.ts [new file with mode: 0644]
client/src/app/+admin/blacklist/blacklist-list/index.ts [new file with mode: 0644]
client/src/app/+admin/blacklist/blacklist.component.ts [new file with mode: 0644]
client/src/app/+admin/blacklist/blacklist.routes.ts [new file with mode: 0644]
client/src/app/+admin/blacklist/index.ts [new file with mode: 0644]
client/src/app/+admin/blacklist/shared/blacklist.service.ts [new file with mode: 0644]
client/src/app/+admin/blacklist/shared/index.ts [new file with mode: 0644]
client/src/app/core/menu/menu-admin.component.html
server/controllers/api/blacklist.ts [new file with mode: 0644]
server/controllers/api/index.ts
server/helpers/utils.ts
server/initializers/constants.ts
server/lib/blacklist.ts [new file with mode: 0644]
server/lib/index.ts
server/middlewares/sort.ts
server/middlewares/validators/blacklist.ts [new file with mode: 0644]
server/middlewares/validators/index.ts
server/middlewares/validators/sort.ts
server/models/utils.ts
server/models/video/video-blacklist-interface.ts
server/models/video/video-blacklist.ts
server/tests/api/check-params/index.ts
server/tests/api/check-params/remotes.ts
server/tests/api/check-params/request-schedulers.ts
server/tests/api/check-params/video-blacklist.ts [new file with mode: 0644]
server/tests/api/check-params/video-blacklists.ts [deleted file]
server/tests/api/index.ts
server/tests/api/video-blacklist-management.ts [new file with mode: 0644]
server/tests/api/video-transcoder.ts
server/tests/utils/index.ts
server/tests/utils/video-blacklist.ts [new file with mode: 0644]
server/tests/utils/video-blacklists.ts [deleted file]
shared/models/videos/video-blacklist.model.ts