fix: tech-debt workaround - add limit of 100 to checks fetches to show all checks
parent
49b69cf800
commit
0070350cad
|
@ -59,6 +59,8 @@ import {
|
|||
} from 'src/types'
|
||||
import {labelSchema} from 'src/schemas/labels'
|
||||
|
||||
import {LIMIT} from 'src/resources/constants'
|
||||
|
||||
export const getChecks = () => async (
|
||||
dispatch: Dispatch<
|
||||
Action | NotificationAction | ReturnType<typeof checkChecksLimits>
|
||||
|
@ -72,7 +74,9 @@ export const getChecks = () => async (
|
|||
}
|
||||
const {id: orgID} = getOrg(state)
|
||||
|
||||
const resp = await api.getChecks({query: {orgID}})
|
||||
// bump the limit up to the max. see idpe 6592
|
||||
// TODO: https://github.com/influxdata/influxdb/issues/17541
|
||||
const resp = await api.getChecks({query: {orgID, limit: LIMIT}})
|
||||
|
||||
if (resp.status !== 200) {
|
||||
throw new Error(resp.data.message)
|
||||
|
|
Loading…
Reference in New Issue