Merge pull request #1507 from jbargu/jg_sci_2930_navigation_changed

Add action_name to sidebar cache as dependency [SCI-2930]
This commit is contained in:
Jure Grabnar 2019-02-22 10:04:57 +01:00 committed by GitHub
commit fb533eb9d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@
data-current-task="<%= current_task&.id %>">
<div class="tree">
<ul>
<% cache [current_user, current_team] do %>
<% cache [action_name, current_user, current_team] do %>
<%= render partial: 'shared/sidebar/projects' %>
<% end %>
</ul>

View file

@ -1,7 +1,7 @@
<% if project.active_experiments.present? %>
<ul>
<% project.active_experiments.each do |experiment| %>
<% cache [current_user, experiment] do %>
<% cache [action_name, current_user, experiment] do %>
<li data-parent="candidate" data-experiment-id="<%= experiment.id %>">
<span class="tree-link line-wrap first-indent">
<i class="no-arrow"></i>

View file

@ -1,6 +1,6 @@
<ul>
<% @projects_tree.each do |project| %>
<% cache [current_user, project] do %>
<% cache [action_name, current_user, project] do %>
<li data-parent="candidate" data-project-id="<%= project.id %>">
<span class="tree-link line-wrap no-indent">
<i class="no-arrow"></i>