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
f2eb8558
Commit
f2eb8558
authored
Jul 16, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Project#cleanup_chat_names method
parent
490145d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
app/models/project.rb
app/models/project.rb
+0
-12
No files found.
app/models/project.rb
View file @
f2eb8558
...
...
@@ -109,7 +109,6 @@ class Project < ApplicationRecord
after_update
:update_forks_visibility_level
before_destroy
:remove_private_deploy_keys
before_destroy
:cleanup_chat_names
use_fast_destroy
:build_trace_chunks
...
...
@@ -1941,17 +1940,6 @@ class Project < ApplicationRecord
import_export_upload
&
.
export_file
end
# Before 12.9 we did not correctly clean up chat names and this causes issues.
# In 12.9, we add a foreign key relationship, but this code is used ensure the chat names are cleaned up while a post
# migration enables the foreign key relationship.
#
# This should be removed in 13.0.
#
# https://gitlab.com/gitlab-org/gitlab/issues/204787
def
cleanup_chat_names
ChatName
.
where
(
service:
services
.
select
(
:id
)).
delete_all
end
def
full_path_slug
Gitlab
::
Utils
.
slugify
(
full_path
.
to_s
)
end
...
...
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