Add PublicStatusesCheck to Elasticsearch index check on admin dashboard (#26650)
This commit is contained in:
parent
c3a42e1280
commit
e3825a13c1
|
@ -6,6 +6,7 @@ class Admin::SystemCheck::ElasticsearchCheck < Admin::SystemCheck::BaseCheck
|
||||||
AccountsIndex,
|
AccountsIndex,
|
||||||
TagsIndex,
|
TagsIndex,
|
||||||
StatusesIndex,
|
StatusesIndex,
|
||||||
|
PublicStatusesIndex,
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
def skip?
|
def skip?
|
||||||
|
|
|
@ -17,6 +17,7 @@ describe Admin::SystemCheck::ElasticsearchCheck do
|
||||||
allow(Chewy.client.indices).to receive_messages(get_mapping: {
|
allow(Chewy.client.indices).to receive_messages(get_mapping: {
|
||||||
AccountsIndex.index_name => AccountsIndex.mappings_hash.deep_stringify_keys,
|
AccountsIndex.index_name => AccountsIndex.mappings_hash.deep_stringify_keys,
|
||||||
StatusesIndex.index_name => StatusesIndex.mappings_hash.deep_stringify_keys,
|
StatusesIndex.index_name => StatusesIndex.mappings_hash.deep_stringify_keys,
|
||||||
|
PublicStatusesIndex.index_name => PublicStatusesIndex.mappings_hash.deep_stringify_keys,
|
||||||
InstancesIndex.index_name => InstancesIndex.mappings_hash.deep_stringify_keys,
|
InstancesIndex.index_name => InstancesIndex.mappings_hash.deep_stringify_keys,
|
||||||
TagsIndex.index_name => TagsIndex.mappings_hash.deep_stringify_keys,
|
TagsIndex.index_name => TagsIndex.mappings_hash.deep_stringify_keys,
|
||||||
}, get_settings: {
|
}, get_settings: {
|
||||||
|
@ -90,6 +91,7 @@ describe Admin::SystemCheck::ElasticsearchCheck do
|
||||||
allow(Chewy.client.indices).to receive(:get_mapping).and_return({
|
allow(Chewy.client.indices).to receive(:get_mapping).and_return({
|
||||||
AccountsIndex.index_name => AccountsIndex.mappings_hash.deep_stringify_keys,
|
AccountsIndex.index_name => AccountsIndex.mappings_hash.deep_stringify_keys,
|
||||||
StatusesIndex.index_name => StatusesIndex.mappings_hash.deep_stringify_keys,
|
StatusesIndex.index_name => StatusesIndex.mappings_hash.deep_stringify_keys,
|
||||||
|
PublicStatusesIndex.index_name => PublicStatusesIndex.mappings_hash.deep_stringify_keys,
|
||||||
InstancesIndex.index_name => InstancesIndex.mappings_hash.deep_stringify_keys,
|
InstancesIndex.index_name => InstancesIndex.mappings_hash.deep_stringify_keys,
|
||||||
TagsIndex.index_name => TagsIndex.mappings_hash.deep_stringify_keys,
|
TagsIndex.index_name => TagsIndex.mappings_hash.deep_stringify_keys,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue