Skip to content

Commit 5574b07

Browse files
lazebnyiartem1205
andauthored
Source Mailgun: Changed last recrods to last record (#37594)
Signed-off-by: Artem Inzhyyants <[email protected]> Co-authored-by: Artem Inzhyyants <[email protected]>
1 parent ba796fd commit 5574b07

File tree

6 files changed

+323
-41
lines changed

6 files changed

+323
-41
lines changed

airbyte-integrations/connectors/source-mailgun/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: 5b9cb09e-1003-4f9c-983d-5779d1b2cd51
13-
dockerImageTag: 0.2.5
13+
dockerImageTag: 0.2.6
1414
dockerRepository: airbyte/source-mailgun
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/mailgun
1616
githubIssueLabel: source-mailgun

airbyte-integrations/connectors/source-mailgun/poetry.lock

+305-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

airbyte-integrations/connectors/source-mailgun/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "0.2.5"
6+
version = "0.2.6"
77
name = "source-mailgun"
88
description = "Source implementation for Mailgun."
99
authors = [ "Airbyte <[email protected]>",]
@@ -17,7 +17,7 @@ include = "source_mailgun"
1717

1818
[tool.poetry.dependencies]
1919
python = "^3.9,<3.12"
20-
airbyte-cdk = "0.80.0"
20+
airbyte-cdk = "^0"
2121

2222
[tool.poetry.scripts]
2323
source-mailgun = "source_mailgun.run:run"

airbyte-integrations/connectors/source-mailgun/requirements.txt

-2
This file was deleted.

airbyte-integrations/connectors/source-mailgun/source_mailgun/manifest.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "0.29.0"
1+
version: "0.86.0"
22

33
definitions:
44
selector:
@@ -39,7 +39,8 @@ definitions:
3939
type: "DefaultPaginator"
4040
pagination_strategy:
4141
type: "CursorPagination"
42-
cursor_value: "{{ last_records['paging', 'next'] }}"
42+
cursor_value: "{{ response['paging']['next'] if response['items'] }}"
43+
stop_condition: "{{ not response.get('items', []) }}"
4344
page_token_option:
4445
type: "RequestPath"
4546
field_name: "from"

docs/integrations/sources/mailgun.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Just pass the generated API key for establishing the connection.
4141
The MailGun source connector supports the following [sync modes](https://docs.airbyte.com/cloud/core-concepts#connection-sync-modes):
4242

4343
| Feature | Supported? |
44-
| :---------------------------- | :--------- |
44+
|:------------------------------|:-----------|
4545
| Full Refresh Sync | Yes |
4646
| Incremental Sync | Yes |
4747
| Replicate Incremental Deletes | No |
@@ -63,13 +63,14 @@ MailGun's [API reference](https://documentation.mailgun.com/en/latest/api_refere
6363

6464
## Changelog
6565

66-
| Version | Date | Pull Request | Subject |
67-
| :------ | :--------- | :------------------------------------------------------ | :--------------------------------------------------- |
68-
| 0.2.5 | 2024-04-19 | [37193](https://github.com/airbytehq/airbyte/pull/37193) | Updating to 0.80.0 CDK |
69-
| 0.2.4 | 2024-04-18 | [37193](https://github.com/airbytehq/airbyte/pull/37193) | Manage dependencies with Poetry. |
70-
| 0.2.3 | 2024-04-15 | [37193](https://github.com/airbytehq/airbyte/pull/37193) | Base image migration: remove Dockerfile and use the python-connector-base image |
71-
| 0.2.2 | 2024-04-12 | [37193](https://github.com/airbytehq/airbyte/pull/37193) | schema descriptions |
72-
| 0.2.1 | 2023-10-16 | [31405](https://github.com/airbytehq/airbyte/pull/31405) | Fixed test connection failure if date field is empty |
73-
| 0.2.0 | 2023-08-05 | [29122](https://github.com/airbytehq/airbyte/pull/29122) | Migrate to Low Code |
74-
| 0.1.1 | 2023-02-13 | [22939](https://github.com/airbytehq/airbyte/pull/22939) | Specified date formatting in specification |
75-
| 0.1.0 | 2021-11-09 | [8056](https://github.com/airbytehq/airbyte/pull/8056) | New Source: Mailgun |
66+
| Version | Date | Pull Request | Subject |
67+
|:--------|:-----------|:---------------------------------------------------------|:--------------------------------------------------------------------------------|
68+
| 0.2.6 | 2024-05-02 | [37594](https://github.com/airbytehq/airbyte/pull/37594) | Change `last_recrods` to `last_record` |
69+
| 0.2.5 | 2024-04-19 | [37193](https://github.com/airbytehq/airbyte/pull/37193) | Updating to 0.80.0 CDK |
70+
| 0.2.4 | 2024-04-18 | [37193](https://github.com/airbytehq/airbyte/pull/37193) | Manage dependencies with Poetry. |
71+
| 0.2.3 | 2024-04-15 | [37193](https://github.com/airbytehq/airbyte/pull/37193) | Base image migration: remove Dockerfile and use the python-connector-base image |
72+
| 0.2.2 | 2024-04-12 | [37193](https://github.com/airbytehq/airbyte/pull/37193) | schema descriptions |
73+
| 0.2.1 | 2023-10-16 | [31405](https://github.com/airbytehq/airbyte/pull/31405) | Fixed test connection failure if date field is empty |
74+
| 0.2.0 | 2023-08-05 | [29122](https://github.com/airbytehq/airbyte/pull/29122) | Migrate to Low Code |
75+
| 0.1.1 | 2023-02-13 | [22939](https://github.com/airbytehq/airbyte/pull/22939) | Specified date formatting in specification |
76+
| 0.1.0 | 2021-11-09 | [8056](https://github.com/airbytehq/airbyte/pull/8056) | New Source: Mailgun |

0 commit comments

Comments
 (0)