Commit Graph

377 Commits

Author SHA1 Message Date
Chocobozzz
980246ea8f Make tslint happy 2017-09-04 21:45:05 +02:00
Chocobozzz
0e1dc3e7c6 Convert tests to typescript 2017-09-04 21:30:18 +02:00
Chocobozzz
b0f9f39ed7 Begin user quota 2017-09-04 20:07:54 +02:00
Chocobozzz
3482688cce Fix config checker 2017-08-26 09:17:20 +02:00
Chocobozzz
556ddc3192 Upgrade common server dependencies 2017-08-25 18:36:49 +02:00
Chocobozzz
0aef76c479 Formated -> Formatted 2017-08-25 11:45:31 +02:00
Chocobozzz
93e1258c7c Move video file metadata in their own table
Will be used for user video quotas and multiple video resolutions
2017-08-25 11:36:23 +02:00
Chocobozzz
69f224587e Fix tests 2017-08-02 21:51:40 +02:00
Green-Star
d5f5a670fc Remove one pod (#76)
* Client: Fix typo

* Client: Add removeFriend feature

* Server: Add removeFriend feature

* Server: Update method name

* Fix rebase onto develop issues

* Server: Fix error message

* Server: Remove useless methods in removeFriend method

* Server: Finish remove on pod feature after rebase

* Server: Type pod parameter

* Fix Travis build

* Add friend-basic test for the remove one pod feature

* Add check-params tests for the remove one pod feature

* Fix typos

* Add friend-advanced test for the remove one pod feature

* Client: Trailing new line

* Move to promises

* Add undefined id test

* Use find method instead of a for loop to find the friend to remove

* Remove setTimeout method

* Server: Remove requestScheduler operations

* Server: Fix logging messages

* Server: Remove sign request parameter
2017-08-02 21:50:42 +02:00
Chocobozzz
291e8d3eed Add ability to limit user registrations 2017-07-25 20:17:28 +02:00
Chocobozzz
0b7db72af3 Fix lint 2017-07-12 14:58:34 +02:00
Chocobozzz
d38309c345 Set correctly preview image for open graph 2017-07-12 12:19:39 +02:00
Chocobozzz
f981dae861 Add previews cache system between pods 2017-07-12 11:56:02 +02:00
Chocobozzz
075f16caac Remove "function" in favor of () => {} 2017-07-11 17:05:55 +02:00
Chocobozzz
4e979c3e1b Add tests for open graph tags 2017-07-11 16:16:51 +02:00
Chocobozzz
0a6658fdcb Use global uuid instead of remoteId for videos 2017-07-11 16:01:56 +02:00
Chocobozzz
e6d4b0ff24 Remove any typing from server 2017-07-11 10:59:13 +02:00
Chocobozzz
4771e0008d Better typescript typing for a better world 2017-07-10 19:43:21 +02:00
Chocobozzz
ad0997adfb Fix error logging 2017-07-07 18:26:12 +02:00
Chocobozzz
709756b8e1 Async signature and various fixes 2017-07-07 18:23:18 +02:00
Chocobozzz
18c8e94508 Video search -> case insensitive 2017-07-06 18:01:02 +02:00
Chocobozzz
6fcd19ba73 Move to promises
Closes https://github.com/Chocobozzz/PeerTube/issues/74
2017-07-05 14:14:16 +02:00
Green-Star
5fe7e89831 Fix test (#71)
* Fix timeouting tests

* Increase timeout to be sure requests will be propagated

* Add timeout to be sure video views will be updated

* Use standard style

* Fix PR comments.
2017-07-02 20:48:31 +02:00
Chocobozzz
ba44fa1953 Move ensureRegistrationEnabled to middlewares 2017-06-25 17:48:51 +02:00
Chocobozzz
0a381679e0 ClientLocal -> OAuthClientLocal 2017-06-25 17:44:19 +02:00
Chocobozzz
e636eb8810 Requests -> RequestSchedulers 2017-06-25 17:19:46 +02:00
Chocobozzz
945075ad45 Oup's, forgot to increate timeout test 2017-06-25 15:15:03 +02:00
Chocobozzz
12028e7a17 Fix travis tests 2017-06-25 15:02:08 +02:00
Chocobozzz
0c2388548a Excluse .js.map when scanning models/ directory 2017-06-24 10:30:23 +02:00
Chocobozzz
9e58005439 Update systemd service template 2017-06-20 20:34:41 +02:00
Chocobozzz
154898b0b7 Share models between server and client 2017-06-17 11:28:11 +02:00
Chocobozzz
df98563e21 Use typescript standard and lint all files 2017-06-16 14:32:15 +02:00
Chocobozzz
ee9e7b61f5 Create types for model enums 2017-06-16 10:36:18 +02:00
Chocobozzz
70c065d64c Add this context to instance model functions 2017-06-16 09:54:59 +02:00
Chocobozzz
74889a71fe Reorganize model files 2017-06-16 09:45:46 +02:00
Chocobozzz
15a302943d BaseRequestScheduler -> AbstractRequestScheduler 2017-06-16 09:14:41 +02:00
Chocobozzz
c3d19a4907 Fix video update test 2017-06-12 21:37:56 +02:00
Chocobozzz
75d612ce3c Convert scripts to typescript 2017-06-12 21:06:32 +02:00
Chocobozzz
127944aacb Better models define typing 2017-06-11 17:35:32 +02:00
Chocobozzz
1840c2f7c9 Update webpack stack 2017-06-11 15:19:43 +02:00
Chocobozzz
8635a2c70c Update client modules 2017-06-11 12:28:22 +02:00
Chocobozzz
69f616ab3a Use shared models 2017-06-11 11:02:35 +02:00
Chocobozzz
69818c9394 Type functions 2017-06-10 22:15:25 +02:00
Chocobozzz
4d4e5cd4dc require -> import 2017-06-05 21:53:49 +02:00
Chocobozzz
e02643f32e Type models 2017-05-25 17:32:16 +02:00
Chocobozzz
65fcc3119c First typescript iteration 2017-05-20 09:57:40 +02:00
Chocobozzz
5a976a8c35 Server: move requests lib in their own directory 2017-05-05 17:35:58 +02:00
Chocobozzz
4e284e97b9 Server: finish old jobs at startup 2017-05-05 17:24:16 +02:00
Chocobozzz
e5b8853905 Server: check ffmpeg at startup 2017-05-05 17:15:21 +02:00
Chocobozzz
d33242b047 Server: split videos controller 2017-05-05 16:53:35 +02:00
Chocobozzz
c24ac1c18e Fix unset video language on video update 2017-05-05 14:29:58 +02:00
Chocobozzz
9eee32fc34 Client: fix update button displayed on non owned video 2017-05-05 14:11:01 +02:00
Chocobozzz
b1ed221747 Fix tests 2017-05-05 13:42:52 +02:00
Chocobozzz
62326afb15 Server: Fix video propagation with transcoding enabled 2017-05-05 12:15:16 +02:00
Chocobozzz
fce897f326 Server: add tests to video transcoder 2017-05-04 21:51:00 +02:00
Chocobozzz
227d02fead Server: add job scheduler to transcode video files 2017-05-04 21:12:32 +02:00
Chocobozzz
15d4ee04a9 Server: little refractoring when listing videos 2017-05-01 19:24:37 +02:00
Chocobozzz
843aa7ba03 Server: add tests for video blacklists 2017-05-01 19:04:29 +02:00
Chocobozzz
ab683a8e0d Format video blacklist 2017-04-26 21:42:36 +02:00
Green-Star
198b205c10 Add ability for an administrator to remove any video (#61)
* Add ability for an admin to remove every video on the pod.

* Server: add BlacklistedVideos relation.

* Server: Insert in BlacklistedVideos relation upon deletion of a video.

* Server: Modify BlacklistedVideos schema to add Pod id information.

* Server: Moving insertion of a blacklisted video from the `afterDestroy` hook into the process of deletion of a video.

To avoid inserting a video when it is removed on its origin pod.
When a video is removed on its origin pod, the `afterDestroy` hook is fire, but no request is made on the delete('/:videoId') interface.
Hence, we insert into `BlacklistedVideos` only on request on delete('/:videoId') (if requirements for insertion are met).

* Server: Add removeVideoFromBlacklist hook on deletion of a video.

We are going to proceed in another way :).
We will add a new route : /:videoId/blacklist to blacklist a video.
We do not blacklist a video upon its deletion now (to distinguish a video blacklist from a regular video delete)
When we blacklist a video, the video remains in the DB, so we don't have any concern about its update. It just doesn't appear in the video list.
When we remove a video, we then have to remove it from the blacklist too.
We could also remove a video from the blacklist to 'unremove' it and make it appear again in the video list (will be another feature).

* Server: Add handler for new route post(/:videoId/blacklist)

* Client: Add isBlacklistable method

* Client: Update isRemovableBy method.

* Client: Move 'Delete video' feature from the video-list to the video-watch module.

* Server: Exclude blacklisted videos from the video list

* Server: Use findAll() in BlacklistedVideos.list() method

* Server: Fix addVideoToBlacklist function.

* Client: Add blacklist feature.

* Server: Use JavaScript Standard Style.

* Server: In checkUserCanDeleteVideo, move the callback call inside the db callback function

* Server: Modify BlacklistVideo relation

* Server: Modifiy Videos methods.

* Server: Add checkVideoIsBlacklistable method

* Server: Rewrite addVideoToBlacklist method

* Server: Fix checkVideoIsBlacklistable method

* Server: Add return to addVideoToBlacklist method
2017-04-26 21:22:10 +02:00
Chocobozzz
0dd079da27 Update standard -> 10 2017-04-16 14:25:37 +02:00
Chocobozzz
c36b4ff77e Server: fix tests 2017-04-09 12:31:04 +02:00
Chocobozzz
2c2e909216 Server: add ability to register new user 2017-04-09 12:08:36 +02:00
Chocobozzz
3092476e64 Server: add video language attribute 2017-04-07 12:13:37 +02:00
Chocobozzz
1d49e1e27d Server: Add NSFW in user profile 2017-04-03 21:24:36 +02:00
Chocobozzz
31b59b4774 Server: add nsfw attribute 2017-03-28 21:19:46 +02:00
Chocobozzz
6f0c39e2de Server: add licence video attribute 2017-03-27 20:53:11 +02:00
Chocobozzz
b4c5ac97ff Server: refractoring upload/update video test utils 2017-03-26 18:39:01 +02:00
Chocobozzz
f6e692f5ee Fix tag tests 2017-03-22 22:13:11 +01:00
Chocobozzz
e54163c2d5 Relax on tags (accept any characters and not required anymore) 2017-03-22 21:56:02 +01:00
Chocobozzz
6e07c3de88 Add video category support 2017-03-22 21:25:24 +01:00
Chocobozzz
34831b4843 Server: move pod remove to remote path 2017-03-19 18:56:10 +01:00
Chocobozzz
f148e5edb6 Better real world test 2017-03-19 09:16:33 +01:00
Chocobozzz
e22528aca6 Server: add config endpoint 2017-03-10 11:32:39 +01:00
Chocobozzz
86e8393986 Allow to sort by likes 2017-03-08 21:52:25 +01:00
Chocobozzz
d38b828106 Add like/dislike system for videos 2017-03-08 21:35:43 +01:00
Chocobozzz
e3d156b341 Server: add views attribute when sending videos to friends 2017-03-04 11:00:59 +01:00
Chocobozzz
1f5bf9ef70 Server: typo 2017-03-04 10:41:42 +01:00
Chocobozzz
ed708d62a6 Server: fix migrations with an empty Applications table 2017-03-04 10:40:09 +01:00
Chocobozzz
4b4660582b Server: fix requests endpoints 2017-03-04 09:48:35 +01:00
Chocobozzz
72329aaa28 Update bittorrent-tracker and standard to v9 2017-03-03 18:45:40 +01:00
Chocobozzz
99fdec4648 Fix request schedulers stats 2017-02-27 21:56:55 +01:00
Chocobozzz
f282639b07 Server: request scheduler refractoring 2017-02-26 20:01:26 +01:00
Chocobozzz
9c2c18f3ab Server: little sort refractoring 2017-02-26 20:01:26 +01:00
Chocobozzz
e4c87ec269 Server: implement video views 2017-02-26 20:01:26 +01:00
Chocobozzz
9e167724f7 Server: make a basic "quick and dirty update" for videos
This system will be useful to to update some int video attributes
(likes, dislikes, views...)

The classic system is not used because we need some optimization for
scaling
2017-02-26 20:01:26 +01:00
Chocobozzz
fe783f6b0d This is not a prototype anymore, but a real project! 2017-02-26 20:01:26 +01:00
Chocobozzz
5804c0db33 Server: fix migration scripts 2017-02-18 12:13:33 +01:00
Chocobozzz
c1a7ab7f04 Server: use a request scheduler object instance for friends
communication
2017-02-18 10:29:36 +01:00
Chocobozzz
ad4a8a1cca Add email to users 2017-02-18 09:29:59 +01:00
Chocobozzz
5d67f289df Server: add unique to unique indexes 2017-02-16 19:24:34 +01:00
Chocobozzz
4793c343fd Add email to pods 2017-02-16 19:19:56 +01:00
Chocobozzz
f6f7dfee01 Server: update express-validator 2017-02-10 11:27:14 +01:00
Chocobozzz
9cc99d7b56 Fix update host script 2017-02-08 20:34:01 +01:00
Chocobozzz
28798b5d94 Client: replace simple tables by ng2 smart table component 2017-01-30 22:41:14 +01:00
Chocobozzz
cddadde81f Server: assert remoteId and host pair is unique 2017-01-27 12:14:53 +01:00
Chocobozzz
b09ce6455f Server: error if we add a pod that already exists 2017-01-27 11:55:31 +01:00
Chocobozzz
84c07f8ac1 Fix tests 2017-01-23 23:00:27 +01:00
Chocobozzz
11ac88de40 Client: add basic support to report video abuses 2017-01-23 22:18:53 +01:00
Chocobozzz
4f8c0eb0e9 Client: add ability to report a video 2017-01-20 19:22:15 +01:00