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
4d49dff5
Commit
4d49dff5
authored
Feb 17, 2022
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up feature flag publish_project_deleted_event to enable by default
Changelog: changed
parent
84a5101e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
21 deletions
+1
-21
app/services/projects/destroy_service.rb
app/services/projects/destroy_service.rb
+1
-1
config/feature_flags/development/publish_project_deleted_event.yml
...ature_flags/development/publish_project_deleted_event.yml
+0
-8
spec/services/projects/destroy_service_spec.rb
spec/services/projects/destroy_service_spec.rb
+0
-12
No files found.
app/services/projects/destroy_service.rb
View file @
4d49dff5
...
...
@@ -37,7 +37,7 @@ module Projects
system_hook_service
.
execute_hooks_for
(
project
,
:destroy
)
log_info
(
"Project
\"
#{
project
.
full_path
}
\"
was deleted"
)
publish_project_deleted_event_for
(
project
)
if
Feature
.
enabled?
(
:publish_project_deleted_event
,
default_enabled: :yaml
)
publish_project_deleted_event_for
(
project
)
current_user
.
invalidate_personal_projects_count
...
...
config/feature_flags/development/publish_project_deleted_event.yml
deleted
100644 → 0
View file @
84a5101e
---
name
:
publish_project_deleted_event
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/78862
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/351073
milestone
:
'
14.8'
type
:
development
group
:
group::pipeline insights
default_enabled
:
false
spec/services/projects/destroy_service_spec.rb
View file @
4d49dff5
...
...
@@ -36,18 +36,6 @@ RSpec.describe Projects::DestroyService, :aggregate_failures do
destroy_project
(
project
,
user
,
{})
end
context
'when feature flag publish_project_deleted_event is disabled'
do
before
do
stub_feature_flags
(
publish_project_deleted_event:
false
)
end
it
'does not publish an event'
do
expect
(
Gitlab
::
EventStore
).
not_to
receive
(
:publish
).
with
(
event_type
(
Projects
::
ProjectDeletedEvent
))
destroy_project
(
project
,
user
,
{})
end
end
end
shared_examples
'deleting the project with pipeline and build'
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