diff --git a/src/config/v2/api.rs b/src/config/v2/api.rs index 10347869..ebd943ea 100644 --- a/src/config/v2/api.rs +++ b/src/config/v2/api.rs @@ -37,7 +37,7 @@ impl Api { } fn default_max_torrent_page_size() -> u8 { - 30 + 100 } fn default_user_profile_page_size() -> u8 { @@ -45,6 +45,6 @@ impl Api { } fn default_max_user_profile_page_size() -> u8 { - 100 + 30 } } diff --git a/src/lib.rs b/src/lib.rs index 13586a17..059c5ebc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -219,7 +219,7 @@ //! //! [api] //! default_torrent_page_size = 10 -//! max_torrent_page_size = 30 +//! max_torrent_page_size = 100 //! //! [tracker_statistics_importer] //! torrent_info_update_interval = 3600 diff --git a/src/web/api/server/v1/contexts/settings/mod.rs b/src/web/api/server/v1/contexts/settings/mod.rs index 95ee15c8..a920d9f8 100644 --- a/src/web/api/server/v1/contexts/settings/mod.rs +++ b/src/web/api/server/v1/contexts/settings/mod.rs @@ -85,7 +85,7 @@ //! }, //! "api": { //! "default_torrent_page_size": 10, -//! "max_torrent_page_size": 30 +//! "max_torrent_page_size": 100 //! }, //! "registration": { //! "email": { diff --git a/src/web/api/server/v1/contexts/torrent/mod.rs b/src/web/api/server/v1/contexts/torrent/mod.rs index 3f915f76..644da338 100644 --- a/src/web/api/server/v1/contexts/torrent/mod.rs +++ b/src/web/api/server/v1/contexts/torrent/mod.rs @@ -201,7 +201,7 @@ //! ```toml //! [api] //! default_torrent_page_size = 10 -//! max_torrent_page_size = 30 +//! max_torrent_page_size = 100 //! ``` //! //! **Sorting GET parameters** diff --git a/tests/e2e/web/api/v1/contexts/torrent/contract.rs b/tests/e2e/web/api/v1/contexts/torrent/contract.rs index 067ec912..d9276c10 100644 --- a/tests/e2e/web/api/v1/contexts/torrent/contract.rs +++ b/tests/e2e/web/api/v1/contexts/torrent/contract.rs @@ -75,7 +75,7 @@ mod for_guests { let uploader = new_logged_in_user(&env).await; - let max_torrent_page_size = 30; + let max_torrent_page_size = 100; // Given we insert one torrent more than the page size limit for _ in 0..max_torrent_page_size { diff --git a/tests/fixtures/default_configuration.toml b/tests/fixtures/default_configuration.toml index d86ac1c1..30302a8c 100644 --- a/tests/fixtures/default_configuration.toml +++ b/tests/fixtures/default_configuration.toml @@ -74,7 +74,7 @@ user_quota_period_seconds = 3600 [api] default_torrent_page_size = 10 -max_torrent_page_size = 30 +max_torrent_page_size = 100 [tracker_statistics_importer] port = 3002