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
c7c35f39
Commit
c7c35f39
authored
Feb 01, 2021
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable housekeeping for project and group wiki repos
parent
41f7a751
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
19 deletions
+6
-19
app/services/git/wiki_push_service.rb
app/services/git/wiki_push_service.rb
+1
-1
changelogs/unreleased/299343-fj-enable-housekeeping-for-wikis.yml
...gs/unreleased/299343-fj-enable-housekeeping-for-wikis.yml
+5
-0
config/feature_flags/development/wiki_housekeeping.yml
config/feature_flags/development/wiki_housekeeping.yml
+0
-8
spec/services/git/wiki_push_service_spec.rb
spec/services/git/wiki_push_service_spec.rb
+0
-10
No files found.
app/services/git/wiki_push_service.rb
View file @
c7c35f39
...
@@ -16,7 +16,7 @@ module Git
...
@@ -16,7 +16,7 @@ module Git
wiki
.
after_post_receive
wiki
.
after_post_receive
process_changes
process_changes
perform_housekeeping
if
Feature
.
enabled?
(
:wiki_housekeeping
,
wiki
.
container
)
perform_housekeeping
end
end
private
private
...
...
changelogs/unreleased/299343-fj-enable-housekeeping-for-wikis.yml
0 → 100644
View file @
c7c35f39
---
title
:
Enable housekeeping for project and group wiki repos
merge_request
:
53011
author
:
type
:
added
config/feature_flags/development/wiki_housekeeping.yml
deleted
100644 → 0
View file @
41f7a751
---
name
:
wiki_housekeeping
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/51576
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/299343
milestone
:
'
13.9'
type
:
development
group
:
group::editor
default_enabled
:
false
spec/services/git/wiki_push_service_spec.rb
View file @
c7c35f39
...
@@ -288,16 +288,6 @@ RSpec.describe Git::WikiPushService, services: true do
...
@@ -288,16 +288,6 @@ RSpec.describe Git::WikiPushService, services: true do
expect
{
subject
}.
not_to
raise_error
expect
{
subject
}.
not_to
raise_error
end
end
context
'when feature flag :wiki_housekeeping is disabled'
do
it
'does not perform housekeeping'
do
stub_feature_flags
(
wiki_housekeeping:
false
)
expect
(
housekeeping
).
not_to
receive
(
:execute
)
subject
end
end
end
end
it
'increments the push counter'
do
it
'increments the push counter'
do
...
...
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