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
0eef8876
Commit
0eef8876
authored
Jun 01, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary has_many relations from EE::Issue
parent
4ae25fdb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
13 deletions
+0
-13
app/models/ee/issue.rb
app/models/ee/issue.rb
+0
-9
spec/lib/gitlab/import_export/all_models.yml
spec/lib/gitlab/import_export/all_models.yml
+0
-4
No files found.
app/models/ee/issue.rb
View file @
0eef8876
module
EE
module
Issue
extend
ActiveSupport
::
Concern
prepended
do
has_many
:referenced_issue_links
,
class_name:
'IssueLink'
,
foreign_key: :source_id
has_many
:referred_by_issue_links
,
class_name:
'IssueLink'
,
foreign_key: :target_id
has_many
:referenced_issues
,
through: :referenced_issue_links
,
source: :target
has_many
:referred_by_issues
,
through: :referred_by_issue_links
,
source: :source
end
# override
def
check_for_spam?
author
.
support_bot?
||
super
...
...
spec/lib/gitlab/import_export/all_models.yml
View file @
0eef8876
...
...
@@ -18,10 +18,6 @@ issues:
-
metrics
-
timelogs
-
issue_assignees
-
referenced_issue_links
-
referred_by_issue_links
-
referenced_issues
-
referred_by_issues
events
:
-
author
-
project
...
...
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