Skip to content

Commit d3b2e8a

Browse files
🐛 Source Jira: changed cursor field from created to updated
* Source Jira #4505 - change cursor field for Issues streams from fields.started to fields.updated, update IssuesWorklogs slicing * Source Jira #4505 - reformat * Jira #4505 - made issues worklog stream full refresh * Jira #4505 - reformat * Jira #4505 - bump version and updating documentation
1 parent 8353eea commit d3b2e8a

File tree

13 files changed

+241
-69
lines changed

13 files changed

+241
-69
lines changed

airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/68e63de2-bb83-4c7e-93fa-a8a9051e3993.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"sourceDefinitionId": "68e63de2-bb83-4c7e-93fa-a8a9051e3993",
33
"name": "Jira",
44
"dockerRepository": "airbyte/source-jira",
5-
"dockerImageTag": "0.2.8",
5+
"dockerImageTag": "0.2.9",
66
"documentationUrl": "https://docs.airbyte.io/integrations/sources/jira",
77
"icon": "jira.svg"
88
}

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
- sourceDefinitionId: 68e63de2-bb83-4c7e-93fa-a8a9051e3993
207207
name: Jira
208208
dockerRepository: airbyte/source-jira
209-
dockerImageTag: 0.2.8
209+
dockerImageTag: 0.2.9
210210
documentationUrl: https://docs.airbyte.io/integrations/sources/jira
211211
icon: jira.svg
212212
- sourceDefinitionId: 12928b32-bf0a-4f1e-964f-07e12e37153a

airbyte-integrations/connectors/source-jira/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ RUN pip install .
1212
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
1313
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
1414

15-
LABEL io.airbyte.version=0.2.8
15+
LABEL io.airbyte.version=0.2.9
1616
LABEL io.airbyte.name=airbyte/source-jira

airbyte-integrations/connectors/source-jira/integration_tests/abnormal_state.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"created": "2121-02-14T22:01:22.313Z"
44
},
55
"issue_worklogs": {
6-
"startedAfter": "2121-04-14T11:30:22.313Z"
6+
"started": "2121-04-14T11:30:22.313Z"
77
}
88
}

airbyte-integrations/connectors/source-jira/integration_tests/full_configured_catalog.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -7455,10 +7455,10 @@
74557455
},
74567456
"supported_sync_modes": ["incremental"],
74577457
"source_defined_cursor": true,
7458-
"default_cursor_field": ["created"]
7458+
"default_cursor_field": ["fields", "updated"]
74597459
},
74607460
"sync_mode": "incremental",
7461-
"cursor_field": ["created"],
7461+
"cursor_field": ["fields", "updated"],
74627462
"destination_sync_mode": "append"
74637463
},
74647464
{
@@ -9532,13 +9532,11 @@
95329532
"additionalProperties": true,
95339533
"description": "Details of a worklog."
95349534
},
9535-
"supported_sync_modes": ["incremental"],
9536-
"source_defined_cursor": true,
9537-
"default_cursor_field": ["startedAfter"]
9535+
"supported_sync_modes": ["full_refresh"],
9536+
"source_defined_cursor": false
95389537
},
9539-
"sync_mode": "incremental",
9540-
"cursor_field": ["startedAfter"],
9541-
"destination_sync_mode": "append"
9538+
"sync_mode": "full_refresh",
9539+
"destination_sync_mode": "overwrite"
95429540
},
95439541
{
95449542
"stream": {

airbyte-integrations/connectors/source-jira/integration_tests/inc_configured_catalog.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,21 @@
66
"json_schema": {},
77
"supported_sync_modes": ["incremental"],
88
"source_defined_cursor": true,
9-
"default_cursor_field": ["created"]
9+
"default_cursor_field": ["fields", "updated"]
1010
},
1111
"sync_mode": "incremental",
12-
"cursor_field": ["created"],
12+
"cursor_field": ["fields", "updated"],
1313
"destination_sync_mode": "append"
1414
},
1515
{
1616
"stream": {
1717
"name": "issue_worklogs",
1818
"json_schema": {},
19-
"supported_sync_modes": ["incremental"],
20-
"source_defined_cursor": true,
21-
"default_cursor_field": ["startedAfter"]
19+
"supported_sync_modes": ["full_refresh"],
20+
"source_defined_cursor": false
2221
},
23-
"sync_mode": "incremental",
24-
"cursor_field": ["startedAfter"],
25-
"destination_sync_mode": "append"
22+
"sync_mode": "full_refresh",
23+
"destination_sync_mode": "overwrite"
2624
}
2725
]
2826
}

