lib/karafka/web/ui/pro/views/health/overview.erb in karafka-web-0.7.10 vs lib/karafka/web/ui/pro/views/health/overview.erb in karafka-web-0.8.0.rc1
- old
+ new
@@ -23,32 +23,32 @@
</div>
</div>
<div class="row mb-3">
<div class="col-sm-12">
- <% topics = details[:topics].sort_by(&:first) %>
+ <% topics = details[:topics] %>
<% topics.each_with_index do |(topic_name, partitions), index| %>
<table class="processes bg-white table table-hover table-bordered table-striped align-middle <%= (index+1 < topics.size) ? 'mb-5' : 'mb-3' %>">
<thead>
<tr class="align-middle">
<th colspan="100">
<h5 class="mb-0"><%= topic_name %></h4>
</th>
</tr>
<tr class="align-middle">
- <th>Partition</th>
- <th>Lag stored</th>
- <th>Lag stored trend</th>
- <th>Committed offset</th>
- <th>Stored offset</th>
- <th>Fetch state</th>
- <th>Poll state</th>
- <th>LSO state</th>
- <th>Process name</th>
+ <th><%== sort_link('Partition', :id) %></th>
+ <th><%== sort_link(:lag_stored) %></th>
+ <th><%== sort_link('Lag stored trend', :lag_stored_d) %></th>
+ <th><%== sort_link(:committed_offset) %></th>
+ <th><%== sort_link(:stored_offset) %></th>
+ <th><%== sort_link(:fetch_state) %></th>
+ <th><%== sort_link(:poll_state) %></th>
+ <th><%== sort_link('LSO state', :lso_risk_state) %></th>
+ <th><%== sort_link('Process name', :name) %></th>
</tr>
</thead>
<tbody>
- <% partitions.sort_by(&:first).each do |partition_id, details| %>
+ <% partitions.each do |partition_id, details| %>
<%==
partial(
'health/partition',
locals: {
topic_name: topic_name,