From 48f4a608ce2f4bb745dc5419c49bda6e6fceb303 Mon Sep 17 00:00:00 2001 From: Willy Lulciuc Date: Tue, 14 Jun 2022 16:51:37 -0700 Subject: [PATCH] Reduce UI limit for list datasets jobs in UI (#2018) * Set list limit for datasets and jobs to 25 by default Signed-off-by: wslulciuc * Update changelog Signed-off-by: wslulciuc --- CHANGELOG.md | 4 ++++ web/src/store/requests/datasets.ts | 2 +- web/src/store/requests/jobs.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 591022d61f..36dde18ea3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased](https://github.com/MarquezProject/marquez/compare/0.22.0...HEAD) +### Changed + +* Set default limit for listing datasets and jobs in UI from `2000` to `25` [@wslulciuc](https://github.com/wslulciuc) + ## [0.22.0](https://github.com/MarquezProject/marquez/compare/0.21.0...0.22.0) - 2022-05-16 ### Added diff --git a/web/src/store/requests/datasets.ts b/web/src/store/requests/datasets.ts index e8745b7ac9..a5ca658f55 100644 --- a/web/src/store/requests/datasets.ts +++ b/web/src/store/requests/datasets.ts @@ -4,7 +4,7 @@ import { API_URL } from '../../globals' import { DatasetVersions, Datasets } from '../../types/api' import { genericFetchWrapper } from './index' -export const getDatasets = async (namespace: string, limit = 2000, offset = 0) => { +export const getDatasets = async (namespace: string, limit = 25, offset = 0) => { const url = `${API_URL}/namespaces/${encodeURIComponent( namespace )}/datasets?limit=${limit}&offset=${offset}` diff --git a/web/src/store/requests/jobs.ts b/web/src/store/requests/jobs.ts index ed52ff8729..7e6ef8b217 100644 --- a/web/src/store/requests/jobs.ts +++ b/web/src/store/requests/jobs.ts @@ -4,7 +4,7 @@ import { API_URL } from '../../globals' import { Jobs } from '../../types/api' import { genericFetchWrapper } from './index' -export const getJobs = async (namespace: string, limit = 2000, offset = 0) => { +export const getJobs = async (namespace: string, limit = 25, offset = 0) => { const url = `${API_URL}/namespaces/${encodeURIComponent( namespace )}/jobs?limit=${limit}&offset=${offset}`