Commit 15be3597 authored by Tetiana Chupryna's avatar Tetiana Chupryna

Merge branch 'sliding-list-partitioning-cleanup' into 'master'

Fix formatting issues in sliding list partitioning

See merge request gitlab-org/gitlab!75541
parents 63f41d6e 6bdd33e4
...@@ -73,6 +73,7 @@ module Gitlab ...@@ -73,6 +73,7 @@ module Gitlab
partition_name: partition.partition_name, partition_name: partition.partition_name,
table_name: partition.table) table_name: partition.table)
end end
model.partitioning_strategy.after_adding_partitions model.partitioning_strategy.after_adding_partitions
end end
end end
......
...@@ -37,8 +37,8 @@ RSpec.describe Gitlab::Database::Partitioning::SlidingListStrategy do ...@@ -37,8 +37,8 @@ RSpec.describe Gitlab::Database::Partitioning::SlidingListStrategy do
describe '#current_partitions' do describe '#current_partitions' do
it 'detects both partitions' do it 'detects both partitions' do
expect(strategy.current_partitions).to eq([ expect(strategy.current_partitions).to eq([
Gitlab::Database::Partitioning::SingleNumericListPartition.new(table_name, 1, partition_name: '_test_partitioned_test_1'), Gitlab::Database::Partitioning::SingleNumericListPartition.new(table_name, 1, partition_name: '_test_partitioned_test_1'),
Gitlab::Database::Partitioning::SingleNumericListPartition.new(table_name, 2, partition_name: '_test_partitioned_test_2') Gitlab::Database::Partitioning::SingleNumericListPartition.new(table_name, 2, partition_name: '_test_partitioned_test_2')
]) ])
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment