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:
Vacha Shah
2022-04-13 10:47:48 -07:00
committed by GitHub
parent 092a013280
commit b1eaba0064
31 changed files with 206 additions and 624 deletions
+1 -4
View File
@@ -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 -2
View File
@@ -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 -2
View File
@@ -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 -4
View File
@@ -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 -2
View File
@@ -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 -3
View File
@@ -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 -4
View File
@@ -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 }}