Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Support ES 7.10.0 #313

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ run {
cluster.waitForAllConditions()
}
}

useCluster testClusters.integTest
weicongs-amazon marked this conversation as resolved.
Show resolved Hide resolved
}

evaluationDependsOnChildren()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Compatible with Elasticsearch 7.10.0
### Bug Fixes

* Fix edge case where entities found for preview is empty ([#296](https://github.com/opendistro-for-elasticsearch/anomaly-detection/pull/296))
* Improve profile API ([#298](https://github.com/opendistro-for-elasticsearch/anomaly-detection/pull/298))
* fix null user in detector ([#301](https://github.com/opendistro-for-elasticsearch/anomaly-detection/pull/301))
* fix fatal error of missing method parseString ([#302](https://github.com/opendistro-for-elasticsearch/anomaly-detection/pull/302))
* remove clock Guice binding ([#305](https://github.com/opendistro-for-elasticsearch/anomaly-detection/pull/305))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ public class AnomalyDetector implements Writeable, ToXContentObject {
private static final String WINDOW_DELAY_FIELD = "window_delay";
private static final String SHINGLE_SIZE_FIELD = "shingle_size";
private static final String LAST_UPDATE_TIME_FIELD = "last_update_time";
private static final String LAST_UPDATE_TIME_FIELD_READABLE_NAME = "last_updated_time";
public static final String UI_METADATA_FIELD = "ui_metadata";
public static final String CATEGORY_FIELD = "category_field";
public static final String USER_FIELD = "user";
Expand Down Expand Up @@ -267,7 +266,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
xContentBuilder.field(UI_METADATA_FIELD, uiMetadata);
}
if (lastUpdateTime != null) {
xContentBuilder.timeField(LAST_UPDATE_TIME_FIELD, LAST_UPDATE_TIME_FIELD_READABLE_NAME, lastUpdateTime.toEpochMilli());
xContentBuilder.timeField(LAST_UPDATE_TIME_FIELD, lastUpdateTime);
}
if (categoryFields != null) {
xContentBuilder.field(CATEGORY_FIELD, categoryFields.toArray());
Expand Down