Skip to content

Commit 6610606

Browse files
committed
Prepare for release 7.17.0
1 parent 2a4f10b commit 6610606

File tree

8 files changed

+162
-109
lines changed

8 files changed

+162
-109
lines changed

Diff for: docs/guide/release-notes/7-16-0.asciidoc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[[release-notes-7-16-0]]
2+
=== 7.16.0 Release Notes
3+
4+
[discrete]
5+
==== General
6+
7+
- Deprecated support for Python 2.7, 3.4, and 3.5. Support will be removed in v8.0.0.
8+
- Updated APIs to the 7.16 specification
9+
10+
[discrete]
11+
==== App Search
12+
13+
- Added the `get_adaptive_relevance_settings`, `put_adaptive_relevance_settings`, `get_adaptive_relevance_suggestions`, `list_adaptive_relevance_suggestions`, `put_adaptive_relevance_suggestions`
14+
- Fixed the pagination parameters for `list_crawler_crawl_requests` and `list_crawler_process_crawls` APIs to `current_page` and `page_size`, were previously `limit`.
15+
16+
17+
[discrete]
18+
==== Workplace Search
19+
20+
- Added the `list_documents` API

Diff for: docs/guide/release-notes/7-17-0.asciidoc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[[release-notes-7-17-0]]
2+
=== 7.17.0 Release Notes
3+
4+
[discrete]
5+
==== General
6+
7+
- Updated APIs to the 7.17 specification
8+
9+
[discrete]
10+
==== App Search
11+
12+
- Added the `current_page` and `page_size` parameters to the `list_crawler_crawl_requests` and `list_crawler_process_crawls` APIs

Diff for: docs/guide/release-notes/index.asciidoc

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44
[discrete]
55
=== 7.x
66

7-
* <<release-notes-7-14-0, 7.15.0 Release Notes>>
7+
* <<release-notes-7-16-0, 7.17.0 Release Notes>>
8+
* <<release-notes-7-16-0, 7.16.0 Release Notes>>
9+
* <<release-notes-7-15-0, 7.15.0 Release Notes>>
810
* <<release-notes-7-14-0, 7.14.0 Release Notes>>
911
* <<release-notes-7-13-0, 7.13.0 Release Notes>>
1012
* <<release-notes-7-12-0, 7.12.0 Release Notes>>
1113
* <<release-notes-7-11-0, 7.11.0 Release Notes>>
1214
* <<release-notes-7-10-0, 7.10.0-beta1 Release Notes>>
1315

16+
include::7-17-0.asciidoc[]
17+
include::7-16-0.asciidoc[]
1418
include::7-15-0.asciidoc[]
1519
include::7-14-0.asciidoc[]
1620
include::7-13-0.asciidoc[]

Diff for: elastic_enterprise_search/client/_app_search.py

+92-77
Large diffs are not rendered by default.

Diff for: elastic_enterprise_search/client/_enterprise_search.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_health(
4040
Get information on the health of a deployment and basic statistics around
4141
resource usage
4242
43-
`<https://www.elastic.co/guide/en/enterprise-search/7.16/monitoring-apis.html#health-api-example>`_
43+
`<https://www.elastic.co/guide/en/enterprise-search/7.17/monitoring-apis.html#health-api-example>`_
4444
4545
:arg params: Additional query params to send with the request
4646
:arg headers: Additional headers to send with the request
@@ -74,7 +74,7 @@ def get_read_only(
7474
"""
7575
Get the read-only flag's state
7676
77-
`<https://www.elastic.co/guide/en/enterprise-search/7.16/read-only-api.html#getting-read-only-state>`_
77+
`<https://www.elastic.co/guide/en/enterprise-search/7.17/read-only-api.html#getting-read-only-state>`_
7878
7979
:arg params: Additional query params to send with the request
8080
:arg headers: Additional headers to send with the request
@@ -109,7 +109,7 @@ def put_read_only(
109109
"""
110110
Update the read-only flag's state
111111
112-
`<https://www.elastic.co/guide/en/enterprise-search/7.16/read-only-api.html#setting-read-only-state>`_
112+
`<https://www.elastic.co/guide/en/enterprise-search/7.17/read-only-api.html#setting-read-only-state>`_
113113
114114
:arg body: HTTP request body
115115
:arg params: Additional query params to send with the request
@@ -147,7 +147,7 @@ def get_stats(
147147
Get information about the resource usage of the application, the state of
148148
different internal queues, etc.
149149
150-
`<https://www.elastic.co/guide/en/enterprise-search/7.16/monitoring-apis.html#stats-api-example>`_
150+
`<https://www.elastic.co/guide/en/enterprise-search/7.17/monitoring-apis.html#stats-api-example>`_
151151
152152
:arg include: Comma-separated list of stats to return
153153
:arg params: Additional query params to send with the request
@@ -184,7 +184,7 @@ def get_version(
184184
"""
185185
Get version information for this server
186186
187-
`<https://www.elastic.co/guide/en/enterprise-search/7.16/management-apis.html>`_
187+
`<https://www.elastic.co/guide/en/enterprise-search/7.17/management-apis.html>`_
188188
189189
:arg params: Additional query params to send with the request
190190
:arg headers: Additional headers to send with the request

Diff for: elastic_enterprise_search/client/_workplace_search.py

+23-23
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def get_auto_query_refinement_details(
7878
"""
7979
Retrieves a content source's automatic query refinement details
8080
81-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-content-sources-api.html#get-automatic-query-refinement-details-api>`_
81+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-content-sources-api.html#get-automatic-query-refinement-details-api>`_
8282
8383
:arg content_source_id: Unique ID for a Custom API source, provided upon
8484
creation of a Custom API Source
@@ -221,7 +221,7 @@ def create_content_source(
221221
"""
222222
Create a content source
223223
224-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-content-sources-api.html#create-content-source-api>`_
224+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-content-sources-api.html#create-content-source-api>`_
225225
226226
:arg body: HTTP request body
227227
:arg params: Additional query params to send with the request
@@ -260,7 +260,7 @@ def delete_content_source(
260260
"""
261261
Deletes a content source by ID
262262
263-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-content-sources-api.html#remove-content-source-api>`_
263+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-content-sources-api.html#remove-content-source-api>`_
264264
265265
:arg content_source_id: Unique ID for a Custom API source, provided upon
266266
creation of a Custom API Source
@@ -307,7 +307,7 @@ def get_content_source(
307307
"""
308308
Retrieves a content source by ID
309309
310-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-content-sources-api.html#get-content-source-api>`_
310+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-content-sources-api.html#get-content-source-api>`_
311311
312312
:arg content_source_id: Unique ID for a Custom API source, provided upon
313313
creation of a Custom API Source
@@ -354,7 +354,7 @@ def put_content_source_icons(
354354
"""
355355
Upload content source icons
356356
357-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-content-sources-api.html#upload-content-source-icon-api>`_
357+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-content-sources-api.html#upload-content-source-icon-api>`_
358358
359359
:arg content_source_id: Unique ID for a Custom API source, provided upon
360360
creation of a Custom API Source
@@ -405,7 +405,7 @@ def put_content_source(
405405
"""
406406
Update a content source
407407
408-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-content-sources-api.html#update-content-source-api>`_
408+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-content-sources-api.html#update-content-source-api>`_
409409
410410
:arg content_source_id: Unique ID for a Custom API source, provided upon
411411
creation of a Custom API Source
@@ -455,7 +455,7 @@ def list_content_sources(
455455
"""
456456
Retrieves all content sources
457457
458-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-content-sources-api.html#list-content-sources-api>`_
458+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-content-sources-api.html#list-content-sources-api>`_
459459
460460
:arg current_page: Which page of results to request
461461
:arg page_size: The number of results to return in a page
@@ -538,7 +538,7 @@ def get_document(
538538
"""
539539
Retrieves a document by ID from the specified content source
540540
541-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-content-sources-api.html#get-document-by-id-api>`_
541+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-content-sources-api.html#get-document-by-id-api>`_
542542
543543
:arg content_source_id: Unique ID for a Custom API source, provided upon
544544
creation of a Custom API Source
@@ -593,7 +593,7 @@ def delete_documents_by_query(
593593
"""
594594
Deletes documents by query in a custom content source
595595
596-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-custom-sources-api.html#delete-documents-by-query>`_
596+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-custom-sources-api.html#delete-documents-by-query>`_
597597
598598
:arg content_source_id: Unique ID for a Custom API source, provided upon
599599
creation of a Custom API Source
@@ -644,7 +644,7 @@ def delete_documents(
644644
"""
645645
Deletes a list of documents from a custom content source
646646
647-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-custom-sources-api.html#delete-by-id>`_
647+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-custom-sources-api.html#delete-by-id>`_
648648
649649
:arg content_source_id: Unique ID for a Custom API source, provided upon
650650
creation of a Custom API Source
@@ -698,7 +698,7 @@ def index_documents(
698698
Indexes one or more new documents into a custom content source, or updates one
699699
or more existing documents
700700
701-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-custom-sources-api.html#index-and-update>`_
701+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-custom-sources-api.html#index-and-update>`_
702702
703703
:arg content_source_id: Unique ID for a Custom API source, provided upon
704704
creation of a Custom API Source
@@ -751,7 +751,7 @@ def list_documents(
751751
"""
752752
Lists documents from a custom content source
753753
754-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-custom-sources-api.html#list-documents>`_
754+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-custom-sources-api.html#list-documents>`_
755755
756756
:arg content_source_id: Unique ID for a Custom API source, provided upon
757757
creation of a Custom API Source
@@ -802,7 +802,7 @@ def list_external_identities(
802802
"""
803803
Retrieves all external identities
804804
805-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-external-identities-api.html#list-external-identities>`_
805+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-external-identities-api.html#list-external-identities>`_
806806
807807
:arg content_source_id: Unique ID for a Custom API source, provided upon
808808
creation of a Custom API Source
@@ -856,7 +856,7 @@ def create_external_identity(
856856
"""
857857
Adds a new external identity
858858
859-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-external-identities-api.html#add-external-identity>`_
859+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-external-identities-api.html#add-external-identity>`_
860860
861861
:arg content_source_id: Unique ID for a Custom API source, provided upon
862862
creation of a Custom API Source
@@ -907,7 +907,7 @@ def delete_external_identity(
907907
"""
908908
Deletes an external identity
909909
910-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-external-identities-api.html#remove-external-identity>`_
910+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-external-identities-api.html#remove-external-identity>`_
911911
912912
:arg content_source_id: Unique ID for a Custom API source, provided upon
913913
creation of a Custom API Source
@@ -961,7 +961,7 @@ def get_external_identity(
961961
"""
962962
Retrieves an external identity
963963
964-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-external-identities-api.html#show-external-identity>`_
964+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-external-identities-api.html#show-external-identity>`_
965965
966966
:arg content_source_id: Unique ID for a Custom API source, provided upon
967967
creation of a Custom API Source
@@ -1016,7 +1016,7 @@ def put_external_identity(
10161016
"""
10171017
Updates an external identity
10181018
1019-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-external-identities-api.html#update-external-identity>`_
1019+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-external-identities-api.html#update-external-identity>`_
10201020
10211021
:arg content_source_id: Unique ID for a Custom API source, provided upon
10221022
creation of a Custom API Source
@@ -1074,7 +1074,7 @@ def list_permissions(
10741074
"""
10751075
Lists all permissions for all users
10761076
1077-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-document-permissions-api.html#list>`_
1077+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-document-permissions-api.html#list>`_
10781078
10791079
:arg content_source_id: Unique ID for a Custom API source, provided upon
10801080
creation of a Custom API Source
@@ -1131,7 +1131,7 @@ def remove_user_permissions(
11311131
"""
11321132
Removes one or more permissions from an existing set of permissions
11331133
1134-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-document-permissions-api.html#remove-one>`_
1134+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-document-permissions-api.html#remove-one>`_
11351135
11361136
:arg content_source_id: Unique ID for a Custom API source, provided upon
11371137
creation of a Custom API Source
@@ -1189,7 +1189,7 @@ def search(
11891189
"""
11901190
Search across available sources with various query tuning options
11911191
1192-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-search-api.html>`_
1192+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-search-api.html>`_
11931193
11941194
:arg body: HTTP request body
11951195
:arg params: Additional query params to send with the request
@@ -1477,7 +1477,7 @@ def add_user_permissions(
14771477
"""
14781478
Adds one or more new permissions atop existing permissions
14791479
1480-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-document-permissions-api.html#add-one>`_
1480+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-document-permissions-api.html#add-one>`_
14811481
14821482
:arg content_source_id: Unique ID for a Custom API source, provided upon
14831483
creation of a Custom API Source
@@ -1536,7 +1536,7 @@ def get_user_permissions(
15361536
"""
15371537
Lists all permissions for one user
15381538
1539-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-document-permissions-api.html#list-one>`_
1539+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-document-permissions-api.html#list-one>`_
15401540
15411541
:arg content_source_id: Unique ID for a Custom API source, provided upon
15421542
creation of a Custom API Source
@@ -1592,7 +1592,7 @@ def put_user_permissions(
15921592
"""
15931593
Creates a new set of permissions or over-writes all existing permissions
15941594
1595-
`<https://www.elastic.co/guide/en/workplace-search/7.16/workplace-search-document-permissions-api.html#add-all>`_
1595+
`<https://www.elastic.co/guide/en/workplace-search/7.17/workplace-search-document-permissions-api.html#add-all>`_
15961596
15971597
:arg content_source_id: Unique ID for a Custom API source, provided upon
15981598
creation of a Custom API Source

Diff for: noxfile.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@nox.session()
3232
def format(session):
33-
session.install("black", "isort")
33+
session.run("python", "-m", "pip", "install", "--pre", "black<22", "isort")
3434
session.run(
3535
"black", "--target-version=py27", "--target-version=py37", *SOURCE_FILES
3636
)
@@ -42,7 +42,9 @@ def format(session):
4242

4343
@nox.session
4444
def lint(session):
45-
session.install("flake8", "black", "isort")
45+
session.run(
46+
"python", "-m", "pip", "install", "--pre", "black<22", "isort", "flake8"
47+
)
4648
session.run(
4749
"black",
4850
"--check",

Diff for: utils/generator/generate-api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import urllib3
2727

2828
http = urllib3.PoolManager()
29-
current_branch = "7.16"
29+
current_branch = "7.17"
3030
base_dir = pathlib.Path(__file__).absolute().parent.parent.parent
3131
schemas_dir = base_dir.parent / "ent-search/swagger/v1"
3232
templates_dir = str(pathlib.Path(__file__).absolute().parent / "templates")

0 commit comments

Comments
 (0)