Skip to content

Commit f140aa3

Browse files
lazebnyiartem1205
andauthored
Source Trello: Changed last records to last record (#37598)
Signed-off-by: Artem Inzhyyants <[email protected]> Co-authored-by: Artem Inzhyyants <[email protected]>
1 parent 1a1b8c9 commit f140aa3

File tree

9 files changed

+1371
-107
lines changed

9 files changed

+1371
-107
lines changed

airbyte-integrations/connectors/source-trello/Dockerfile

-39
This file was deleted.

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ data:
55
allowedHosts:
66
hosts:
77
- api.trello.com
8+
connectorBuildOptions:
9+
baseImage: docker.io/airbyte/python-connector-base:1.2.0@sha256:c22a9d97464b69d6ef01898edf3f8612dc11614f05a84984451dde195f337db9
810
remoteRegistries:
911
pypi:
1012
enabled: true
@@ -17,7 +19,7 @@ data:
1719
connectorSubtype: api
1820
connectorType: source
1921
definitionId: 8da67652-004c-11ec-9a03-0242ac130003
20-
dockerImageTag: 1.0.2
22+
dockerImageTag: 1.0.3
2123
dockerRepository: airbyte/source-trello
2224
documentationUrl: https://docs.airbyte.com/integrations/sources/trello
2325
githubIssueLabel: source-trello

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

+1,318
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[build-system]
2+
requires = [ "poetry-core>=1.0.0",]
3+
build-backend = "poetry.core.masonry.api"
4+
5+
[tool.poetry]
6+
version = "1.0.3"
7+
name = "source-trello"
8+
description = "Source implementation for Trello."
9+
authors = [ "Airbyte <[email protected]>",]
10+
license = "MIT"
11+
readme = "README.md"
12+
documentation = "https://docs.airbyte.com/integrations/sources/trello"
13+
homepage = "https://airbyte.com"
14+
repository = "https://github.com/airbytehq/airbyte"
15+
[[tool.poetry.packages]]
16+
include = "source_trello"
17+
18+
[tool.poetry.dependencies]
19+
python = "^3.9,<3.12"
20+
airbyte-cdk = "^0"
21+
22+
[tool.poetry.scripts]
23+
source-trello = "source_trello.run:run"
24+
25+
[tool.poetry.group.dev.dependencies]
26+
requests-mock = "^1.9.3"
27+
pytest-mock = "^3.6"
28+
pytest = "^6.1"
29+

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

-1
This file was deleted.

airbyte-integrations/connectors/source-trello/setup.py

-46
This file was deleted.

airbyte-integrations/connectors/source-trello/source_trello/components.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def stream_slices(self) -> Iterable[StreamSlice]:
2222
board_ids = self.read_all_boards(stream_boards=stream_map["boards"], stream_organizations=stream_map["organizations"])
2323

2424
for board_id in board_ids:
25-
yield {"id": board_id}
25+
yield StreamSlice(partition={"id": board_id}, cursor_slice={})
2626

2727
def read_all_boards(self, stream_boards: Stream, stream_organizations: Stream):
2828
"""

airbyte-integrations/connectors/source-trello/source_trello/manifest.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.51.2
1+
version: 0.85.0
22
type: DeclarativeSource
33

44
check:
@@ -49,8 +49,8 @@ definitions:
4949
pagination_strategy:
5050
type: CursorPagination
5151
page_size: 500
52-
cursor_value: "{{ (last_records|last)['id'] }}"
53-
stop_condition: "{{ not last_records }}"
52+
cursor_value: "{{ last_record['id'] }}"
53+
stop_condition: "{{ not last_record }}"
5454
board_id_partition_router:
5555
- type: CustomPartitionRouter
5656
class_name: source_trello.components.OrderIdsPartitionRouter

docs/integrations/sources/trello.md

+17-16
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,20 @@ The Trello connector should not run into Trello API limitations under normal usa
7474

7575
## Changelog
7676

77-
| Version | Date | Pull Request | Subject |
78-
|:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------|
79-
| 1.0.2 | 2023-10-13 | [31205](https://github.com/airbytehq/airbyte/pull/31205) | Improve spec description for board ids |
80-
| 1.0.1 | 2023-10-13 | [31168](https://github.com/airbytehq/airbyte/pull/31168) | Fix `cards` schema |
81-
| 1.0.0 | 2023-09-08 | [29876](https://github.com/airbytehq/airbyte/pull/29876) | Migrate to Low Code CDK |
82-
| 0.3.4 | 2023-07-31 | [28734](https://github.com/airbytehq/airbyte/pull/28734) | Updated `expected records` for CAT test and fixed `advancedAuth` broken references |
83-
| 0.3.3 | 2023-06-19 | [27470](https://github.com/airbytehq/airbyte/pull/27470) | Update Organizations schema |
84-
| 0.3.2 | 2023-05-05 | [25870](https://github.com/airbytehq/airbyte/pull/25870) | Added `CDK typeTransformer` to guarantee JSON schema types |
85-
| 0.3.1 | 2023-03-21 | [24266](https://github.com/airbytehq/airbyte/pull/24266) | Get board ids also from organizations |
86-
| 0.3.0 | 2023-03-17 | [24141](https://github.com/airbytehq/airbyte/pull/24141) | Certify to Beta |
87-
| 0.2.0 | 2023-03-15 | [24045](https://github.com/airbytehq/airbyte/pull/24045) | Fix schema for boards and cards streams |
88-
| 0.1.6 | 2021-12-28 | [8628](https://github.com/airbytehq/airbyte/pull/8628) | Updated fields in source-connector specifications |
89-
| 0.1.3 | 2021-11-25 | [8183](https://github.com/airbytehq/airbyte/pull/8183) | Enable specifying board ids in configuration |
90-
| 0.1.2 | 2021-11-08 | [7499](https://github.com/airbytehq/airbyte/pull/7499) | Remove base-python dependencies |
91-
| 0.1.1 | 2021-10-12 | [6968](https://github.com/airbytehq/airbyte/pull/6968) | Add oAuth flow support |
92-
| 0.1.0 | 2021-08-18 | [5501](https://github.com/airbytehq/airbyte/pull/5501) | Release Trello CDK Connector |
77+
| Version | Date | Pull Request | Subject |
78+
|:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------|
79+
| 1.0.3 | 2024-04-30 | [37598](https://github.com/airbytehq/airbyte/pull/37598) | Changed last records to last record |
80+
| 1.0.2 | 2023-10-13 | [31205](https://github.com/airbytehq/airbyte/pull/31205) | Improve spec description for board ids |
81+
| 1.0.1 | 2023-10-13 | [31168](https://github.com/airbytehq/airbyte/pull/31168) | Fix `cards` schema |
82+
| 1.0.0 | 2023-09-08 | [29876](https://github.com/airbytehq/airbyte/pull/29876) | Migrate to Low Code CDK |
83+
| 0.3.4 | 2023-07-31 | [28734](https://github.com/airbytehq/airbyte/pull/28734) | Updated `expected records` for CAT test and fixed `advancedAuth` broken references |
84+
| 0.3.3 | 2023-06-19 | [27470](https://github.com/airbytehq/airbyte/pull/27470) | Update Organizations schema |
85+
| 0.3.2 | 2023-05-05 | [25870](https://github.com/airbytehq/airbyte/pull/25870) | Added `CDK typeTransformer` to guarantee JSON schema types |
86+
| 0.3.1 | 2023-03-21 | [24266](https://github.com/airbytehq/airbyte/pull/24266) | Get board ids also from organizations |
87+
| 0.3.0 | 2023-03-17 | [24141](https://github.com/airbytehq/airbyte/pull/24141) | Certify to Beta |
88+
| 0.2.0 | 2023-03-15 | [24045](https://github.com/airbytehq/airbyte/pull/24045) | Fix schema for boards and cards streams |
89+
| 0.1.6 | 2021-12-28 | [8628](https://github.com/airbytehq/airbyte/pull/8628) | Updated fields in source-connector specifications |
90+
| 0.1.3 | 2021-11-25 | [8183](https://github.com/airbytehq/airbyte/pull/8183) | Enable specifying board ids in configuration |
91+
| 0.1.2 | 2021-11-08 | [7499](https://github.com/airbytehq/airbyte/pull/7499) | Remove base-python dependencies |
92+
| 0.1.1 | 2021-10-12 | [6968](https://github.com/airbytehq/airbyte/pull/6968) | Add oAuth flow support |
93+
| 0.1.0 | 2021-08-18 | [5501](https://github.com/airbytehq/airbyte/pull/5501) | Release Trello CDK Connector |

0 commit comments

Comments
 (0)