mirror of
https://github.com/moghtech/komodo.git
synced 2026-07-16 01:59:56 -05:00
default pagination limit 50
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user