Skip to content

Commit

Permalink
services: explicitly set max results to 10,000 for admin user search
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Dec 12, 2024
1 parent 924bfac commit 2262cc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invenio_users_resources/services/users/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2022 TU Wien.
# Copyright (C) 2022-2024 CERN.
# Copyright (C) 2022 CERN.
# Copyright (C) 2024 KTH Royal Institute of Technology.
#
# Invenio-Users-Resources is free software; you can redistribute it and/or
Expand Down Expand Up @@ -97,6 +97,7 @@ class AdminUserSearchOptions(UserSearchOptions):

pagination_options = {
"default_results_per_page": 20,
"default_max_results": 10_000,
}

query_parser_cls = QueryParser.factory(
Expand Down

0 comments on commit 2262cc9

Please sign in to comment.