Paginate measures 500 by 500 instead of 100 by 100
Increase MaxCursorSize from 100 to 500 to allow larger page sizes, and set the measures list frontend query to fetch 500 items per page by default. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -100,7 +100,7 @@ const measuresPageFragment = graphql`
|
||||
fragment MeasuresPageFragment on Organization
|
||||
@refetchable(queryName: "MeasuresPageRefetchQuery")
|
||||
@argumentDefinitions(
|
||||
first: { type: "Int", defaultValue: 20 }
|
||||
first: { type: "Int", defaultValue: 500 }
|
||||
after: { type: "CursorKey" }
|
||||
query: { type: "String", defaultValue: null }
|
||||
state: { type: "MeasureState", defaultValue: null }
|
||||
|
||||
@@ -36,7 +36,7 @@ type (
|
||||
|
||||
const (
|
||||
DefaultCursorSize = 25
|
||||
MaxCursorSize = 100
|
||||
MaxCursorSize = 500
|
||||
|
||||
Tail Position = "TAIL"
|
||||
Head Position = "HEAD"
|
||||
|
||||
Reference in New Issue
Block a user