summaryrefslogtreecommitdiffstats
path: root/model/job.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-08-01 13:11:29 +0100
committerGitHub <noreply@github.com>2017-08-01 13:11:29 +0100
commit00e8b6621a7ddf13222144d4acf80421204a23cc (patch)
tree0e6b967eeb813d99c0f07cdcedc3638d76d61144 /model/job.go
parent25a2013890c7e07b4621fa9b18342e7f35363049 (diff)
downloadchat-00e8b6621a7ddf13222144d4acf80421204a23cc.tar.gz
chat-00e8b6621a7ddf13222144d4acf80421204a23cc.tar.bz2
chat-00e8b6621a7ddf13222144d4acf80421204a23cc.zip
PLT-6595 (Client): Elasticsearch indexing system console UI (#6991)
* PLT-6595: System Console for Elasticsearch Job Management. * Fixing UI issues * Fixing colors * ESLint Fixes. * Update test snapshots. * Fixing cancel button * Fix review comments. * Config capitalisation. * Review fixes.
Diffstat (limited to 'model/job.go')
-rw-r--r--model/job.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/model/job.go b/model/job.go
index ebc849b30..004331a1f 100644
--- a/model/job.go
+++ b/model/job.go
@@ -10,8 +10,8 @@ import (
)
const (
- JOB_TYPE_DATA_RETENTION = "data_retention"
- JOB_TYPE_SEARCH_INDEXING = "search_indexing"
+ JOB_TYPE_DATA_RETENTION = "data_retention"
+ JOB_TYPE_ELASTICSEARCH_POST_INDEXING = "elasticsearch_post_indexing"
JOB_STATUS_PENDING = "pending"
JOB_STATUS_IN_PROGRESS = "in_progress"
@@ -44,7 +44,7 @@ func (j *Job) IsValid() *AppError {
switch j.Type {
case JOB_TYPE_DATA_RETENTION:
- case JOB_TYPE_SEARCH_INDEXING:
+ case JOB_TYPE_ELASTICSEARCH_POST_INDEXING:
default:
return NewAppError("Job.IsValid", "model.job.is_valid.type.app_error", nil, "id="+j.Id, http.StatusBadRequest)
}