chore: bump version && update changes

This commit is contained in:
firest 2024-01-08 20:02:47 +08:00
parent c180325e0a
commit 23e9ed763e
4 changed files with 5 additions and 3 deletions

View File

@ -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]},

View File

@ -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],

View File

@ -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".

View File

@ -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"""