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
b0383933
Commit
b0383933
authored
Feb 22, 2021
by
Dmitry Gruzd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore unused columns at elastic_reindexing_tasks
parent
d5341588
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ee/app/models/elastic/reindexing_task.rb
ee/app/models/elastic/reindexing_task.rb
+4
-0
ee/spec/factories/elastic/reindexing_tasks.rb
ee/spec/factories/elastic/reindexing_tasks.rb
+0
-2
No files found.
ee/app/models/elastic/reindexing_task.rb
View file @
b0383933
# frozen_string_literal: true
class
Elastic::ReindexingTask
<
ApplicationRecord
include
IgnorableColumns
self
.
table_name
=
'elastic_reindexing_tasks'
ignore_columns
%i[documents_count index_name_from index_name_to elastic_task documents_count_target]
,
remove_with:
'14.0'
,
remove_after:
'2021-04-22'
has_many
:subtasks
,
class_name:
'Elastic::ReindexingSubtask'
,
foreign_key: :elastic_reindexing_task_id
enum
state:
{
...
...
ee/spec/factories/elastic/reindexing_tasks.rb
View file @
b0383933
...
...
@@ -4,8 +4,6 @@ FactoryBot.define do
factory
:elastic_reindexing_task
,
class:
'Elastic::ReindexingTask'
do
state
{
:initial
}
in_progress
{
true
}
index_name_from
{
'old_index_name'
}
index_name_to
{
'new_index_name'
}
trait
:with_subtask
do
after
(
:create
)
do
|
task
|
...
...
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