Commit a8c92a48 authored by Igor Drozdov's avatar Igor Drozdov

Enable json_limited_encoder ff by default

This feature flag has been enabled globally for a while

Let's enable it by default as a step to finally removing it

Changelog: added
parent 425b963a
...@@ -5,4 +5,4 @@ rollout_issue_url: ...@@ -5,4 +5,4 @@ rollout_issue_url:
milestone: '13.3' milestone: '13.3'
type: development type: development
group: group::source code group: group::source code
default_enabled: false default_enabled: true
...@@ -248,7 +248,7 @@ module Gitlab ...@@ -248,7 +248,7 @@ module Gitlab
# @return [String] # @return [String]
# @raise [LimitExceeded] if the resulting json string is bigger than the specified limit # @raise [LimitExceeded] if the resulting json string is bigger than the specified limit
def self.encode(object, limit: 25.megabytes) def self.encode(object, limit: 25.megabytes)
return ::Gitlab::Json.dump(object) unless Feature.enabled?(:json_limited_encoder) return ::Gitlab::Json.dump(object) unless Feature.enabled?(:json_limited_encoder, default_enabled: :yaml)
buffer = StringIO.new buffer = StringIO.new
buffer_size = 0 buffer_size = 0
......
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