chore: bump version && update changes
This commit is contained in:
parent
c180325e0a
commit
23e9ed763e
|
@ -2,7 +2,7 @@
|
|||
{application, emqx_retainer, [
|
||||
{description, "EMQX Retainer"},
|
||||
% strict semver, bump manually!
|
||||
{vsn, "5.0.19"},
|
||||
{vsn, "5.0.20"},
|
||||
{modules, []},
|
||||
{registered, [emqx_retainer_sup]},
|
||||
{applications, [kernel, stdlib, emqx, emqx_ctl]},
|
||||
|
|
|
@ -181,7 +181,6 @@ lookup_retained(get, #{query_string := Qs}) ->
|
|||
Page = maps:get(<<"page">>, Qs, 1),
|
||||
Limit = maps:get(<<"limit">>, Qs, emqx_mgmt:default_row_limit()),
|
||||
Topic = maps:get(<<"topic">>, Qs, undefined),
|
||||
ct:print("Qs:~p~n", [Qs]),
|
||||
{ok, Msgs} = emqx_retainer_mnesia:page_read(undefined, Topic, Page, Limit),
|
||||
{200, #{
|
||||
data => [format_message(Msg) || Msg <- Msgs],
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Added a new endpoint `DELETE /retainer/messages` to `retain` API to clean all retained messages
|
||||
|
||||
Also added an optional topic filter in the query string for the endpoint "GET /retainer/messages", e.g. "topic=t/1".
|
|
@ -33,7 +33,7 @@ delete_messages.label:
|
|||
"""Delete Retained Messages"""
|
||||
|
||||
lookup_api.desc:
|
||||
"""Lookup a message by a topic without wildcards, ."""
|
||||
"""Lookup a message by a topic without wildcards."""
|
||||
lookup_api.label:
|
||||
"""Lookup a message"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue