Skip to content
Snippets Groups Projects
Commit a6e43057 authored by Mark Lapierre's avatar Mark Lapierre Committed by Sanad Liaquat
Browse files

Move EE code to EE file

Delayed group deletion is a paid feature so this moves the code
involved to ee/resource/group_base.rb
parent 4e6d3c47
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -43,6 +43,24 @@ module QA
def api_iterations_path
"#{api_get_path}/iterations"
end
# Check if the group has already been scheduled to be deleted
#
# @return [Boolean]
def marked_for_deletion?
reload!.api_response[:marked_for_deletion_on].present?
end
# Remove the group unless it's already scheduled for deletion.
def remove_via_api!
if marked_for_deletion?
QA::Runtime::Logger.debug("#{self.class.name} #{identifier} is already scheduled to be removed.")
return
end
super
end
end
end
end
Loading
Loading
Loading
Loading
@@ -64,10 +64,6 @@ module QA
end
end
 
def marked_for_deletion?
reload!.api_response[:marked_for_deletion_on].present?
end
# Get group badges
#
# @return [Array<QA::Resource::GroupBadge>]
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment