Skip to content

Commit f46a3b5

Browse files
lazebnyiartem1205
andauthored
Source Wrike: Changed last records to last record (#37600)
Signed-off-by: Artem Inzhyyants <[email protected]> Co-authored-by: Artem Inzhyyants <[email protected]> Co-authored-by: Artem Inzhyyants <[email protected]>
1 parent 8a97537 commit f46a3b5

File tree

11 files changed

+1370
-98
lines changed

11 files changed

+1370
-98
lines changed

airbyte-integrations/connectors/source-wrike/Dockerfile

-38
This file was deleted.

airbyte-integrations/connectors/source-wrike/acceptance-test-config.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@ acceptance_tests:
1818
tests:
1919
- config_path: "secrets/config.json"
2020
configured_catalog_path: "integration_tests/configured_catalog.json"
21+
expect_records:
22+
path: "integration_tests/expected_records.jsonl"
2123
empty_streams:
2224
- name: comments
2325
bypass_reason: "Sandbox accounts dont have permission for accessing the stream"
24-
- name: workflows
25-
bypass_reason: "Sandbox accounts can't seed the stream"
26-
# TODO uncomment this block to specify that the tests should assert the connector outputs the records provided in the input file a file
27-
# expect_records:
28-
# path: "integration_tests/expected_records.jsonl"
29-
# exact_order: no
26+
- name: customfields
27+
bypass_reason: "Sandbox accounts dont have permission for accessing the stream"
3028
incremental:
3129
bypass_reason: "This connector does not implement incremental sync"
3230
# TODO uncomment this block this block if your connector implements incremental sync:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{"stream":"tasks","data":{"id":"IEAFPQHKKQ42CBKR","accountId":"IEAFPQHK","title":"Getting Started With Wrike","status":"Active","importance":"Normal","createdDate":"2022-09-20T07:55:57Z","updatedDate":"2022-09-20T07:55:57Z","dates":{"type":"Backlog"},"scope":"WsTask","customStatusId":"IEAFPQHKJMAAAAAA","permalink":"https://www.wrike.com/open.htm?id=966853969","priority":"1e95a8008000000000008800"},"emitted_at":1714638763113}
2+
{"stream":"folders","data":{"id":"IEAFPQHKI7777777","title":"Root","childIds":["IEAFPQHKI442CLBD","IEAFPQHKI442CAJ2"],"scope":"WsRoot"},"emitted_at":1714638763678}
3+
{"stream":"contacts","data":{"id":"KX7ZDWOP","firstName":"My Team","lastName":"","type":"Group","profiles":[{"accountId":"IEAFPQHK","role":"User","external":false,"admin":false,"owner":false}],"avatarUrl":"https://www.wrike.com/avatars/default/internal_users_group.png","timezone":"Z","locale":"en","deleted":false,"memberIds":["KUAOFOSO"],"myTeam":true},"emitted_at":1714638763950}
4+
{"stream":"workflows","data":{"id":"IEAFPQHKK772QPYW","name":"Default Workflow","standard":true,"hidden":false,"customStatuses":[{"id":"IEAFPQHKJMAAAAAA","name":"New","standardName":true,"color":"Blue","standard":true,"group":"Active","hidden":false},{"id":"IEAFPQHKJMC4DE2Q","name":"In Progress","standardName":true,"color":"Turquoise","standard":false,"group":"Active","hidden":false},{"id":"IEAFPQHKJMAAAAAB","name":"Completed","standardName":true,"color":"Green","standard":true,"group":"Completed","hidden":false},{"id":"IEAFPQHKJMAAAAAC","name":"On Hold","standardName":true,"color":"Gray","standard":true,"group":"Deferred","hidden":false},{"id":"IEAFPQHKJMAAAAAD","name":"Cancelled","standardName":true,"color":"Gray","standard":true,"group":"Cancelled","hidden":false}]},"emitted_at":1714638764471}

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ data:
44
- app-us*.wrike.com
55
- app-eu*.wrike.com
66
- www.wrike.com
7+
connectorBuildOptions:
8+
baseImage: docker.io/airbyte/python-connector-base:1.2.0@sha256:c22a9d97464b69d6ef01898edf3f8612dc11614f05a84984451dde195f337db9
79
remoteRegistries:
810
pypi:
911
enabled: true
@@ -16,7 +18,7 @@ data:
1618
connectorSubtype: api
1719
connectorType: source
1820
definitionId: 9c13f986-a13b-4988-b808-4705badf71c2
19-
dockerImageTag: 0.2.0
21+
dockerImageTag: 0.2.1
2022
dockerRepository: airbyte/source-wrike
2123
githubIssueLabel: source-wrike
2224
icon: wrike.svg

airbyte-integrations/connectors/source-wrike/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 = "0.2.1"
7+
name = "source-wrike"
8+
description = "Source implementation for Wrike."
9+
authors = [ "Airbyte <[email protected]>",]
10+
license = "MIT"
11+
readme = "README.md"
12+
documentation = "https://docs.airbyte.com/integrations/sources/wrike"
13+
homepage = "https://airbyte.com"
14+
repository = "https://github.com/airbytehq/airbyte"
15+
[[tool.poetry.packages]]
16+
include = "source_wrike"
17+
18+
[tool.poetry.dependencies]
19+
python = "^3.9,<3.12"
20+
airbyte-cdk = "^0"
21+
22+
[tool.poetry.scripts]
23+
source-wrike = "source_wrike.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-wrike/requirements.txt

-1
This file was deleted.

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

-42
This file was deleted.

airbyte-integrations/connectors/source-wrike/source_wrike/manifest.yaml

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

33
definitions:
44
selector:
@@ -19,7 +19,7 @@ definitions:
1919
type: "DefaultPaginator"
2020
pagination_strategy:
2121
type: "CursorPagination"
22-
cursor_value: "{{ last_records['nextPageToken'] }}"
22+
cursor_value: "{{ last_record['nextPageToken'] }}"
2323
page_token_option:
2424
type: "RequestPath"
2525
field_name: "nextPageToken"

airbyte-integrations/connectors/source-wrike/source_wrike/schemas/workflows.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"type": ["string", "null"]
1111
},
1212
"standard": {
13-
"type": ["string", "null"]
13+
"type": ["boolean", "null"]
1414
},
1515
"hidden": {
16-
"type": ["string", "null"]
16+
"type": ["boolean", "null"]
1717
},
1818
"customStatuses": {
1919
"type": ["array", "null"],
@@ -33,13 +33,13 @@
3333
"type": ["string", "null"]
3434
},
3535
"standard": {
36-
"type": ["string", "null"]
36+
"type": ["boolean", "null"]
3737
},
3838
"group": {
3939
"type": ["string", "null"]
4040
},
4141
"hidden": {
42-
"type": ["string", "null"]
42+
"type": ["boolean", "null"]
4343
}
4444
}
4545
}

docs/integrations/sources/wrike.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ The Wrike source connector supports the following streams:
3333
* [Comments](https://developers.wrike.com/api/v4/comments/)\(Full Refresh\)
3434
* [Contacts](https://developers.wrike.com/api/v4/contacts/)\(Full Refresh\)
3535
* [Folders](https://developers.wrike.com/api/v4/folders-projects/)\(Full Refresh\)
36+
* [Workflows](https://developers.wrike.com/api/v4/workflows/)\(Full Refresh\)
3637

3738
### Data type mapping
3839

@@ -44,8 +45,9 @@ The Wrike connector should not run into Wrike API limitations under normal usage
4445

4546
## Changelog
4647

47-
| Version | Date | Pull Request | Subject |
48-
|:--------|:-----------|:---------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------|
49-
| 0.2.0 | 2023-10-10 | [31058](https://github.com/airbytehq/airbyte/pull/31058) | Migrate to low code.
50-
| 0.1.0 | 2022-08-16 | [15638](https://github.com/airbytehq/airbyte/pull/15638) | Initial version/release of the connector.
48+
| Version | Date | Pull Request | Subject |
49+
|:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------|
50+
| 0.2.1 | 2024-04-30 | [31058](https://github.com/airbytehq/airbyte/pull/31058) | Changed last_records to last_record. Fix schema for stream `workflows` |
51+
| 0.2.0 | 2023-10-10 | [31058](https://github.com/airbytehq/airbyte/pull/31058) | Migrate to low code. |
52+
| 0.1.0 | 2022-08-16 | [15638](https://github.com/airbytehq/airbyte/pull/15638) | Initial version/release of the connector. |
5153

0 commit comments

Comments
 (0)