Commit Graph

1726 Commits

Author SHA1 Message Date
Jesse Chan
f857c785c1 codecov: use in informational mode for changes 2020-10-24 12:00:26 +08:00
Jesse Chan
5f47ddf153 server: torrentService: ensure active interval is applied
Fixes: aa0c7cf3db
2020-10-24 01:14:33 +08:00
Jesse Chan
aa0c7cf3db server: add torrentClientPollIntervalIdle to adjust polling when idle
Some automations like notification of download completion rely on
polling of torrent list. Plus, in the future, we might add more
automation capabilities such as "Pause after reaching certain ratio".

As such, don't completely stop polling when idle. Instead, add a config
"torrentClientPollIntervalIdle" to adjust the interval. The default is
(1000 * 60 * 15) ms aka 15 minutes that should allow low resources
consumption and ensure the automations like logging of download completion
time can work within reasonable error margin.

Fixes: 8452d51b79
Bug: #45, Flood-UI/flood#405
2020-10-24 00:53:01 +08:00
Jesse Chan
08fa52409b Dockerfile: install build dependencies in build layer 2020-10-24 00:21:28 +08:00
Jesse Chan
b4690a628e server: enable strict routing to distinguish / at end
Frontend uses relative path and it breaks stuffs when a
frontend route is accessed with / at end.
2020-10-23 13:20:57 +08:00
Jesse Chan
39a8ce9af0 CI: add Node 15 and drop Node 12 2020-10-22 11:02:35 +08:00
Jesse Chan
5d8b1b4a26 SettingsModal: ensure graceful fallback when clientSettings is not yet fetched 2020-10-21 22:04:26 +08:00
Jesse Chan
f1f0b3c7fd package-lock.json: regenerate 2020-10-21 20:52:02 +08:00
Jesse Chan
a0a1e2e52d CI: fix cypress installation 2020-10-21 20:47:27 +08:00
Jesse Chan
41c4ba225e dependencies: remove cypress from package.json
Cypress is huge. npm still attempts to install optional dependencies.

It shall be installed manually if frontend testing is needed.
2020-10-21 19:54:43 +08:00
Jesse Chan
99bab36241 server: tests: test torrent completion in create torrent case 2020-10-21 04:32:12 -05:00
Jesse Chan
3f8172d43c feature: allow to add completed torrent without checking
Bug: Flood-UI/flood#252
2020-10-21 04:32:12 -05:00
Jesse Chan
911b6eecb1 client, server: convert chained null checks to optional chaining 2020-10-21 11:35:04 +08:00
Jesse Chan
782898f92f client: TorrentListRow: switch to use-long-press 2020-10-21 02:39:09 +08:00
Jesse Chan
d5831be093 CI: auto retry backend tests
It depends on the other end sometimes as tests contain URL fetching.

Retry tests automatically to reduce flakiness.
2020-10-20 23:57:40 +08:00
Jesse Chan
1168925f2e server: tempFileUtil: ignore temp file deletion errors 2020-10-20 23:51:07 +08:00
Jesse Chan
6d4a546690 server: tempFileUtil: fix wrong Promise return 2020-10-20 23:32:00 +08:00
Jesse Chan
9dfa7e8d5d server: tests: add testcase for fetching with cookies 2020-10-20 23:31:10 +08:00
Jesse Chan
1ebcd40725 CI: only upload coverage in Node 14 runs 2020-10-20 23:19:39 +08:00
Jesse Chan
e6e9c5ad8b codecov: use in informational mode 2020-10-20 22:46:38 +08:00
Jesse Chan
155e03256a client: sortTorrents: fix ETA sorting 2020-10-20 22:35:38 +08:00
Jesse Chan
102d4c7084 server: tempFileUtil: properly handle promise rejections 2020-10-20 22:29:28 +08:00
Jesse Chan
8178fc9260 server: tempFileUtil: fix optional logics of cookies
Fixes: dcfa590f9f
2020-10-20 22:14:01 +08:00
Jesse Chan
dcfa590f9f feature: allow to attach cookies to fetch requests 2020-10-20 22:05:55 +08:00
Jesse Chan
b0add0db99 server: fetch torrents from http/https URLs directly from Flood
This allows more control over the fetching process.

Specifically, it allows us to add a feature to attach
Cookies to requests in a later commit.
2020-10-20 21:31:59 +08:00
Jesse Chan
8d2959edfc API: activity-stream: migrate all diff actions to JSON Patch 2020-10-20 20:31:08 +08:00
Jesse Chan
b07c782d22 styles: fix download/upload color inconsistency in details modal 2020-10-20 20:31:08 +08:00
Jesse Chan
c54cba328e package.json: add description, keywords and issue tracker 2020-10-20 20:31:08 +08:00
Jesse Chan
a93c4f6ebf client: AboutTab: display Flood version badges 2020-10-20 20:31:04 +08:00
Jesse Chan
f8f972aaf0 client: AboutTab: use loader to pre-process ABOUT.md 2020-10-20 17:57:23 +08:00
Jesse Chan
7e5182a04a client: webpack: process file assets with allowed file extension list 2020-10-20 17:57:23 +08:00
Jesse Chan
90fc029781 client: use stricter connectStores state type 2020-10-20 13:09:32 +08:00
Jesse Chan
e6fcf86f7f client: tests: properly stub /api/auth/authenticate response 2020-10-20 10:09:13 +08:00
Jesse Chan
992287e91b server: tests: do not cleanup in CI environment 2020-10-20 09:30:22 +08:00
Jesse Chan
3c0d254dbc server: tests: fix typo of "leads to" 2020-10-20 01:28:55 +08:00
Jesse Chan
2fdcfc899a client: AuthForm: properly handle and display errors 2020-10-20 01:25:43 +08:00
Jesse Chan
a7d3638bc4 client: consolidate save user preferences functions
We shall not dispatch inside a dispatch.
2020-10-19 23:38:54 +08:00
Jesse Chan
d285560f88 client: unconditionally remember user's deleteData preference 2020-10-19 23:19:22 +08:00
Jesse Chan
4da15d4a08 client: TorrentActions: create: trigger download first 2020-10-19 23:06:39 +08:00
Jesse Chan
1b583f0fcb server: tests: torrents: add test cases for allowed path 2020-10-19 22:51:22 +08:00
Jesse Chan
409fcee3e4 server: add the created torrent after creation 2020-10-19 22:43:15 +08:00
Jesse Chan
9cefa85f71 server: rTorrent: round addtime to integer 2020-10-19 21:52:51 +08:00
Jesse Chan
96c754ddeb server: rTorrent: save torrents and then add them with paths
Bug: #164, #741, #773
2020-10-19 21:52:51 +08:00
Jesse Chan
63860705ef server: fileUtil: properly use async createDirectory 2020-10-19 21:42:34 +08:00
Jesse Chan
f0daebbf41 client: initial integration tests 2020-10-18 22:32:34 +08:00
Jesse Chan
ae536b4b75 dependencies: remove unused nodemon dependency 2020-10-18 06:55:28 -05:00
Jesse Chan
8fb9f70c35 client: fully migrate to TypeScript 2020-10-18 06:55:28 -05:00
Jesse Chan
dbeecf8d69 client, server: remove workarounds for legacy browsers 2020-10-17 13:44:06 +08:00
Jesse Chan
cce56235b9 client: build: add progress bar of webpack build process 2020-10-17 13:44:06 +08:00
Jesse Chan
98a4a0aa04 dependencies: bump (major) 2020-10-17 13:44:06 +08:00