Skip to content

Commit 7885416

Browse files
committed
Always show relationships to other execution plans
1 parent 70a07f6 commit 7885416

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

web/views/show.erb

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,16 @@
4343
<%= h(@plan.ended_at) %>
4444
</p>
4545

46-
<% if @plan.state == :scheduled && @plan.delay_record %>
47-
<% dependencies = @plan.world.persistence.find_execution_plan_dependencies(@plan.id) %>
48-
<% if dependencies.any? %>
49-
<p>
50-
<b>Waiting for execution plans:</b>
51-
<ul>
52-
<% dependencies.each do |dep_id| %>
53-
<li><a href="<%= url("/#{dep_id}") %>"><%= h(dep_id) %></a></li>
54-
<% end %>
55-
</ul>
56-
</p>
57-
<% end %>
46+
<% dependencies = @plan.world.persistence.find_execution_plan_dependencies(@plan.id) %>
47+
<% if dependencies.any? %>
48+
<p>
49+
<b>Depends on execution plans:</b>
50+
<ul>
51+
<% dependencies.each do |dep_id| %>
52+
<li><a href="<%= url("/#{dep_id}") %>"><%= h(dep_id) %></a></li>
53+
<% end %>
54+
</ul>
55+
</p>
5856
<% end %>
5957

6058
<% blocked_plans = @plan.world.persistence.find_blocked_execution_plans(@plan.id) %>

0 commit comments

Comments
 (0)