Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e67a069a
Commit
e67a069a
authored
Sep 06, 2021
by
David Kim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release cached merge_request show.json
Changelog: performance
parent
2532aaa0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+1
-1
config/feature_flags/development/merge_request_show_render_cached.yml
...re_flags/development/merge_request_show_render_cached.yml
+0
-8
No files found.
app/controllers/projects/merge_requests_controller.rb
View file @
e67a069a
...
...
@@ -132,7 +132,7 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo
format
.
json
do
Gitlab
::
PollingInterval
.
set_header
(
response
,
interval:
10_000
)
if
params
[
:serializer
]
==
'sidebar_extras'
&&
Feature
.
enabled?
(
:merge_request_show_render_cached
,
@project
,
default_enabled: :yaml
)
if
params
[
:serializer
]
==
'sidebar_extras'
cache_context
=
[
params
[
:serializer
],
current_user
&
.
cache_key
,
...
...
config/feature_flags/development/merge_request_show_render_cached.yml
deleted
100644 → 0
View file @
2532aaa0
---
name
:
merge_request_show_render_cached
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65217
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/335938
milestone
:
'
14.2'
type
:
development
group
:
group::code review
default_enabled
:
false
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment