BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
importable.rb
app/models/concerns/importable.rb
+2
-2
issuable.rb
app/models/concerns/issuable.rb
+1
-1
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