Skip to content

Extract constant for "approximately everything" page size #2459

Closed

Description

@david-crespo

Currently 1000.

$ rg 'limit: 1000'
app/api/window.ts
61:      const result = await api.methods.timeseriesSchemaList({ query: { limit: 1000 } })

app/pages/system/silos/SiloIpPoolsTab.tsx
65:    query: { limit: 1000 },
201:    query: { limit: 1000 },
203:  const allPools = useApiQuery('ipPoolList', { query: { limit: 1000 } })

app/pages/system/networking/IpPoolPage.tsx
374:    query: { limit: 1000 },
376:  const allSilos = useApiQuery('siloList', { query: { limit: 1000 } })

app/forms/firewall-rules-create.tsx
60:    apiQueryClient.prefetchQuery('instanceList', { query: { project, limit: 1000 } }),
61:    apiQueryClient.prefetchQuery('vpcList', { query: { project, limit: 1000 } }),

app/forms/disk-attach.tsx
40:  const { data } = useApiQuery('diskList', { query: { project, limit: 1000 } })
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions