-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Task List API to accept strings as TaskIds
In the Java source, task identification is represented by the `TaskId` class. That class contains a `nodeId` (a `string`) and a numerical `id` (a `long`). In the Tasks API, these two get mixed. Sometimes the `TaskId` is used, which is a concatenation of `nodeId`, a colon, and the numerical `id`, which yields a `string`. Sometimes, though, especially in the response structures, the `nodeId` and `id` get returned individually. So we must look at each of the response structures in the Java source to find out the correct type used in the response. This commit now changes the Task List API to accept task ids as a string, because that's what the REST API spec defines. We also add the `GroupBy` property, and some missing fields in the response structures. We also update Travis configuration and `run-es.sh` to Elasticsearch 6.1.2.
- Loading branch information
Showing
5 changed files
with
32 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
VERSION=${VERSION:=6.1.1} | ||
VERSION=${VERSION:=6.1.2} | ||
docker run --rm -p 9200:9200 -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" -e "bootstrap.memory_lock=true" -e "ES_JAVA_OPTS=-Xms1g -Xmx1g" docker.elastic.co/elasticsearch/elasticsearch:$VERSION elasticsearch -Expack.security.enabled=false -Enetwork.host=_local_,_site_ -Enetwork.publish_host=_local_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters