Skip to content

Commit 4129748

Browse files
authored
Merge branch 'master' into feature/sc-76763-add-follow-authorization-header-option
2 parents acac697 + 819c556 commit 4129748

7 files changed

Lines changed: 13 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

33

4+
## [Version 1.0.5](https://github.com/dataiku/dss-plugin-api-connect/releases/tag/v1.0.5) - Bugfix release - 2022-03-30
5+
6+
- Fix use of "Next page pagination" with short extraction path
7+
48
## [Version 1.0.4](https://github.com/dataiku/dss-plugin-api-connect/releases/tag/v1.0.4) - Bugfix release - 2021-12-14
59

610
- Fix use of "Next page pagination" in combination with extraction path

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2021 Dataiku
189+
Copyright 2021-2022 Dataiku
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ Documentation: https://www.dataiku.com/product/plugins/api-connect/
77

88
### Licence
99

10+
Copyright 2021-2022 Dataiku SAS
11+
1012
This plugin is distributed under the Apache License version 2.0

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "api-connect",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"meta": {
55
"label": "API Connect",
66
"description": "Retrieve data from any REST API",

python-lib/pagination.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def update_next_page(self, data, response_links=None):
7575
self.is_last_batch_empty = True
7676
else:
7777
batch_size = 1
78-
if self.next_page_key and (len(self.next_page_key) > 1):
78+
if self.next_page_key and (len(self.next_page_key) > 0):
7979
self.next_page_url = self.get_from_path(data, self.next_page_key)
8080
if self.skip_key:
8181
self.skip = data.get(self.skip_key)

python-lib/rest_api_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def template_dict(dictionnary, **kwargs):
1919
ret[key] = template_dict(ret[key], **kwargs)
2020
if isinstance(ret[key], str):
2121
ret[key] = format_template(ret[key], **kwargs)
22-
return ret
2322
return ret
2423

2524

tests/python/integration/test_scenario.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ def test_run_api_connect_search_path(user_dss_clients):
2929

3030
def test_run_api_connect_redirection(user_dss_clients):
3131
dss_scenario.run(user_dss_clients, project_key=TEST_PROJECT_KEY, scenario_id="REDIRECTION")
32+
33+
34+
def test_run_api_connect_check_sc_84465(user_dss_clients):
35+
dss_scenario.run(user_dss_clients, project_key=TEST_PROJECT_KEY, scenario_id="CHECKSC84465")

0 commit comments

Comments
 (0)