default pagination limit 50

This commit is contained in:
mbecker20
2026-07-13 18:32:19 -07:00
parent 0d2318a40a
commit 687440782d
4 changed files with 6 additions and 7 deletions

View File

@@ -156,7 +156,7 @@ pub async fn inspect_container(
tags: Default::default(),
terms: vec![inspect.container.clone()],
state: Default::default(),
limit: Some(300),
limit: Some(0),
page: 0,
sort_by: ContainerSortBy::Server,
sort_desc: false,

View File

@@ -400,8 +400,7 @@ pub struct CoreConfig {
pub timezone: String,
/// Set the default pagination limit for the API and UI to use.
/// Default: 30
/// Recommended: 100 or less
/// Default: 50
#[serde(default = "default_default_pagination_limit")]
pub default_pagination_limit: u64,
@@ -823,7 +822,7 @@ fn default_private_key() -> String {
}
fn default_default_pagination_limit() -> u64 {
30
50
}
fn default_ui_path() -> String {

View File

@@ -58,7 +58,7 @@ KOMODO_DISABLE_CONFIRM_DIALOG=false
KOMODO_DISABLE_INIT_RESOURCES=false
## Change the default pagination limit for the API and UI to use.
KOMODO_DEFAULT_PAGINATION_LIMIT=30
KOMODO_DEFAULT_PAGINATION_LIMIT=50
## Used to auth incoming webhooks. Alt: KOMODO_WEBHOOK_SECRET_FILE
KOMODO_WEBHOOK_SECRET=a_random_secret

View File

@@ -81,8 +81,8 @@ private_key = "file:/config/keys/core.key"
## Set the default pagination limit for the API and UI to use.
## Env: KOMODO_DEFAULT_PAGINATION_LIMIT
## Default: 30
default_pagination_limit = 30
## Default: 50
default_pagination_limit = 50
## Disables write support on resources in the UI.
## This protects users that that would normally have write priviledges during their UI usage,