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
fbf8dd3e
Commit
fbf8dd3e
authored
Nov 20, 2019
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more column ignores
parent
112343b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
app/models/issue.rb
app/models/issue.rb
+2
-2
app/models/merge_request.rb
app/models/merge_request.rb
+2
-2
app/models/project_ci_cd_setting.rb
app/models/project_ci_cd_setting.rb
+3
-2
No files found.
app/models/issue.rb
View file @
fbf8dd3e
...
...
@@ -14,6 +14,7 @@ class Issue < ApplicationRecord
include
TimeTrackable
include
ThrottledTouch
include
LabelEventable
include
IgnorableColumns
DueDateStruct
=
Struct
.
new
(
:title
,
:name
).
freeze
NoDueDate
=
DueDateStruct
.
new
(
'No Due Date'
,
'0'
).
freeze
...
...
@@ -68,8 +69,7 @@ class Issue < ApplicationRecord
scope
:counts_by_state
,
->
{
reorder
(
nil
).
group
(
:state_id
).
count
}
# Only remove after 2019-12-22 and with %12.7
self
.
ignored_columns
+=
%i[state]
ignore_column
:state
,
remove_with:
'12.7'
,
remove_after:
'2019-12-22'
after_commit
:expire_etag_cache
after_save
:ensure_metrics
,
unless: :imported?
...
...
app/models/merge_request.rb
View file @
fbf8dd3e
...
...
@@ -17,6 +17,7 @@ class MergeRequest < ApplicationRecord
include
FromUnion
include
DeprecatedAssignee
include
ShaAttribute
include
IgnorableColumns
sha_attribute
:squash_commit_sha
...
...
@@ -231,8 +232,7 @@ class MergeRequest < ApplicationRecord
with_state
(
:opened
).
where
(
auto_merge_enabled:
true
)
end
# Only remove after 2019-12-22 and with %12.7
self
.
ignored_columns
+=
%i[state]
ignore_column
:state
,
remove_with:
'12.7'
,
remove_after:
'2019-12-22'
after_save
:keep_around_commit
...
...
app/models/project_ci_cd_setting.rb
View file @
fbf8dd3e
# frozen_string_literal: true
class
ProjectCiCdSetting
<
ApplicationRecord
# TODO: remove once GitLab 12.7 is released
include
IgnorableColumns
# https://gitlab.com/gitlab-org/gitlab/issues/36651
self
.
ignored_columns
+=
%i[merge_trains_enabled]
ignore_column
:merge_trains_enabled
,
remove_with:
'12.7'
,
remove_after:
'2019-12-22'
belongs_to
:project
,
inverse_of: :ci_cd_settings
# The version of the schema that first introduced this model/table.
...
...
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