-
Couldn't load subscription status.
- Fork 36
Fix bug with plugin security policy for GeoJSON output #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
fulups
commented
Dec 11, 2020
- fix bug with plugin security policy for GeoJSON output
- update tests to correctly support variable docNumber
add support for new json object list output format
# Conflicts: # README.md # src/main/java/org/codelibs/elasticsearch/df/content/ContentType.java # src/main/java/org/codelibs/elasticsearch/df/rest/RestDataAction.java # src/test/java/org/codelibs/elasticsearch/df/DataFormatPluginTest.java
# Conflicts: # src/main/java/org/codelibs/elasticsearch/df/content/geojson/GeoJsonContent.java # src/test/java/org/codelibs/elasticsearch/df/DataFormatPluginTest.java
| assertTrue(lines[1].startsWith("{\"aaa\":\"test 1\",")); | ||
| } | ||
|
|
||
| // Download 10 docs as JSON |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove this code?
| .header("Content-Type", "application/json") | ||
| .param("format", "csv").body(queryWithFrom).execute()) { | ||
| .param("format", "csv") | ||
| .param("size", Integer.toString(docNumber)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size is in queryWithFrom.
| .header("Content-Type", "application/json") | ||
| .param("format", "csv").param("source", queryWithFrom) | ||
| .param("source_content_type", "application/json") | ||
| .param("size", String.valueOf(docNumber)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size is in queryWithFrom.
| assertLineContains(lines[1], "\"1\""); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove spaces.