Skip to content

Commit

Permalink
Reduce UI limit for list datasets jobs in UI (#2018)
Browse files Browse the repository at this point in the history
* Set list limit for datasets and jobs to 25 by default

Signed-off-by: wslulciuc <[email protected]>

* Update changelog

Signed-off-by: wslulciuc <[email protected]>
  • Loading branch information
wslulciuc authored Jun 14, 2022
1 parent c53f66c commit 48f4a60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion web/src/store/requests/datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down
2 changes: 1 addition & 1 deletion web/src/store/requests/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 48f4a60

Please sign in to comment.