Skip to content
Snippets Groups Projects

Update epic cache counts on project/group deletion

Merged Jan Provaznik requested to merge jp-cached-issue-weight-worker2 into master
All threads resolved!
Compare and Show latest version
2 files
+ 6
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -342,8 +342,6 @@ def search(query)
@@ -342,8 +342,6 @@ def search(query)
end
end
def ids_for_base_and_decendants(epic_ids)
def ids_for_base_and_decendants(epic_ids)
return self.class.none unless parent_id
::Gitlab::ObjectHierarchy.new(self.id_in(epic_ids)).base_and_descendants.pluck(:id)
::Gitlab::ObjectHierarchy.new(self.id_in(epic_ids)).base_and_descendants.pluck(:id)
end
end
@@ -559,6 +557,8 @@ def level_depth_exceeded?(parent_epic)
@@ -559,6 +557,8 @@ def level_depth_exceeded?(parent_epic)
private :level_depth_exceeded?
private :level_depth_exceeded?
def base_and_ancestors
def base_and_ancestors
 
return self.class.none unless parent_id
 
hierarchy.base_and_ancestors(hierarchy_order: :asc)
hierarchy.base_and_ancestors(hierarchy_order: :asc)
end
end
Loading