Skip to content

Commit b6e4adf

Browse files
committed
Merge #798: Increase max torrent page size
4f0d1a4 refactor: [#797] fixed tests failing and update default max page size value (Mario) fde858e fix: [#797] max torrent page size increased to 100 (Mario) Pull request description: Fixes #797 ACKs for top commit: josecelano: ACK 4f0d1a4 Tree-SHA512: 5333beb01ee0098d279abbde077daed15c38c3a4b8ff1d950b656563880b904f9c33d279c53223b2b94ea822ffb190888d3b148d71e2689bab533c705aeb7911
2 parents 33392f4 + 4f0d1a4 commit b6e4adf

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/config/v2/api.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ impl Api {
3737
}
3838

3939
fn default_max_torrent_page_size() -> u8 {
40-
30
40+
100
4141
}
4242

4343
fn default_user_profile_page_size() -> u8 {
4444
10
4545
}
4646

4747
fn default_max_user_profile_page_size() -> u8 {
48-
100
48+
30
4949
}
5050
}

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
//!
220220
//! [api]
221221
//! default_torrent_page_size = 10
222-
//! max_torrent_page_size = 30
222+
//! max_torrent_page_size = 100
223223
//!
224224
//! [tracker_statistics_importer]
225225
//! torrent_info_update_interval = 3600

src/web/api/server/v1/contexts/settings/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
//! },
8686
//! "api": {
8787
//! "default_torrent_page_size": 10,
88-
//! "max_torrent_page_size": 30
88+
//! "max_torrent_page_size": 100
8989
//! },
9090
//! "registration": {
9191
//! "email": {

src/web/api/server/v1/contexts/torrent/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
//! ```toml
202202
//! [api]
203203
//! default_torrent_page_size = 10
204-
//! max_torrent_page_size = 30
204+
//! max_torrent_page_size = 100
205205
//! ```
206206
//!
207207
//! **Sorting GET parameters**

tests/e2e/web/api/v1/contexts/torrent/contract.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ mod for_guests {
7575

7676
let uploader = new_logged_in_user(&env).await;
7777

78-
let max_torrent_page_size = 30;
78+
let max_torrent_page_size = 100;
7979

8080
// Given we insert one torrent more than the page size limit
8181
for _ in 0..max_torrent_page_size {

tests/fixtures/default_configuration.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ user_quota_period_seconds = 3600
7474

7575
[api]
7676
default_torrent_page_size = 10
77-
max_torrent_page_size = 30
77+
max_torrent_page_size = 100
7878

7979
[tracker_statistics_importer]
8080
port = 3002

0 commit comments

Comments
 (0)