PLT-7667: Clean up elasticsearch indexes when running data retention jobs. (#7481)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
e525383c52
Коммит
265392fa48
@@ -3,7 +3,11 @@
|
|||||||
|
|
||||||
package einterfaces
|
package einterfaces
|
||||||
|
|
||||||
import "github.com/mattermost/mattermost-server/model"
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/mattermost/mattermost-server/model"
|
||||||
|
)
|
||||||
|
|
||||||
type ElasticsearchInterface interface {
|
type ElasticsearchInterface interface {
|
||||||
Start() *model.AppError
|
Start() *model.AppError
|
||||||
@@ -12,6 +16,7 @@ type ElasticsearchInterface interface {
|
|||||||
DeletePost(post *model.Post) *model.AppError
|
DeletePost(post *model.Post) *model.AppError
|
||||||
TestConfig(cfg *model.Config) *model.AppError
|
TestConfig(cfg *model.Config) *model.AppError
|
||||||
PurgeIndexes() *model.AppError
|
PurgeIndexes() *model.AppError
|
||||||
|
DataRetentionDeleteIndexes(cutoff time.Time) *model.AppError
|
||||||
}
|
}
|
||||||
|
|
||||||
var theElasticsearchInterface ElasticsearchInterface
|
var theElasticsearchInterface ElasticsearchInterface
|
||||||
|
|||||||
@@ -3719,6 +3719,14 @@
|
|||||||
"id": "ent.elasticsearch.create_index_if_not_exists.index_mapping_failed",
|
"id": "ent.elasticsearch.create_index_if_not_exists.index_mapping_failed",
|
||||||
"translation": "Failed to setup Elasticsearch index mapping"
|
"translation": "Failed to setup Elasticsearch index mapping"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "ent.elasticsearch.data_retention_delete_indexes.get_indexes.error",
|
||||||
|
"translation": "Failed to get Elasticsearch indexes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ent.elasticsearch.data_retention_delete_indexes.delete_index.error",
|
||||||
|
"translation": "Failed to delete Elasticsearch index"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "ent.elasticsearch.delete_post.error",
|
"id": "ent.elasticsearch.delete_post.error",
|
||||||
"translation": "Failed to delete the post"
|
"translation": "Failed to delete the post"
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user