Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show consumer count column on Mgmt UI Channels page #13198

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deps/rabbitmq_management/priv/www/js/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ var ALL_COLUMNS =
['mode', 'Mode', true],
['state', 'State', true]],
'Details': [['msgs-unconfirmed', 'Unconfirmed', true],
['consumer-count', 'Consumer count', false],
['prefetch', 'Prefetch', true],
['msgs-unacked', 'Unacked', true]],
'Transactions': [['msgs-uncommitted', 'Msgs uncommitted', false],
Expand Down
9 changes: 9 additions & 0 deletions deps/rabbitmq_management/priv/www/js/tmpl/channels-list.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
<% if (show_column('channels', 'msgs-unconfirmed')) { %>
<th><%= fmt_sort('Unconfirmed', 'messages_unconfirmed') %></th>
<% } %>
<% if (show_column('channels', 'consumer-count')) { %>
<th><%= fmt_sort('Consumer count', 'consumer_count') %></th>
<% } %>
<% if (show_column('channels', 'prefetch')) { %>
<th>Prefetch <span class="help" id="channel-prefetch"></span></th>
<% } %>
Expand Down Expand Up @@ -85,6 +88,9 @@
<% if (show_column('channels', 'msgs-unconfirmed')) { %>
<th>Unconfirmed</th>
<% } %>
<% if (show_column('channels', 'consumer-count')) { %>
<th>Consumer count</th>
<% } %>
<% if (show_column('channels', 'prefetch')) { %>
<th>Prefetch <span class="help" id="channel-prefetch"></span></th>
<% } %>
Expand Down Expand Up @@ -152,6 +158,9 @@
<% if (show_column('channels', 'msgs-unconfirmed')) { %>
<td class="c"><%= channel.messages_unconfirmed %></td>
<% } %>
<% if (show_column('channels', 'consumer-count')) { %>
<td class="c"><%= channel.consumer_count %></td>
<% } %>
<% if (show_column('channels', 'prefetch')) { %>
<td class="c">
<% if (channel.prefetch_count != 0) { %>
Expand Down
Loading