airbyte-integrations/connectors/source-jira/integration_tests/issue_worklogs_configured_catalog.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
"stream": {
55
"name": "issue_worklogs",
66
"json_schema": {},
7-
"supported_sync_modes": ["incremental"],
8-
"source_defined_cursor": true,
9-
"default_cursor_field": ["startedAfter"]
7+
"supported_sync_modes": ["full_refresh"],
8+
"source_defined_cursor": false
109
},
11-
"sync_mode": "incremental",
12-
"cursor_field": ["startedAfter"],
13-
"destination_sync_mode": "append"
10+
"sync_mode": "full_refresh",
11+
"destination_sync_mode": "overwrite"
1412
}
1513
]
1614
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"issues": {
3+
"updated": "2021-06-02T22:18:39.882Z"
4+
},
5+
"issue_worklogs": {
6+
"10622": {
7+
"started": "2021-02-14T11:30:22.313Z"
8+
}
9+
}
10+
}

airbyte-integrations/connectors/source-jira/sample_files/configured_catalog.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -7962,10 +7962,10 @@
79627962
},
79637963
"supported_sync_modes": ["incremental"],
79647964
"source_defined_cursor": true,
7965-
"default_cursor_field": ["created"]
7965+
"default_cursor_field": ["fields", "updated"]
79667966
},
79677967
"sync_mode": "incremental",
7968-
"cursor_field": ["created"],
7968+
"cursor_field": ["fields", "updated"],
79697969
"destination_sync_mode": "append"
79707970
},
79717971
{
@@ -10086,13 +10086,11 @@
1008610086
"additionalProperties": true,
1008710087
"description": "Details of a worklog."
1008810088
},
10089-
"supported_sync_modes": ["incremental"],
10090-
"source_defined_cursor": true,
10091-
"default_cursor_field": ["startedAfter"]
10089+
"supported_sync_modes": ["full_refresh"],
10090+
"source_defined_cursor": false
1009210091
},
10093-
"sync_mode": "incremental",
10094-
"cursor_field": ["startedAfter"],
10095-
"destination_sync_mode": "append"
10092+
"sync_mode": "full_refresh",
10093+
"destination_sync_mode": "overwrite"
1009610094
},
1009710095
{
1009810096
"stream": {

airbyte-integrations/connectors/source-jira/sample_files/full_configured_catalog.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -7455,10 +7455,10 @@
74557455
},
74567456
"supported_sync_modes": ["incremental"],
74577457
"source_defined_cursor": true,
7458-
"default_cursor_field": ["created"]
7458+
"default_cursor_field": ["fields", "updated"]
74597459
},
74607460
"sync_mode": "incremental",
7461-
"cursor_field": ["created"],
7461+
"cursor_field": ["fields", "updated"],
74627462
"destination_sync_mode": "append"
74637463
},
74647464
{
@@ -9532,13 +9532,11 @@
95329532
"additionalProperties": true,
95339533
"description": "Details of a worklog."
95349534
},
9535-
"supported_sync_modes": ["incremental"],
9536-
"source_defined_cursor": true,
9537-
"default_cursor_field": ["startedAfter"]
9535+
"supported_sync_modes": ["full_refresh"],
9536+
"source_defined_cursor": false
95389537
},
9539-
"sync_mode": "incremental",
9540-
"cursor_field": ["startedAfter"],
9541-
"destination_sync_mode": "append"
9538+
"sync_mode": "full_refresh",
9539+
"destination_sync_mode": "overwrite"
95429540
},
95439541
{
95449542
"stream": {
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"issues": {
3-
"created": "2021-02-14T22:01:22.313Z"
3+
"updated": "2021-06-02T22:18:39.882Z"
44
},
55
"issue_worklogs": {
6-
"startedAfter": "2021-04-14T11:30:22.313Z"
6+
"10622": {
7+
"started": "2021-02-14T11:30:22.313Z"
8+
}
79
}
810
}

0 commit comments

Comments
 (0)