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
6f3568ef
Commit
6f3568ef
authored
Oct 03, 2019
by
Aleksei Lipniagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop failures
parent
7749eabc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
app/models/concerns/atomic_internal_id.rb
app/models/concerns/atomic_internal_id.rb
+2
-3
spec/models/concerns/atomic_internal_id_spec.rb
spec/models/concerns/atomic_internal_id_spec.rb
+1
-1
No files found.
app/models/concerns/atomic_internal_id.rb
View file @
6f3568ef
...
...
@@ -57,9 +57,8 @@ module AtomicInternalId
end
define_method
(
"track_
#{
scope
}
_
#{
column
}
!"
)
do
if
!
@internal_id_needs_tracking
return
unless
Feature
.
enabled?
(
:iid_always_track
,
default_enabled:
true
)
end
iid_always_track
=
Feature
.
enabled?
(
:iid_always_track
,
default_enabled:
true
)
return
unless
@internal_id_needs_tracking
||
iid_always_track
@internal_id_needs_tracking
=
false
...
...
spec/models/concerns/atomic_internal_id_spec.rb
View file @
6f3568ef
...
...
@@ -27,7 +27,7 @@ describe AtomicInternalId do
stub_feature_flags
(
iid_always_track:
false
)
end
it
'does not track the value'
do
it
'does not track the value'
do
expect
(
InternalId
).
not_to
receive
(
:track_greatest
)
milestone
.
ensure_project_iid!
...
...
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