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
9209166c
Commit
9209166c
authored
Dec 14, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
700d63a9
4f10493b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
6 deletions
+16
-6
app/services/labels/promote_service.rb
app/services/labels/promote_service.rb
+4
-4
changelogs/unreleased/deprecated-delete-all-params.yml
changelogs/unreleased/deprecated-delete-all-params.yml
+5
-0
changelogs/unreleased/deprecated-passing-activerecord-objects.yml
...gs/unreleased/deprecated-passing-activerecord-objects.yml
+5
-0
lib/api/commit_statuses.rb
lib/api/commit_statuses.rb
+1
-1
spec/models/merge_request_diff_spec.rb
spec/models/merge_request_diff_spec.rb
+1
-1
No files found.
app/services/labels/promote_service.rb
View file @
9209166c
...
...
@@ -57,7 +57,7 @@ module Labels
def
update_issuables
(
new_label
,
label_ids
)
LabelLink
.
where
(
label:
label_ids
)
.
update_all
(
label_id:
new_label
)
.
update_all
(
label_id:
new_label
.
id
)
end
# rubocop: enable CodeReuse/ActiveRecord
...
...
@@ -65,7 +65,7 @@ module Labels
def
update_resource_label_events
(
new_label
,
label_ids
)
ResourceLabelEvent
.
where
(
label:
label_ids
)
.
update_all
(
label_id:
new_label
)
.
update_all
(
label_id:
new_label
.
id
)
end
# rubocop: enable CodeReuse/ActiveRecord
...
...
@@ -73,7 +73,7 @@ module Labels
def
update_issue_board_lists
(
new_label
,
label_ids
)
List
.
where
(
label:
label_ids
)
.
update_all
(
label_id:
new_label
)
.
update_all
(
label_id:
new_label
.
id
)
end
# rubocop: enable CodeReuse/ActiveRecord
...
...
@@ -81,7 +81,7 @@ module Labels
def
update_priorities
(
new_label
,
label_ids
)
LabelPriority
.
where
(
label:
label_ids
)
.
update_all
(
label_id:
new_label
)
.
update_all
(
label_id:
new_label
.
id
)
end
# rubocop: enable CodeReuse/ActiveRecord
...
...
changelogs/unreleased/deprecated-delete-all-params.yml
0 → 100644
View file @
9209166c
---
title
:
'
Fix
deprecation:
Passing
conditions
to
delete_all
is
deprecated'
merge_request
:
23817
author
:
Jasper Maes
type
:
other
changelogs/unreleased/deprecated-passing-activerecord-objects.yml
0 → 100644
View file @
9209166c
---
title
:
'
Fix
deprecation:
Passing
ActiveRecord::Base
objects
to
sanitize_sql_hash_for_assignment'
merge_request
:
23818
author
:
Jasper Maes
type
:
other
lib/api/commit_statuses.rb
View file @
9209166c
...
...
@@ -116,7 +116,7 @@ module API
end
MergeRequest
.
where
(
source_project:
@project
,
source_branch:
ref
)
.
update_all
(
head_pipeline_id:
pipeline
)
if
pipeline
.
latest?
.
update_all
(
head_pipeline_id:
pipeline
.
id
)
if
pipeline
.
latest?
present
status
,
with:
Entities
::
CommitStatus
rescue
StateMachines
::
InvalidTransition
=>
e
...
...
spec/models/merge_request_diff_spec.rb
View file @
9209166c
...
...
@@ -105,7 +105,7 @@ describe MergeRequestDiff do
context
'when the raw diffs are empty'
do
before
do
MergeRequestDiffFile
.
delete_all
(
merge_request_diff_id:
diff_with_commits
.
id
)
MergeRequestDiffFile
.
where
(
merge_request_diff_id:
diff_with_commits
.
id
).
delete_all
end
it
'returns an empty DiffCollection'
do
...
...
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