You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the torrent list/table components of the GUI has a default page size (number of results that are going to be displayed in each page) of 50 elements, but only 30 of them are shown:
This is because the API configuration has a limit of a maximum of 30 elements per request:
/// Core configuration for the API#[derive(Debug,Clone,Serialize,Deserialize,PartialEq)]pubstructApi{/// The default page size for torrent lists.#[serde(default = "Api::default_default_torrent_page_size")]pubdefault_torrent_page_size:u8,/// The maximum page size for torrent lists.#[serde(default = "Api::default_max_torrent_page_size")]pubmax_torrent_page_size:u8,/// The default page size for user profile lists.#[serde(default = "Api::default_user_profile_page_size")]pubdefault_user_profile_page_size:u8,/// The maximum page size for user profile lists.#[serde(default = "Api::default_max_user_profile_page_size")]pubmax_user_profile_page_size:u8,}implDefaultforApi{fndefault() -> Self{Self{default_torrent_page_size:Api::default_default_torrent_page_size(),max_torrent_page_size:Api::default_max_torrent_page_size(),default_user_profile_page_size:Api::default_user_profile_page_size(),max_user_profile_page_size:Api::default_max_user_profile_page_size(),}}}implApi{fndefault_default_torrent_page_size() -> u8{10}fndefault_max_torrent_page_size() -> u8{30}fndefault_user_profile_page_size() -> u8{10}fndefault_max_user_profile_page_size() -> u8{100}}
That creates an inconsistent number of elements being displayed between the pagination component and the torrent list/torrents table components, resulting in an incorrect number of torrents shown to the user when setting a page size of 50 or 100 results.
This does not affect the page size value of 20.
How to reproduce
Navigate to the torrents page (/torrents) (At least 31 torrents has to be uploaded)
Count the torrents (the search function of the browser can be used for this if all torrents share some words in common)
You should see the pagination component showing 1 to 31 of 31 results but only 30 torrents are shown
Change the page size to 100 and the same error occurs
The text was updated successfully, but these errors were encountered:
Description
By default, the torrent list/table components of the GUI has a default page size (number of results that are going to be displayed in each page) of 50 elements, but only 30 of them are shown:
This is because the API configuration has a limit of a maximum of 30 elements per request:
That creates an inconsistent number of elements being displayed between the pagination component and the torrent list/torrents table components, resulting in an incorrect number of torrents shown to the user when setting a page size of 50 or 100 results.
This does not affect the page size value of 20.
How to reproduce
The text was updated successfully, but these errors were encountered: