Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
duniter-gva
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
modules
duniter-gva
Commits
7719d3db
Commit
7719d3db
authored
1 year ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
feat: increase MAX_PAGE_SIZE to 10000
parent
c8d178fd
No related branches found
No related tags found
1 merge request
!6
Increase values of antispam
Pipeline
#33219
waiting for manual action
Stage: tests
Stage: quality
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
gql/src/pagination.rs
+2
-2
2 additions, 2 deletions
gql/src/pagination.rs
with
2 additions
and
2 deletions
gql/src/pagination.rs
+
2
−
2
View file @
7719d3db
...
...
@@ -17,7 +17,7 @@ use std::str::FromStr;
use
crate
::
*
;
const
MAX_PAGE_SIZE
:
u32
=
1_000
;
const
MAX_PAGE_SIZE
:
u32
=
1
0
_000
;
#[derive(Clone,
Copy,
async_graphql::Enum,
Eq,
PartialEq)]
pub
(
crate
)
enum
Order
{
...
...
@@ -62,7 +62,7 @@ impl Pagination {
{
NonZeroUsize
::
new
(
self
.page_size
as
usize
)
}
else
{
return
Err
(
anyhow
::
Error
::
msg
(
"pageSize must be between 1 and 1000."
));
return
Err
(
anyhow
::
Error
::
msg
(
"pageSize must be between 1 and 1000
0
."
));
};
Ok
(
duniter_gva_dbs_reader
::
PageInfo
::
new
(
self
.cursor
.map
(|
c
|
T
::
from_str
(
&
c
))
.transpose
()
?
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment