Merge pull request #12278 from lafirest/fix/limit

fix(api): adjust the maximum limit of page query to 10,000
This commit is contained in:
lafirest 2024-01-10 09:42:46 +08:00 committed by GitHub
commit 3d7264c9ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
{application, emqx_dashboard, [ {application, emqx_dashboard, [
{description, "EMQX Web Dashboard"}, {description, "EMQX Web Dashboard"},
% strict semver, bump manually! % strict semver, bump manually!
{vsn, "5.0.31"}, {vsn, "5.0.32"},
{modules, []}, {modules, []},
{registered, [emqx_dashboard_sup]}, {registered, [emqx_dashboard_sup]},
{applications, [ {applications, [

View File

@ -83,7 +83,7 @@
-define(SPECIAL_LANG_MSGID, <<"$msgid">>). -define(SPECIAL_LANG_MSGID, <<"$msgid">>).
-define(MAX_ROW_LIMIT, 1000). -define(MAX_ROW_LIMIT, 10000).
-define(DEFAULT_ROW, 100). -define(DEFAULT_ROW, 100).
-type request() :: #{bindings => map(), query_string => map(), body => map()}. -type request() :: #{bindings => map(), query_string => map(), body => map()}.

View File

@ -140,13 +140,13 @@ t_public_ref(_Config) ->
ExpectRefs = [ ExpectRefs = [
#{ #{
<<"public.limit">> => #{ <<"public.limit">> => #{
description => <<"Results per page(max 1000)">>, description => <<"Results per page(max 10000)">>,
in => query, in => query,
name => limit, name => limit,
example => 50, example => 50,
schema => #{ schema => #{
default => 100, default => 100,
maximum => 1000, maximum => 10000,
minimum => 1, minimum => 1,
type => integer type => integer
} }

View File

@ -0,0 +1 @@
In the REST API, the maximum limit of page queries is adjusted to 10,000.