Skip to content

Commit

Permalink
Include virtual host limits and metadata in definitions exported from…
Browse files Browse the repository at this point in the history
… the management UI
  • Loading branch information
anhanhnguyen committed Jun 7, 2024
1 parent c592405 commit 1223aae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions deps/rabbit/src/rabbit_vhost.erl
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ i(cluster_state, VHost) -> vhost_cluster_state(vhost:get_name(VHost));
i(description, VHost) -> vhost:get_description(VHost);
i(tags, VHost) -> vhost:get_tags(VHost);
i(default_queue_type, VHost) -> vhost:get_default_queue_type(VHost);
i(limits, VHost) -> vhost:get_limits(VHost);
i(metadata, VHost) -> vhost:get_metadata(VHost);
i(Item, VHost) ->
rabbit_log:error("Don't know how to compute a virtual host info item '~ts' for virtual host '~tp'", [Item, VHost]),
Expand Down
1 change: 1 addition & 0 deletions deps/rabbit/src/vhost.erl
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ info_keys() ->
description,
tags,
default_queue_type,
limits,
metadata,
tracing,
cluster_state].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export_name(_Name) -> true.

rw_state() ->
[{users, [name, password_hash, hashing_algorithm, tags, limits]},
{vhosts, [name]},
{vhosts, [name, limits, metadata]},
{permissions, [user, vhost, configure, write, read]},
{topic_permissions, [user, vhost, exchange, write, read]},
{parameters, [vhost, component, name, value]},
Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_management/src/rabbit_mgmt_wm_vhosts.erl
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ augmented(ReqData, #context{user = User}) ->
end.

basic() ->
rabbit_vhost:info_all([name]).
rabbit_vhost:info_all().

0 comments on commit 1223aae

Please sign in to comment.