Type removal breaking changes (#151)
* Breaking changes for type removal Signed-off-by: Vacha Shah <[email protected]> * Adding support to test against unreleased OpenSearch Signed-off-by: Vacha Shah <[email protected]> * Formatting Signed-off-by: Vacha Shah <[email protected]> * Addressing comments to refactor run-opensearch.sh Signed-off-by: Vacha Shah <[email protected]>
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type in SKIP_IN_PATH:
|
||||
path = _make_path(index, "_create", id)
|
||||
else:
|
||||
path = _make_path(index, doc_type, id, "_create")
|
||||
path = _make_path(index, "_create", id)
|
||||
|
||||
return await self.transport.perform_request("{{ api.method }}", path, params=params, headers=headers, body=body)
|
||||
{% endblock %}
|
||||
@@ -1,7 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type in SKIP_IN_PATH:
|
||||
doc_type = "_doc"
|
||||
doc_type = "_doc"
|
||||
|
||||
{{ super()|trim }}
|
||||
{% endblock %}
|
||||
@@ -1,7 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type in SKIP_IN_PATH:
|
||||
doc_type = "_doc"
|
||||
doc_type = "_doc"
|
||||
|
||||
{{ super()|trim }}
|
||||
{% endblock %}
|
||||
@@ -1,9 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type in SKIP_IN_PATH:
|
||||
path = _make_path(index, "_source", id)
|
||||
else:
|
||||
path = _make_path(index, doc_type, id, "_source")
|
||||
path = _make_path(index, "_source", id)
|
||||
|
||||
return await self.transport.perform_request("{{ api.method }}", path, params=params, headers=headers)
|
||||
{% endblock %}
|
||||
@@ -1,9 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type in SKIP_IN_PATH:
|
||||
path = _make_path(index, "_explain", id)
|
||||
else:
|
||||
path = _make_path(index, doc_type, id, "_explain")
|
||||
path = _make_path(index, "_explain", id)
|
||||
|
||||
return await self.transport.perform_request("{{ api.method }}", path, params=params, headers=headers, body=body)
|
||||
{% endblock %}
|
||||
@@ -1,7 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type in SKIP_IN_PATH:
|
||||
doc_type = "_doc"
|
||||
doc_type = "_doc"
|
||||
|
||||
{{ super()|trim }}
|
||||
{% endblock %}
|
||||
@@ -1,9 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type in SKIP_IN_PATH:
|
||||
path = _make_path(index, "_source", id)
|
||||
else:
|
||||
path = _make_path(index, doc_type, id, "_source")
|
||||
path = _make_path(index, "_source", id)
|
||||
|
||||
return await self.transport.perform_request("{{ api.method }}", path, params=params, headers=headers)
|
||||
{% endblock %}
|
||||
@@ -1,8 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type is None:
|
||||
doc_type = "_doc"
|
||||
|
||||
doc_type = "_doc"
|
||||
|
||||
return await self.transport.perform_request("POST" if id in SKIP_IN_PATH else "PUT", {% include "url" %}, params=params, headers=headers, body=body)
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type in SKIP_IN_PATH:
|
||||
path = _make_path(index, "_mtermvectors")
|
||||
else:
|
||||
path = _make_path(index, doc_type, "_mtermvectors")
|
||||
path = _make_path(index, "_mtermvectors")
|
||||
|
||||
return await self.transport.perform_request("{{ api.method }}", path, params=params, headers=headers, body=body)
|
||||
{% endblock %}
|
||||
@@ -1,9 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type in SKIP_IN_PATH:
|
||||
path = _make_path(index, "_termvectors", id)
|
||||
else:
|
||||
path = _make_path(index, doc_type, id, "_termvectors")
|
||||
path = _make_path(index, "_termvectors", id)
|
||||
|
||||
return await self.transport.perform_request("{{ api.method }}", path, params=params, headers=headers, body=body)
|
||||
{% endblock %}
|
||||
@@ -1,9 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type in SKIP_IN_PATH:
|
||||
path = _make_path(index, "_update", id)
|
||||
else:
|
||||
path = _make_path(index, doc_type, id, "_update")
|
||||
path = _make_path(index, "_update", id)
|
||||
|
||||
return await self.transport.perform_request("{{ api.method }}", path, params=params, headers=headers, body=body)
|
||||
{% endblock %}
|
||||
@@ -1,6 +1,6 @@
|
||||
{% extends "base" %}
|
||||
{% block request %}
|
||||
if doc_type not in SKIP_IN_PATH and index in SKIP_IN_PATH:
|
||||
if index in SKIP_IN_PATH:
|
||||
index = "_all"
|
||||
|
||||
{{ super()|trim }}
|
||||
|
||||
Reference in New Issue
Block a user