fix: tech-debt workaround - add limit of 100 to checks fetches to show all checks

pull/17521/head
Bucky Schwarz 2020-04-01 10:06:59 -07:00 committed by Bucky Schwarz
parent 49b69cf800
commit 0070350cad
1 changed files with 5 additions and 1 deletions

View File

@ -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)