Commit 0d27ab60 authored by Enrique Alcantara's avatar Enrique Alcantara Committed by Roy Zwambag

Defer wiki rendering

Load a Wiki Page’s content using an
asynchronous HTTP request to avoid
page timeouts. This page is behind a
feature flag
parent 0e060c73
...@@ -15,10 +15,10 @@ module Gitlab ...@@ -15,10 +15,10 @@ module Gitlab
@block = block @block = block
end end
def method_missing(name, *args, &block) def method_missing(name, *args, **kwargs, &block)
__evaluate__ __evaluate__
@result.__send__(name, *args, &block) # rubocop:disable GitlabSecurity/PublicSend @result.__send__(name, *args, **kwargs, &block) # rubocop:disable GitlabSecurity/PublicSend
end end
def respond_to_missing?(name, include_private = false) def respond_to_missing?(name, include_private = false)
......
...@@ -56,11 +56,8 @@ module DeprecationToolkitEnv ...@@ -56,11 +56,8 @@ module DeprecationToolkitEnv
# In this case, we recommend to add a silence together with an issue to patch or update # In this case, we recommend to add a silence together with an issue to patch or update
# the dependency causing the problem. # the dependency causing the problem.
# See https://gitlab.com/gitlab-org/gitlab/-/commit/aea37f506bbe036378998916d374966c031bf347#note_647515736 # See https://gitlab.com/gitlab-org/gitlab/-/commit/aea37f506bbe036378998916d374966c031bf347#note_647515736
#
# - lib/gitlab/lazy.rb: https://gitlab.com/gitlab-org/gitlab/-/issues/356367
def self.allowed_kwarg_warning_paths def self.allowed_kwarg_warning_paths
%w[ %w[
lib/gitlab/lazy.rb
] ]
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