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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
a6affc66
Commit
a6affc66
authored
Apr 03, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename skip_metrics to imported on the importable concern
parent
0b7d10fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/models/concerns/importable.rb
app/models/concerns/importable.rb
+2
-2
app/models/concerns/issuable.rb
app/models/concerns/issuable.rb
+1
-1
lib/gitlab/github_import/pull_request_formatter.rb
lib/gitlab/github_import/pull_request_formatter.rb
+1
-1
No files found.
app/models/concerns/importable.rb
View file @
a6affc66
...
...
@@ -4,6 +4,6 @@ module Importable
attr_accessor
:importing
alias_method
:importing?
,
:importing
attr_accessor
:
skip_metrics
alias_method
:
skip_metrics?
,
:skip_metrics
attr_accessor
:
imported
alias_method
:
imported?
,
:imported
end
app/models/concerns/issuable.rb
View file @
a6affc66
...
...
@@ -100,7 +100,7 @@ module Issuable
acts_as_paranoid
after_save
:update_assignee_cache_counts
,
if: :assignee_id_changed?
after_save
:record_metrics
,
unless: :
skip_metrics
?
after_save
:record_metrics
,
unless: :
imported
?
def
update_assignee_cache_counts
# make sure we flush the cache for both the old *and* new assignees(if they exist)
...
...
lib/gitlab/github_import/pull_request_formatter.rb
View file @
a6affc66
...
...
@@ -21,7 +21,7 @@ module Gitlab
assignee_id:
assignee_id
,
created_at:
raw_data
.
created_at
,
updated_at:
raw_data
.
updated_at
,
skip_metrics
:
true
imported
:
true
}
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