Skip to content

Commit

Permalink
Merge pull request #12278 from lafirest/fix/limit
Browse files Browse the repository at this point in the history
fix(api): adjust the maximum limit of page query to 10,000
  • Loading branch information
lafirest committed Jan 10, 2024
2 parents adcda51 + 4e046ea commit 3d7264c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/emqx_dashboard/src/emqx_dashboard.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{application, emqx_dashboard, [
{description, "EMQX Web Dashboard"},
% strict semver, bump manually!
{vsn, "5.0.31"},
{vsn, "5.0.32"},
{modules, []},
{registered, [emqx_dashboard_sup]},
{applications, [
Expand Down
2 changes: 1 addition & 1 deletion apps/emqx_dashboard/src/emqx_dashboard_swagger.erl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

-define(SPECIAL_LANG_MSGID, <<"$msgid">>).

-define(MAX_ROW_LIMIT, 1000).
-define(MAX_ROW_LIMIT, 10000).
-define(DEFAULT_ROW, 100).

-type request() :: #{bindings => map(), query_string => map(), body => map()}.
Expand Down
4 changes: 2 additions & 2 deletions apps/emqx_dashboard/test/emqx_swagger_parameter_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ t_public_ref(_Config) ->
ExpectRefs = [
#{
<<"public.limit">> => #{
description => <<"Results per page(max 1000)">>,
description => <<"Results per page(max 10000)">>,
in => query,
name => limit,
example => 50,
schema => #{
default => 100,
maximum => 1000,
maximum => 10000,
minimum => 1,
type => integer
}
Expand Down
1 change: 1 addition & 0 deletions changes/ce/feat-12278.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In the REST API, the maximum limit of page queries is adjusted to 10,000.

0 comments on commit 3d7264c

Please sign in to comment.