Skip to content

Commit 518e383

Browse files
authored
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 <willy@datakin.com> * Update changelog Signed-off-by: wslulciuc <willy@datakin.com>
1 parent 20822b9 commit 518e383

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased](https://github.com/MarquezProject/marquez/compare/0.22.0...HEAD)
44

5+
### Changed
6+
7+
* Set default limit for listing datasets and jobs in UI from `2000` to `25` [@wslulciuc](https://github.com/wslulciuc)
8+
59
## [0.22.0](https://github.com/MarquezProject/marquez/compare/0.21.0...0.22.0) - 2022-05-16
610

711
### Added

web/src/store/requests/datasets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { API_URL } from '../../globals'
44
import { DatasetVersions, Datasets } from '../../types/api'
55
import { genericFetchWrapper } from './index'
66

7-
export const getDatasets = async (namespace: string, limit = 2000, offset = 0) => {
7+
export const getDatasets = async (namespace: string, limit = 25, offset = 0) => {
88
const url = `${API_URL}/namespaces/${encodeURIComponent(
99
namespace
1010
)}/datasets?limit=${limit}&offset=${offset}`

web/src/store/requests/jobs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { API_URL } from '../../globals'
44
import { Jobs } from '../../types/api'
55
import { genericFetchWrapper } from './index'
66

7-
export const getJobs = async (namespace: string, limit = 2000, offset = 0) => {
7+
export const getJobs = async (namespace: string, limit = 25, offset = 0) => {
88
const url = `${API_URL}/namespaces/${encodeURIComponent(
99
namespace
1010
)}/jobs?limit=${limit}&offset=${offset}`

0 commit comments

Comments
 (0)