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
e39d21ae
Commit
e39d21ae
authored
Nov 09, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cache for commit status in commits list to respect branches
parent
dba65ab6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+1
-1
changelogs/unreleased/fix-cache-for-commit-status.yml
changelogs/unreleased/fix-cache-for-commit-status.yml
+4
-0
No files found.
app/views/projects/commits/_commit.html.haml
View file @
e39d21ae
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
-
note_count
=
notes
.
user
.
count
-
note_count
=
notes
.
user
.
count
-
cache_key
=
[
project
.
path_with_namespace
,
commit
.
id
,
current_application_settings
,
note_count
]
-
cache_key
=
[
project
.
path_with_namespace
,
commit
.
id
,
current_application_settings
,
note_count
]
-
cache_key
.
push
(
commit
.
status
)
if
commit
.
status
-
cache_key
.
push
(
commit
.
status
(
ref
))
if
commit
.
status
(
ref
)
=
cache
(
cache_key
,
expires_in:
1
.
day
)
do
=
cache
(
cache_key
,
expires_in:
1
.
day
)
do
%li
.commit.js-toggle-container
{
id:
"commit-#{commit.short_id}"
}
%li
.commit.js-toggle-container
{
id:
"commit-#{commit.short_id}"
}
...
...
changelogs/unreleased/fix-cache-for-commit-status.yml
0 → 100644
View file @
e39d21ae
---
title
:
Fix cache for commit status in commits list to respect branches
merge_request
:
7372
author
:
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