[Issue #16] - Finished updating Test controller routes that used to reference Benchmarks
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine
2025-10-09 15:43:53 -04:00
parent b19c95187b
commit 2884b94b7f
7 changed files with 24 additions and 17 deletions

View File

@@ -28,8 +28,10 @@
<label for="test_benchmarks">Benchmarks</label>
<select id="test_benchmarks" class="form-select" name="test_benchmarks[]" multiple>
<% for b in benchmarks %>
<option value="<%= b.id %>"><%= b.name %></option>
<% for bp in b.benchmark_profiles %>
<option value="<%= bp.id %>"><%= b.display_name() %></option>
<% end %>
<% end %>
</select>
</div>

View File

@@ -28,8 +28,10 @@
<label for="test_benchmarks">Benchmarks</label>
<select id="test_benchmarks" class="form-select" name="test_benchmarks[]" multiple>
<% for b in benchmarks %>
<option value="<%= b.id %>" <% if test.benchmark?(b.id) %>selected<% end %>><%= b.name %></option>
<% for bp in b.benchmark_profiles %>
<option value="<%= bp.id %>" <% if test.benchmark?(bp.id) %>selected<% end %>><%= bp.display_name %></option>
<% end %>
<% end %>
</select>
</div>

View File

@@ -26,7 +26,7 @@
<% tests.each do |t| %>
<tr>
<td><a href="/test/<%= t.id %>"><%= t.name %></a></td>
<td><%= t.benchmarks.length %></td>
<td><%= t.benchmark_profiles.length %></td>
<td><%= date_format(t.created_at) %></td>
<td><%= date_format(t.updated_at) %></td>
</tr>

View File

@@ -28,8 +28,8 @@
<div class="col-12 col-md-5 mb-3 mb-md-0">
<label for="result_benchmark">Add benchmark result:</label>
<select class="form-select" id="result_benchmark" name="result_benchmark">
<% test.benchmarks.each do |b| %>
<option value="<%= b.id %>"><%= b.name %></option>
<% test.benchmark_profiles.each do |b| %>
<option value="<%= b.id %>"><%= b.display_name %></option>
<% end %>
</select>
</div>
@@ -71,7 +71,7 @@
</tr>
</thead>
<tbody>
<% test.benchmarks.each do |benchmark| %>
<% test.benchmark_profiles.each do |benchmark| %>
<tr data-benchmark-id="<%= benchmark.id %>"></tr>
<% end %>
</tbody>