Commit da47ce00 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Revert changes in pipeline quota size

parent 0ba6841b
...@@ -18,21 +18,20 @@ module EE ...@@ -18,21 +18,20 @@ module EE
def exceeded? def exceeded?
return false unless enabled? return false unless enabled?
excessive_pipeline_size > 0 excessive_seeds_count > 0
end end
def message def message
return unless exceeded? return unless exceeded?
'Pipeline size limit exceeded by ' \ 'Pipeline size limit exceeded by ' \
"#{pluralize(excessive_pipeline_size, 'job')}!" "#{pluralize(excessive_seeds_count, 'job')}!"
end end
private private
def excessive_pipeline_size def excessive_seeds_count
TODO fix size quota @excessive ||= @pipeline.seeds_size - @namespace.max_pipeline_size
@excessive ||= @pipeline.builds.size - @namespace.max_pipeline_size
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment